	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_pmic_keys_irq_handler_thread
_mtk_pmic_keys_irq_handler_thread:      ## @mtk_pmic_keys_irq_handler_thread
	.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, %rbx
	movq	8(%rsi), %rax
	movq	16(%rsi), %rcx
	movl	8(%rax), %edi
	movl	4(%rcx), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	%eax, -20(%rbp)
	sete	%dl
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r14
	cmoveq	%rax, %r14
	callq	_input_report_key
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	callq	_input_sync
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_dbg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%s) key =%d using PMIC\n"

L_.str.1:                               ## @.str.1
	.asciz	"pressed"

L_.str.2:                               ## @.str.2
	.asciz	"released"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_pmic_keys_irq_handler_thread
_mtk_pmic_keys_irq_handler_thread:      ; @mtk_pmic_keys_irq_handler_thread
	.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
	ldp	x8, x9, [x1, #8]
	ldr	w0, [x8, #8]
	ldr	w1, [x9, #4]
	add	x2, sp, #12
	bl	_regmap_read
	ldp	x9, x8, [x19, #8]
	ldr	w8, [x8]
	ldr	w10, [sp, #12]
	ands	w8, w10, w8
	str	w8, [sp, #12]
	cset	w2, eq
	ldr	w0, [x9, #4]
	ldr	w1, [x19]
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x20, x9, x8, eq
	bl	_input_report_key
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_input_sync
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w3, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
Lloh6:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh8:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%s) key =%d using PMIC\n"

l_.str.1:                               ; @.str.1
	.asciz	"pressed"

l_.str.2:                               ; @.str.2
	.asciz	"released"

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