	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ep93xx_keypad_irq_handler
_ep93xx_keypad_irq_handler:             ## @ep93xx_keypad_irq_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	24(%rsi), %r14
	movq	_KEY_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rsi), %rdi
	callq	___raw_readl
	movq	_KEY_REG_KEY1_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%eax, %esi
	movq	_KEY_REG_KEY1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %esi
	movq	(%rbx), %rdx
	movslq	%esi, %rdi
	movq	_KEY_REG_KEY2_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%eax, %esi
	movq	_KEY_REG_KEY2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %esi
	movl	(%rdx,%rdi,4), %r15d
	movq	_KEY_REG_2KEYS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.1:
	movslq	%esi, %rax
	movl	(%rdx,%rax,4), %r12d
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.2:
	cmpl	%esi, %r15d
	je	LBB0_5
## %bb.3:
	cmpl	%esi, %r12d
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
LBB0_5:
	movl	12(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.6:
	cmpl	%esi, %r15d
	je	LBB0_9
## %bb.7:
	cmpl	%esi, %r12d
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
LBB0_9:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_input_report_key
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_input_report_key
	movl	%r15d, 8(%rbx)
	movl	%r12d, 12(%rbx)
	jmp	LBB0_19
LBB0_10:
	movq	_KEY_REG_1KEY@GOTPCREL(%rip), %rcx
	movl	8(%rbx), %esi
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.11:
	testl	%esi, %esi
	je	LBB0_14
## %bb.12:
	cmpl	%esi, %r15d
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
LBB0_14:
	movl	12(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.15:
	cmpl	%esi, %r15d
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
LBB0_17:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_input_report_key
	movl	%r15d, 8(%rbx)
	movl	$0, 12(%rbx)
	jmp	LBB0_19
LBB0_18:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	$0, 8(%rbx)
LBB0_19:
	movq	%r14, %rdi
	callq	_input_sync
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_REG,8,3                    ## @KEY_REG
	.comm	_KEY_REG_KEY1_MASK,4,2          ## @KEY_REG_KEY1_MASK
	.comm	_KEY_REG_KEY1_SHIFT,4,2         ## @KEY_REG_KEY1_SHIFT
	.comm	_KEY_REG_KEY2_MASK,4,2          ## @KEY_REG_KEY2_MASK
	.comm	_KEY_REG_KEY2_SHIFT,4,2         ## @KEY_REG_KEY2_SHIFT
	.comm	_KEY_REG_2KEYS,4,2              ## @KEY_REG_2KEYS
	.comm	_KEY_REG_1KEY,4,2               ## @KEY_REG_1KEY
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ep93xx_keypad_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ep93xx_keypad_irq_handler
_ep93xx_keypad_irq_handler:             ; @ep93xx_keypad_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	ldp	x8, x19, [x1, #16]
Lloh0:
	adrp	x9, _KEY_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KEY_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
Lloh3:
	adrp	x8, _KEY_REG_KEY1_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_REG_KEY1_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _KEY_REG_KEY1_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KEY_REG_KEY1_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w9, w8, w9
	ldr	x8, [x20]
	ldr	w21, [x8, w9, sxtw #2]
Lloh9:
	adrp	x9, _KEY_REG_2KEYS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KEY_REG_2KEYS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_8
; %bb.1:
Lloh12:
	adrp	x9, _KEY_REG_KEY2_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _KEY_REG_KEY2_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _KEY_REG_KEY2_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _KEY_REG_KEY2_SHIFT@GOTPAGEOFF]
	and	w9, w9, w0
Lloh17:
	ldr	w10, [x10]
	lsr	w9, w9, w10
	ldr	w22, [x8, w9, sxtw #2]
	ldr	w1, [x20, #8]
	cbz	w1, LBB0_4
; %bb.2:
	cmp	w21, w1
	ccmp	w22, w1, #4, ne
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w2, #0
	bl	_input_report_key
LBB0_4:
	ldr	w1, [x20, #12]
	cbz	w1, LBB0_7
; %bb.5:
	cmp	w21, w1
	ccmp	w22, w1, #4, ne
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w2, #0
	bl	_input_report_key
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_input_report_key
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	bl	_input_report_key
	stp	w21, w22, [x20, #8]
	b	LBB0_17
LBB0_8:
Lloh18:
	adrp	x8, _KEY_REG_1KEY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KEY_REG_1KEY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w1, [x20, #8]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.9:
	cbz	w1, LBB0_12
; %bb.10:
	cmp	w21, w1
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w2, #0
	bl	_input_report_key
LBB0_12:
	ldr	w1, [x20, #12]
	cbz	w1, LBB0_15
; %bb.13:
	cmp	w21, w1
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w2, #0
	bl	_input_report_key
LBB0_15:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_input_report_key
	stp	w21, wzr, [x20, #8]
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	mov	w2, #0
	bl	_input_report_key
	ldr	w1, [x20, #12]
	mov	x0, x19
	mov	w2, #0
	bl	_input_report_key
	str	xzr, [x20, #8]
LBB0_17:
	mov	x0, x19
	bl	_input_sync
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_REG,8,3                    ; @KEY_REG
	.comm	_KEY_REG_KEY1_MASK,4,2          ; @KEY_REG_KEY1_MASK
	.comm	_KEY_REG_KEY1_SHIFT,4,2         ; @KEY_REG_KEY1_SHIFT
	.comm	_KEY_REG_KEY2_MASK,4,2          ; @KEY_REG_KEY2_MASK
	.comm	_KEY_REG_KEY2_SHIFT,4,2         ; @KEY_REG_KEY2_SHIFT
	.comm	_KEY_REG_2KEYS,4,2              ; @KEY_REG_2KEYS
	.comm	_KEY_REG_1KEY,4,2               ; @KEY_REG_1KEY
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ep93xx_keypad_irq_handler
.subsections_via_symbols
