	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_keypad_irq
_stmpe_keypad_irq:                      ## @stmpe_keypad_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %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	8(%rsi), %r15
	movq	16(%rsi), %r12
	movq	_MAX_NUM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_stmpe_keypad_read_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %r13d
	movq	_STMPE_KPC_DATA_ROW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r13d, %edi
	sarl	$3, %edi
	movq	_STMPE_KPC_DATA_COL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r13d, %esi
	movq	_STMPE_KEYPAD_ROW_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MATRIX_SCAN_CODE
	movl	%eax, %ebx
	movl	%r13d, %eax
	notl	%eax
	movq	_STMPE_KPC_DATA_NOKEY_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_STMPE_KPC_DATA_UP@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_input_event
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %esi
	xorl	%edx, %edx
	testl	%r13d, %r13d
	sete	%dl
	movq	%r12, %rdi
	callq	_input_report_key
	movq	%r12, %rdi
	callq	_input_sync
	jmp	LBB0_6
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUM_DATA,4,2               ## @MAX_NUM_DATA
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_STMPE_KPC_DATA_ROW,4,2         ## @STMPE_KPC_DATA_ROW
	.comm	_STMPE_KPC_DATA_COL,4,2         ## @STMPE_KPC_DATA_COL
	.comm	_STMPE_KEYPAD_ROW_SHIFT,4,2     ## @STMPE_KEYPAD_ROW_SHIFT
	.comm	_STMPE_KPC_DATA_UP,4,2          ## @STMPE_KPC_DATA_UP
	.comm	_STMPE_KPC_DATA_NOKEY_MASK,4,2  ## @STMPE_KPC_DATA_NOKEY_MASK
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_stmpe_keypad_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_keypad_irq
_stmpe_keypad_irq:                      ; @stmpe_keypad_irq
	.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, #32
	mov	x0, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x23, x8, [x1, #8]
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _MAX_NUM_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_NUM_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	stur	x1, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x1, x21
	bl	_stmpe_keypad_read_data
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x25, #0
Lloh8:
	adrp	x27, _STMPE_KPC_DATA_ROW@GOTPAGE
Lloh9:
	ldr	x27, [x27, _STMPE_KPC_DATA_ROW@GOTPAGEOFF]
Lloh10:
	adrp	x28, _STMPE_KPC_DATA_COL@GOTPAGE
Lloh11:
	ldr	x28, [x28, _STMPE_KPC_DATA_COL@GOTPAGEOFF]
Lloh12:
	adrp	x24, _STMPE_KEYPAD_ROW_SHIFT@GOTPAGE
Lloh13:
	ldr	x24, [x24, _STMPE_KEYPAD_ROW_SHIFT@GOTPAGEOFF]
Lloh14:
	adrp	x19, _STMPE_KPC_DATA_NOKEY_MASK@GOTPAGE
Lloh15:
	ldr	x19, [x19, _STMPE_KPC_DATA_NOKEY_MASK@GOTPAGEOFF]
	stur	x21, [x29, #-112]               ; 8-byte Folded Spill
	ldur	x20, [x29, #-104]               ; 8-byte Folded Reload
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	cmp	x25, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x21, x25, lsl #2]
	ldr	w8, [x27]
	and	w8, w8, w26
	asr	w0, w8, #3
	ldr	w8, [x28]
	and	w1, w8, w26
	ldr	w2, [x24]
	bl	_MATRIX_SCAN_CODE
	ldr	w8, [x19]
	bics	wzr, w8, w26
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	mov	x21, x23
	mov	x23, x19
	mov	x19, x24
	mov	x24, x28
	mov	x28, x27
Lloh16:
	adrp	x8, _STMPE_KPC_DATA_UP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _STMPE_KPC_DATA_UP@GOTPAGEOFF]
Lloh18:
	ldr	w27, [x8]
Lloh19:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_input_event
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w1, [x8, w22, sxtw #2]
	tst	w27, w26
	mov	x27, x28
	mov	x28, x24
	mov	x24, x19
	mov	x19, x23
	mov	x23, x21
	ldur	x21, [x29, #-112]               ; 8-byte Folded Reload
	cset	w2, eq
	mov	x0, x20
	bl	_input_report_key
	mov	x0, x20
	bl	_input_sync
	b	LBB0_3
LBB0_6:
Lloh25:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh27:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUM_DATA,4,2               ; @MAX_NUM_DATA
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_STMPE_KPC_DATA_ROW,4,2         ; @STMPE_KPC_DATA_ROW
	.comm	_STMPE_KPC_DATA_COL,4,2         ; @STMPE_KPC_DATA_COL
	.comm	_STMPE_KEYPAD_ROW_SHIFT,4,2     ; @STMPE_KEYPAD_ROW_SHIFT
	.comm	_STMPE_KPC_DATA_UP,4,2          ; @STMPE_KPC_DATA_UP
	.comm	_STMPE_KPC_DATA_NOKEY_MASK,4,2  ; @STMPE_KPC_DATA_NOKEY_MASK
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_stmpe_keypad_irq
.subsections_via_symbols
