	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_irq
_stmpe_irq:                             ## @stmpe_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rsi), %r14
	movl	8(%r14), %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %ebx
	movq	(%r14), %rax
	movq	_STMPE801_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_STMPE1600_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	_STMPE1801_ID@GOTPCREL(%rip), %rdx
	movq	(%r13), %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_STMPE_IDX_ISR_LSB@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movl	16(%r13), %edi
	xorl	%esi, %esi
	callq	_irq_create_mapping
	movl	%eax, %edi
	callq	_handle_nested_irq
LBB0_15:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_4:
	movq	_STMPE_IDX_ISR_MSB@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movl	(%rcx,%rax,4), %esi
	leaq	-60(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_stmpe_block_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.9:
	movl	%ebx, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	cmpq	-88(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_15
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	%r12d, %r14d
	notl	%r14d
	addl	%ebx, %r14d
	movq	8(%r13), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %eax
	andl	-60(%rbp,%r12,4), %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	shll	$3, %r14d
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	___ffs
	movl	%eax, %r15d
	leal	(%r15,%r14), %esi
	movl	16(%r13), %edi
	callq	_irq_create_mapping
	movl	%eax, %edi
	callq	_handle_nested_irq
	movl	$-2, %eax
	movl	%r15d, %ecx
	roll	%cl, %eax
	andl	%eax, %ebx
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r12), %esi
	movq	%r13, %rdi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_stmpe_reg_write
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_14
LBB0_7:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STMPE801_ID,8,3                ## @STMPE801_ID
	.comm	_STMPE1600_ID,8,3               ## @STMPE1600_ID
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_STMPE1801_ID,8,3               ## @STMPE1801_ID
	.comm	_STMPE_IDX_ISR_LSB,8,3          ## @STMPE_IDX_ISR_LSB
	.comm	_STMPE_IDX_ISR_MSB,8,3          ## @STMPE_IDX_ISR_MSB
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_stmpe_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_irq
_stmpe_irq:                             ; @stmpe_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x21, [x1, #24]
	ldr	w0, [x21, #8]
	mov	w1, #8
	bl	_DIV_ROUND_UP
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _STMPE801_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STMPE801_ID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _STMPE1600_ID@GOTPAGE
Lloh7:
	ldr	x10, [x10, _STMPE1600_ID@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.1:
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_irq_create_mapping
	bl	_handle_nested_irq
LBB0_2:
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	mov	x20, x0
Lloh14:
	adrp	x9, _STMPE1801_ID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _STMPE1801_ID@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _STMPE_IDX_ISR_LSB@GOTPAGE
Lloh18:
	ldr	x10, [x10, _STMPE_IDX_ISR_LSB@GOTPAGEOFF]
Lloh19:
	adrp	x11, _STMPE_IDX_ISR_MSB@GOTPAGE
Lloh20:
	ldr	x11, [x11, _STMPE_IDX_ISR_MSB@GOTPAGEOFF]
	ldr	x12, [x19]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	ldr	w21, [x12, x8, lsl #2]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_stmpe_block_read
	tbnz	w0, #31, LBB0_13
; %bb.6:
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.7:
	mov	x26, #0
	mov	w28, #1
	mov	w25, w20
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	cmp	x26, x25
	b.eq	LBB0_2
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mvn	w8, w26
	add	w8, w20, w8
	add	x9, sp, #12
	ldr	w9, [x9, x26, lsl #2]
	ldr	x10, [x19, #8]
	ldr	w10, [x10, w8, sxtw #2]
	ands	w22, w10, w9
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	lsl	w27, w8, #3
	mov	x23, x22
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	___ffs
	mov	x24, x0
	add	w1, w0, w27
	ldr	w0, [x19, #16]
	bl	_irq_create_mapping
	bl	_handle_nested_irq
	lsl	w8, w28, w24
	bics	w23, w23, w8
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w1, w21, w26
	mov	x0, x19
	mov	x2, x22
	bl	_stmpe_reg_write
	b	LBB0_8
LBB0_13:
Lloh21:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_3
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_STMPE801_ID,8,3                ; @STMPE801_ID
	.comm	_STMPE1600_ID,8,3               ; @STMPE1600_ID
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_STMPE1801_ID,8,3               ; @STMPE1801_ID
	.comm	_STMPE_IDX_ISR_LSB,8,3          ; @STMPE_IDX_ISR_LSB
	.comm	_STMPE_IDX_ISR_MSB,8,3          ; @STMPE_IDX_ISR_MSB
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_stmpe_irq
.subsections_via_symbols
