	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_kp_interrupt
_omap_kp_interrupt:                     ## @omap_kp_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	%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, %r14
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_cpu_is_omap24xx
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	movq	_row_gpios@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edi
	callq	_disable_irq
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_gpio_to_irq
	cmpl	%r15d, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_disable_irq_nosync
	jmp	LBB0_6
LBB0_7:
	movq	_OMAP1_MPUIO_BASE@GOTPCREL(%rip), %rax
	movq	_OMAP_MPUIO_KBD_MASKIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movl	$1, %edi
	callq	_omap_writew
LBB0_8:
	movq	_kp_tasklet@GOTPCREL(%rip), %rdi
	callq	_tasklet_schedule
	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	_row_gpios,8,3                  ## @row_gpios
	.comm	_OMAP1_MPUIO_BASE,8,3           ## @OMAP1_MPUIO_BASE
	.comm	_OMAP_MPUIO_KBD_MASKIT,8,3      ## @OMAP_MPUIO_KBD_MASKIT
	.comm	_kp_tasklet,4,2                 ## @kp_tasklet
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_omap_kp_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_kp_interrupt
_omap_kp_interrupt:                     ; @omap_kp_interrupt
	.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	x19, x1
	mov	x20, x0
	bl	_cpu_is_omap24xx
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x22, _row_gpios@GOTPAGE
Lloh1:
	ldr	x22, [x22, _row_gpios@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_disable_irq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x21, lsl #2]
	bl	_gpio_to_irq
	cmp	w0, w20
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_disable_irq_nosync
	b	LBB0_4
LBB0_7:
Lloh2:
	adrp	x8, _OMAP1_MPUIO_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OMAP1_MPUIO_BASE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _OMAP_MPUIO_KBD_MASKIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OMAP_MPUIO_KBD_MASKIT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_omap_writew
LBB0_8:
Lloh8:
	adrp	x0, _kp_tasklet@GOTPAGE
Lloh9:
	ldr	x0, [x0, _kp_tasklet@GOTPAGEOFF]
	bl	_tasklet_schedule
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_row_gpios,8,3                  ; @row_gpios
	.comm	_OMAP1_MPUIO_BASE,8,3           ; @OMAP1_MPUIO_BASE
	.comm	_OMAP_MPUIO_KBD_MASKIT,8,3      ; @OMAP_MPUIO_KBD_MASKIT
	.comm	_kp_tasklet,4,2                 ; @kp_tasklet
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_omap_kp_interrupt
.subsections_via_symbols
