	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icn8318_irq
_icn8318_irq:                           ## @icn8318_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	$40, %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	8(%rsi), %r14
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_icn8318_read_touch_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpq	$0, -64(%rbp)
	jne	LBB0_11
## %bb.3:
	movl	-80(%rbp), %edx
	movq	_ICN8318_MAX_TOUCHES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movl	(%rbx), %edx
	movl	%edx, -80(%rbp)
LBB0_5:
	testl	%edx, %edx
	jle	LBB0_10
## %bb.6:
	leaq	4(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$12, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movslq	-80(%rbp), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %r15
	movl	(%r15,%rbx), %edi
	callq	_icn8318_touch_active
	movl	%eax, %r12d
	movl	(%r13), %edi
	movl	-4(%r15,%rbx), %esi
	callq	_input_mt_slot
	movl	(%r13), %edi
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_input_mt_report_slot_state
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-8(%r15,%rbx), %edi
	callq	_be16_to_cpu
	movq	%r13, %r12
	movl	%eax, %r13d
	movl	-12(%r15,%rbx), %edi
	callq	_be16_to_cpu
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r12, %r13
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_touchscreen_report_pos
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_11
LBB0_10:
	movl	(%r13), %edi
	callq	_input_mt_sync_frame
	movl	(%r13), %edi
	callq	_input_sync
LBB0_11:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading touch data: %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_ICN8318_MAX_TOUCHES,4,2        ## @ICN8318_MAX_TOUCHES
L_.str.1:                               ## @.str.1
	.asciz	"Too much touches %d > %d\n"

	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.no_dead_strip	_icn8318_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icn8318_irq
_icn8318_irq:                           ; @icn8318_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	ldr	x20, [x1, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_icn8318_read_touch_data
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_11
; %bb.2:
	ldr	w2, [sp, #8]
Lloh0:
	adrp	x21, _ICN8318_MAX_TOUCHES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ICN8318_MAX_TOUCHES@GOTPAGEOFF]
	ldr	w3, [x21]
	cmp	w2, w3
	b.le	LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	ldr	w2, [x21]
	str	w2, [sp, #8]
LBB0_4:
	cmp	w2, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x23, #0
	mov	x24, #0
	add	x20, x19, #4
Lloh4:
	adrp	x25, _MT_TOOL_FINGER@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MT_TOOL_FINGER@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [sp, #8]
	add	x23, x23, #16
	cmp	x24, x8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	add	x26, x8, x23
	ldr	w0, [x26, #12]
	bl	_icn8318_touch_active
	mov	x21, x0
	ldr	w0, [x19]
	ldr	w1, [x26, #8]
	bl	_input_mt_slot
	ldr	w0, [x19]
	ldr	w1, [x25]
	mov	x2, x21
	bl	_input_mt_report_slot_state
	cbz	w21, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w21, [x19]
	ldr	w0, [x26, #4]
	bl	_be16_to_cpu
	mov	x22, x0
	ldr	w0, [x26]
	bl	_be16_to_cpu
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	w4, #1
	bl	_touchscreen_report_pos
	b	LBB0_6
LBB0_9:
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19]
	bl	_input_mt_sync_frame
	ldr	w0, [x19]
	bl	_input_sync
LBB0_11:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading touch data: %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_ICN8318_MAX_TOUCHES,4,2        ; @ICN8318_MAX_TOUCHES
l_.str.1:                               ; @.str.1
	.asciz	"Too much touches %d > %d\n"

	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.no_dead_strip	_icn8318_irq
.subsections_via_symbols
