	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chtdc_ti_pwrbtn_interrupt
_chtdc_ti_pwrbtn_interrupt:             ## @chtdc_ti_pwrbtn_interrupt
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	_CHTDC_TI_SIRQ_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-20(%rbp), %rdx
	movq	%rax, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-20(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SIRQ_PWRBTN_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	-20(%rbp), %eax
	sete	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
LBB0_2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHTDC_TI_SIRQ_REG,4,2          ## @CHTDC_TI_SIRQ_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIRQ_REG=0x%x\n"

	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_SIRQ_PWRBTN_REL,4,2            ## @SIRQ_PWRBTN_REL
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_chtdc_ti_pwrbtn_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chtdc_ti_pwrbtn_interrupt
_chtdc_ti_pwrbtn_interrupt:             ; @chtdc_ti_pwrbtn_interrupt
	.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
	ldr	x20, [x1]
	mov	x0, x20
	bl	_dev_get_drvdata
Lloh0:
	adrp	x8, _CHTDC_TI_SIRQ_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHTDC_TI_SIRQ_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w2, [sp, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh5:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _SIRQ_PWRBTN_REL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SIRQ_PWRBTN_REL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, eq
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	bl	_input_sync
LBB0_2:
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh13:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CHTDC_TI_SIRQ_REG,4,2          ; @CHTDC_TI_SIRQ_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIRQ_REG=0x%x\n"

	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_SIRQ_PWRBTN_REL,4,2            ; @SIRQ_PWRBTN_REL
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_chtdc_ti_pwrbtn_interrupt
.subsections_via_symbols
