	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap4_keypad_irq_thread_fn
_omap4_keypad_irq_thread_fn:            ## @omap4_keypad_irq_thread_fn
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rdi
	movq	32(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_OMAP4_KBD_FULLCODE31_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kbd_readl
	movl	%eax, %r12d
	movl	%eax, (%r14)
	movq	_OMAP4_KBD_FULLCODE63_32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kbd_readl
	movl	%eax, 4(%r14)
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	xorl	%esi, %esi
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%rbx), %rcx
	movb	(%rcx,%rsi), %cl
	xorb	%r12b, %cl
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%cl, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incl	%r15d
	cmpl	%edx, %r15d
	jae	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1, %r13d
	movl	%r15d, %ecx
	shll	%cl, %r13d
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	btl	%r15d, %eax
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	24(%rbx), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, %esi
	callq	_MATRIX_SCAN_CODE
	movl	%eax, %r12d
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	callq	_input_event
	movq	16(%r14), %rax
	movl	%r12d, %ecx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	(%rax,%rcx,4), %esi
	andb	%r12b, %r13b
	movzbl	%r13b, %edx
	movq	%rbx, %rdi
	movq	%r14, %rbx
	callq	_input_report_key
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	12(%r14), %edx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	movl	%eax, %ecx
	cmpq	%rcx, %rsi
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	(%r14,%rsi), %r12b
	jmp	LBB0_2
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_input_sync
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	_OMAP4_KBD_IRQSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_kbd_read_irqreg
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_kbd_write_irqreg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP4_KBD_FULLCODE31_0,4,2     ## @OMAP4_KBD_FULLCODE31_0
	.comm	_OMAP4_KBD_FULLCODE63_32,4,2    ## @OMAP4_KBD_FULLCODE63_32
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_OMAP4_KBD_IRQSTATUS,4,2        ## @OMAP4_KBD_IRQSTATUS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_omap4_keypad_irq_thread_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap4_keypad_irq_thread_fn
_omap4_keypad_irq_thread_fn:            ; @omap4_keypad_irq_thread_fn
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x20, [x1, #32]
	ldr	x0, [x1]
	bl	_ARRAY_SIZE
	mov	w8, w0
	mov	x9, x8
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh5:
	adrp	x8, _OMAP4_KBD_FULLCODE31_0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OMAP4_KBD_FULLCODE31_0@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kbd_readl
	mov	x23, x0
	str	w0, [x24]
Lloh8:
	adrp	x8, _OMAP4_KBD_FULLCODE63_32@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OMAP4_KBD_FULLCODE63_32@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kbd_readl
	str	w0, [x24, #4]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x22, #0
	mov	w26, #1
Lloh11:
	adrp	x28, _MSC_SCAN@GOTPAGE
Lloh12:
	ldr	x28, [x28, _MSC_SCAN@GOTPAGEOFF]
	stur	x24, [x29, #-96]                ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x9, [x19]
	ldrb	w9, [x9, x22]
	and	w10, w23, #0xff
	eor	w21, w9, w10
	cbz	w21, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x19, #12]
	cbz	w9, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w24, w24, #1
	cmp	w24, w9
	b.hs	LBB0_8
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	w27, w26, w24
	tst	w27, w21
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w2, [x19, #24]
	mov	x0, x22
	mov	x1, x24
	bl	_MATRIX_SCAN_CODE
	mov	x25, x0
Lloh13:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x28]
	mov	x0, x20
	mov	x3, x25
	bl	_input_event
	ldr	x8, [x19, #16]
	ldr	w1, [x8, w25, uxtw #2]
	and	w8, w23, w27
	and	w2, w8, #0xff
	mov	x0, x20
	bl	_input_report_key
	ldr	w9, [x19, #12]
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #8]
	ldur	x24, [x29, #-96]                ; 8-byte Folded Reload
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, uxtw
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w23, [x24, x22]
	b	LBB0_2
LBB0_11:
	mov	x0, x20
	bl	_input_sync
	ldr	x0, [x19]
	mov	x1, x24
	mov	w2, #8
	bl	_memcpy
Lloh16:
	adrp	x8, _OMAP4_KBD_IRQSTATUS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OMAP4_KBD_IRQSTATUS@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_kbd_read_irqreg
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_kbd_write_irqreg
Lloh19:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP4_KBD_FULLCODE31_0,4,2     ; @OMAP4_KBD_FULLCODE31_0
	.comm	_OMAP4_KBD_FULLCODE63_32,4,2    ; @OMAP4_KBD_FULLCODE63_32
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_OMAP4_KBD_IRQSTATUS,4,2        ; @OMAP4_KBD_IRQSTATUS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_omap4_keypad_irq_thread_fn
.subsections_via_symbols
