	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_kp_irq
_do_kp_irq:                             ## @do_kp_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	_KEYP_ISR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_twl4030_kpread
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_KEYP_IMR1_KP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	testl	%eax, -12(%rbp)
	jne	LBB0_3
LBB0_2:
	movl	$1, %esi
LBB0_3:
	movq	%rbx, %rdi
	callq	_twl4030_kp_scan
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYP_ISR1,4,2                  ## @KEYP_ISR1
	.comm	_KEYP_IMR1_KP,4,2               ## @KEYP_IMR1_KP
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_do_kp_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_kp_irq
_do_kp_irq:                             ; @do_kp_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, _KEYP_ISR1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEYP_ISR1@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_twl4030_kpread
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _KEYP_IMR1_KP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KEYP_IMR1_KP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	w1, #0
	b	LBB0_4
LBB0_3:
	mov	w1, #1
LBB0_4:
	mov	x0, x19
	bl	_twl4030_kp_scan
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYP_ISR1,4,2                  ; @KEYP_ISR1
	.comm	_KEYP_IMR1_KP,4,2               ; @KEYP_IMR1_KP
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_do_kp_irq
.subsections_via_symbols
