	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_keypad_irq_handler
_imx_keypad_irq_handler:                ## @imx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_KPSR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	24(%rsi), %rdi
	callq	_readw
                                        ## kill: def $ax killed $ax def $eax
	movq	_KBD_STAT_KRIE@GOTPCREL(%rip), %rcx
	movq	_KBD_STAT_KDIE@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %edx
	orw	(%rcx), %dx
	notl	%edx
	andl	%eax, %edx
	movq	_KBD_STAT_KPKR@GOTPCREL(%rip), %rax
	movq	_KBD_STAT_KPKD@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	orw	(%rax), %cx
	orl	%edx, %ecx
	movq	(%rbx), %rsi
	addq	24(%r14), %rsi
	movzwl	%cx, %edi
	callq	_writew
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.1:
	movq	$0, 8(%r14)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$2, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
LBB0_2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KPSR,8,3                       ## @KPSR
	.comm	_KBD_STAT_KRIE,2,1              ## @KBD_STAT_KRIE
	.comm	_KBD_STAT_KDIE,2,1              ## @KBD_STAT_KDIE
	.comm	_KBD_STAT_KPKR,2,1              ## @KBD_STAT_KPKR
	.comm	_KBD_STAT_KPKD,2,1              ## @KBD_STAT_KPKD
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_imx_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 imx_keypad_irq_handler
_imx_keypad_irq_handler:                ; @imx_keypad_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x8, [x1, #24]
Lloh0:
	adrp	x20, _KPSR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _KPSR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readw
Lloh2:
	adrp	x8, _KBD_STAT_KRIE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KBD_STAT_KRIE@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh4:
	adrp	x9, _KBD_STAT_KDIE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _KBD_STAT_KDIE@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
	eor	w8, w8, #0xffff
	and	w8, w0, w8
Lloh6:
	adrp	x9, _KBD_STAT_KPKR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KBD_STAT_KPKR@GOTPAGEOFF]
	ldrh	w9, [x9]
Lloh8:
	adrp	x10, _KBD_STAT_KPKD@GOTPAGE
Lloh9:
	ldr	x10, [x10, _KBD_STAT_KPKD@GOTPAGEOFF]
	ldrh	w10, [x10]
	orr	w9, w10, w9
	orr	w0, w9, w8
	ldr	x8, [x19, #24]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writew
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	str	xzr, [x19, #8]
Lloh10:
	adrp	x8, _jiffies@GOTPAGE
Lloh11:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh12:
	ldr	x20, [x8]
	mov	w0, #2
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	bl	_mod_timer
LBB0_2:
Lloh13:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_KPSR,8,3                       ; @KPSR
	.comm	_KBD_STAT_KRIE,2,1              ; @KBD_STAT_KRIE
	.comm	_KBD_STAT_KDIE,2,1              ; @KBD_STAT_KDIE
	.comm	_KBD_STAT_KPKR,2,1              ; @KBD_STAT_KPKR
	.comm	_KBD_STAT_KPKD,2,1              ; @KBD_STAT_KPKD
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_imx_keypad_irq_handler
.subsections_via_symbols
