	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iqs5xx_irq
_iqs5xx_irq:                            ## @iqs5xx_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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IQS5XX_NUM_CONTACTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	(%r14), %rax
	movq	_IQS5XX_BL_STATUS_RESET@GOTPCREL(%rip), %rcx
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.1:
	movq	16(%r14), %rdx
	movq	8(%r14), %r12
	movq	_IQS5XX_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %ebx
	leal	(%rbx,%rbx,2), %ecx
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	movq	%r13, %rdx
	callq	_iqs5xx_read_burst
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	%r13, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	%r14, %r15
	addq	$8, %r15
	xorl	%ebx, %ebx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %r15
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_be16_to_cpu
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testq	%r13, %r13
	setne	%dl
	movq	%r12, %rdi
	callq	_input_mt_report_slot_state
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-4(%r15), %edi
	callq	_be16_to_cpu
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-8(%r15), %edi
	callq	_be16_to_cpu
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_input_report_abs
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_input_report_abs
	jmp	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	callq	_input_mt_sync_frame
	movq	%r12, %rdi
	callq	_input_sync
	movq	_IQS5XX_END_COMM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_iqs5xx_write_byte
	testl	%eax, %eax
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
	jne	LBB0_9
## %bb.8:
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
LBB0_9:
	movl	(%r15), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IQS5XX_NUM_CONTACTS,4,2        ## @IQS5XX_NUM_CONTACTS
	.comm	_IQS5XX_BL_STATUS_RESET,8,3     ## @IQS5XX_BL_STATUS_RESET
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IQS5XX_ABS_X,4,2               ## @IQS5XX_ABS_X
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_IQS5XX_END_COMM,4,2            ## @IQS5XX_END_COMM
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_iqs5xx_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iqs5xx_irq
_iqs5xx_irq:                            ; @iqs5xx_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, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _IQS5XX_NUM_CONTACTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IQS5XX_NUM_CONTACTS@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	add	x8, x12, x12, lsl #1
	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, #0x1ffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x1]
Lloh8:
	adrp	x9, _IQS5XX_BL_STATUS_RESET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IQS5XX_BL_STATUS_RESET@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.1:
	ldp	x21, x19, [x1, #8]
Lloh11:
	adrp	x8, _IQS5XX_ABS_X@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IQS5XX_ABS_X@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	w8, w12, w12, lsl #1
	lsl	w3, w8, #2
	mov	x0, x19
	mov	x2, x20
	bl	_iqs5xx_read_burst
	cbnz	w0, LBB0_8
; %bb.2:
	stur	x19, [x29, #-96]                ; 8-byte Folded Spill
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
	add	x25, x20, #8
Lloh14:
	adrp	x26, _MT_TOOL_FINGER@GOTPAGE
Lloh15:
	ldr	x26, [x26, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh16:
	adrp	x27, _ABS_MT_POSITION_X@GOTPAGE
Lloh17:
	ldr	x27, [x27, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh18:
	adrp	x28, _ABS_MT_POSITION_Y@GOTPAGE
Lloh19:
	ldr	x28, [x28, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh20:
	adrp	x19, _ABS_MT_PRESSURE@GOTPAGE
Lloh21:
	ldr	x19, [x19, _ABS_MT_PRESSURE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	x25, x25, #12
	cmp	x22, w0, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_be16_to_cpu
	mov	x23, x0
	mov	x0, x21
	mov	x1, x22
	bl	_input_mt_slot
	ldr	w1, [x26]
	cmp	x23, #0
	cset	w2, ne
	mov	x0, x21
	bl	_input_mt_report_slot_state
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w24, [x27]
	ldur	w0, [x25, #-4]
	bl	_be16_to_cpu
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_input_report_abs
	ldr	w24, [x28]
	ldur	w0, [x25, #-8]
	bl	_be16_to_cpu
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_input_report_abs
	ldr	w1, [x19]
	mov	x0, x21
	mov	x2, x23
	bl	_input_report_abs
	b	LBB0_4
LBB0_7:
	mov	x0, x21
	bl	_input_mt_sync_frame
	mov	x0, x21
	bl	_input_sync
Lloh22:
	adrp	x8, _IQS5XX_END_COMM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IQS5XX_END_COMM@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	mov	w2, #0
	bl	_iqs5xx_write_byte
	cbz	w0, LBB0_11
LBB0_8:
Lloh25:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	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_11:
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
Lloh30:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IQS5XX_NUM_CONTACTS,4,2        ; @IQS5XX_NUM_CONTACTS
	.comm	_IQS5XX_BL_STATUS_RESET,8,3     ; @IQS5XX_BL_STATUS_RESET
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IQS5XX_ABS_X,4,2               ; @IQS5XX_ABS_X
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_IQS5XX_END_COMM,4,2            ; @IQS5XX_END_COMM
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_iqs5xx_irq
.subsections_via_symbols
