	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function powerbutton_irq
_powerbutton_irq:                       ## @powerbutton_irq
	.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
	movq	_TWL_MODULE_PM_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STS_HW_CONDITIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rsi
	callq	_twl_i2c_read_u8
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_3
LBB0_1:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_pm_wakeup_event
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PWR_PWRON_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	-12(%rbp), %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	%rbx, %rdi
	callq	_input_sync
LBB0_3:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ## @TWL_MODULE_PM_MASTER
	.comm	_STS_HW_CONDITIONS,4,2          ## @STS_HW_CONDITIONS
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_PWR_PWRON_IRQ,4,2              ## @PWR_PWRON_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"twl4030: i2c error %d while reading TWL4030 PM_MASTER STS_HW_CONDITIONS register\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_powerbutton_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function powerbutton_irq
_powerbutton_irq:                       ; @powerbutton_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _TWL_MODULE_PM_MASTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL_MODULE_PM_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _STS_HW_CONDITIONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STS_HW_CONDITIONS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_twl_i2c_read_u8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_pm_wakeup_event
Lloh8:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _PWR_PWRON_IRQ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PWR_PWRON_IRQ@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	bl	_input_sync
LBB0_3:
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ; @TWL_MODULE_PM_MASTER
	.comm	_STS_HW_CONDITIONS,4,2          ; @STS_HW_CONDITIONS
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_PWR_PWRON_IRQ,4,2              ; @PWR_PWRON_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"twl4030: i2c error %d while reading TWL4030 PM_MASTER STS_HW_CONDITIONS register\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_powerbutton_irq
.subsections_via_symbols
