	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm860x_onkey_handler
_pm860x_onkey_handler:                  ## @pm860x_onkey_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rsi), %edi
	movq	_PM8607_STATUS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pm860x_reg_read
	movq	_ONKEY_STATUS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	4(%rbx), %edi
	movq	_KEY_POWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_input_report_key
	movl	4(%rbx), %edi
	callq	_input_sync
	movl	(%rbx), %edi
	movq	_PM8607_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LONG_ONKEY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$3, %edx
	callq	_pm860x_set_bits
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM8607_STATUS_2,4,2            ## @PM8607_STATUS_2
	.comm	_ONKEY_STATUS,4,2               ## @ONKEY_STATUS
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_PM8607_WAKEUP,4,2              ## @PM8607_WAKEUP
	.comm	_LONG_ONKEY_EN,4,2              ## @LONG_ONKEY_EN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_pm860x_onkey_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm860x_onkey_handler
_pm860x_onkey_handler:                  ; @pm860x_onkey_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _PM8607_STATUS_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM8607_STATUS_2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pm860x_reg_read
Lloh3:
	adrp	x8, _ONKEY_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ONKEY_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w2, w8, w0
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_input_report_key
	ldr	w0, [x19, #4]
	bl	_input_sync
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _PM8607_WAKEUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PM8607_WAKEUP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _LONG_ONKEY_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LONG_ONKEY_EN@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	w2, #3
	bl	_pm860x_set_bits
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PM8607_STATUS_2,4,2            ; @PM8607_STATUS_2
	.comm	_ONKEY_STATUS,4,2               ; @ONKEY_STATUS
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_PM8607_WAKEUP,4,2              ; @PM8607_WAKEUP
	.comm	_LONG_ONKEY_EN,4,2              ; @LONG_ONKEY_EN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_pm860x_onkey_handler
.subsections_via_symbols
