	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8925_onkey_handler
_max8925_onkey_handler:                 ## @max8925_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	(%rsi), %edi
	movq	_MAX8925_ON_OFF_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max8925_reg_read
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SW_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r14d, %edx
	callq	_input_report_key
	movl	8(%rbx), %edi
	callq	_input_sync
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	movl	(%rbx), %edi
	movq	_MAX8925_SYSENSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HARDRESET_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_max8925_set_bits
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX8925_ON_OFF_STATUS,4,2      ## @MAX8925_ON_OFF_STATUS
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_SW_INPUT,4,2                   ## @SW_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"onkey state:%d\n"

	.comm	_MAX8925_SYSENSEL,4,2           ## @MAX8925_SYSENSEL
	.comm	_HARDRESET_EN,4,2               ## @HARDRESET_EN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_max8925_onkey_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8925_onkey_handler
_max8925_onkey_handler:                 ; @max8925_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, _MAX8925_ON_OFF_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX8925_ON_OFF_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_max8925_reg_read
	mov	x20, x0
Lloh3:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
	ldr	w0, [x19, #8]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SW_INPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SW_INPUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_input_report_key
	ldr	w0, [x19, #8]
	bl	_input_sync
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _MAX8925_SYSENSEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX8925_SYSENSEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _HARDRESET_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HARDRESET_EN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_max8925_set_bits
Lloh17:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX8925_ON_OFF_STATUS,4,2      ; @MAX8925_ON_OFF_STATUS
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_SW_INPUT,4,2                   ; @SW_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"onkey state:%d\n"

	.comm	_MAX8925_SYSENSEL,4,2           ; @MAX8925_SYSENSEL
	.comm	_HARDRESET_EN,4,2               ; @HARDRESET_EN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_max8925_onkey_handler
.subsections_via_symbols
