	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msi_send_touchpad_key
_msi_send_touchpad_key:                 ## @msi_send_touchpad_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_MSI_STANDARD_EC_FUNCTIONS_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-4(%rbp), %rsi
	callq	_ec_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_msi_laptop_input_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MSI_STANDARD_EC_TOUCHPAD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-4(%rbp), %eax
	jne	LBB0_2
## %bb.3:
	movq	_KEY_TOUCHPAD_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_KEY_TOUCHPAD_ON@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_sparse_keymap_report_event
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSI_STANDARD_EC_FUNCTIONS_ADDRESS,4,2 ## @MSI_STANDARD_EC_FUNCTIONS_ADDRESS
	.comm	_msi_laptop_input_dev,4,2       ## @msi_laptop_input_dev
	.comm	_MSI_STANDARD_EC_TOUCHPAD_MASK,4,2 ## @MSI_STANDARD_EC_TOUCHPAD_MASK
	.comm	_KEY_TOUCHPAD_ON,4,2            ## @KEY_TOUCHPAD_ON
	.comm	_KEY_TOUCHPAD_OFF,4,2           ## @KEY_TOUCHPAD_OFF
	.no_dead_strip	_msi_send_touchpad_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msi_send_touchpad_key
_msi_send_touchpad_key:                 ; @msi_send_touchpad_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _MSI_STANDARD_EC_FUNCTIONS_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSI_STANDARD_EC_FUNCTIONS_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sub	x1, x29, #4
	bl	_ec_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _msi_laptop_input_dev@GOTPAGE
Lloh4:
	ldr	x8, [x8, _msi_laptop_input_dev@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldur	w8, [x29, #-4]
Lloh6:
	adrp	x9, _MSI_STANDARD_EC_TOUCHPAD_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSI_STANDARD_EC_TOUCHPAD_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x10, _KEY_TOUCHPAD_ON@GOTPAGE
Lloh9:
	ldr	x10, [x10, _KEY_TOUCHPAD_ON@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x11, _KEY_TOUCHPAD_OFF@GOTPAGE
Lloh12:
	ldr	x11, [x11, _KEY_TOUCHPAD_OFF@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w1, [x8]
	mov	w2, #1
	mov	w3, #1
	bl	_sparse_keymap_report_event
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSI_STANDARD_EC_FUNCTIONS_ADDRESS,4,2 ; @MSI_STANDARD_EC_FUNCTIONS_ADDRESS
	.comm	_msi_laptop_input_dev,4,2       ; @msi_laptop_input_dev
	.comm	_MSI_STANDARD_EC_TOUCHPAD_MASK,4,2 ; @MSI_STANDARD_EC_TOUCHPAD_MASK
	.comm	_KEY_TOUCHPAD_ON,4,2            ; @KEY_TOUCHPAD_ON
	.comm	_KEY_TOUCHPAD_OFF,4,2           ; @KEY_TOUCHPAD_OFF
	.no_dead_strip	_msi_send_touchpad_key
.subsections_via_symbols
