	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icn8505_irq
_icn8505_irq:                           ## @icn8505_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
	movq	_ICN8505_REG_TOUCHDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movl	$16, %ecx
	callq	_icn8505_read_data
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_10
LBB0_2:
	movl	-64(%rbp), %edx
	movq	_ICN8505_MAX_TOUCHES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movl	(%rbx), %edx
	movl	%edx, -64(%rbp)
LBB0_4:
	testl	%edx, %edx
	jle	LBB0_9
## %bb.5:
	leaq	4(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$12, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movslq	-64(%rbp), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %r15
	movl	(%r15,%rbx), %edi
	callq	_icn8505_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_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-8(%r15,%rbx), %edi
	callq	_get_unaligned_le16
	movq	%r13, %r12
	movl	%eax, %r13d
	movl	-12(%r15,%rbx), %edi
	callq	_get_unaligned_le16
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r12, %r13
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_touchscreen_report_pos
	jmp	LBB0_8
LBB0_9:
	movl	(%r13), %edi
	callq	_input_mt_sync_frame
	movl	(%r13), %edi
	movq	_KEY_LEFTMETA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$1, -60(%rbp)
	sete	%dl
	callq	_input_report_key
	movl	(%r13), %edi
	callq	_input_sync
LBB0_10:
	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
	.comm	_ICN8505_REG_TOUCHDATA,4,2      ## @ICN8505_REG_TOUCHDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading touch data: %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_ICN8505_MAX_TOUCHES,4,2        ## @ICN8505_MAX_TOUCHES
L_.str.1:                               ## @.str.1
	.asciz	"Too many touches %d > %d\n"

	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_KEY_LEFTMETA,4,2               ## @KEY_LEFTMETA
	.no_dead_strip	_icn8505_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icn8505_irq
_icn8505_irq:                           ; @icn8505_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	ldr	x20, [x1, #8]
Lloh0:
	adrp	x8, _ICN8505_REG_TOUCHDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICN8505_REG_TOUCHDATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #16
	bl	_icn8505_read_data
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_2:
	ldr	w2, [sp]
Lloh5:
	adrp	x21, _ICN8505_MAX_TOUCHES@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ICN8505_MAX_TOUCHES@GOTPAGEOFF]
	ldr	w3, [x21]
	cmp	w2, w3
	b.le	LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	ldr	w2, [x21]
	str	w2, [sp]
LBB0_4:
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x23, #0
	mov	x24, #0
	add	x20, x19, #4
Lloh9:
	adrp	x25, _MT_TOOL_FINGER@GOTPAGE
Lloh10:
	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]
	add	x23, x23, #16
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x26, x8, x23
	ldr	w0, [x26, #12]
	bl	_icn8505_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	_get_unaligned_le16
	mov	x22, x0
	ldr	w0, [x26]
	bl	_get_unaligned_le16
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	w4, #1
	bl	_touchscreen_report_pos
	b	LBB0_6
LBB0_9:
	ldr	w0, [x19]
	bl	_input_mt_sync_frame
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _KEY_LEFTMETA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_LEFTMETA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w8, [sp, #4]
	cmp	w8, #1
	cset	w2, eq
	bl	_input_report_key
	ldr	w0, [x19]
	bl	_input_sync
LBB0_10:
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ICN8505_REG_TOUCHDATA,4,2      ; @ICN8505_REG_TOUCHDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading touch data: %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_ICN8505_MAX_TOUCHES,4,2        ; @ICN8505_MAX_TOUCHES
l_.str.1:                               ; @.str.1
	.asciz	"Too many touches %d > %d\n"

	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_KEY_LEFTMETA,4,2               ; @KEY_LEFTMETA
	.no_dead_strip	_icn8505_irq
.subsections_via_symbols
