	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zet6223_irq
_zet6223_irq:                           ## @zet6223_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, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %eax
	leal	3(,%rax,4), %ebx
	movq	_ZET6223_MAX_PKT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	8(%r12), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_i2c_master_recv
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.2:
	movl	(%r14), %eax
	movq	_ZET6223_VALID_PACKET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.3:
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_get_unaligned_be16
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.4:
	movl	$15, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	decl	%r13d
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_BIT
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r12), %edi
	movl	%ebx, %esi
	callq	_input_mt_slot
	movl	4(%r12), %edi
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_input_mt_report_slot_state
	movl	4(%r12), %edi
	movq	_EV_ABS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%r14,%rbx,4), %ecx
	andl	$-16, %ecx
	shll	$4, %ecx
	addl	16(%r14,%rbx,4), %ecx
	callq	_input_event
	movl	4(%r12), %edi
	movl	(%r15), %esi
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%r14,%rbx,4), %ecx
	andl	$15, %ecx
	shll	$8, %ecx
	addl	20(%r14,%rbx,4), %ecx
	callq	_input_event
	jmp	LBB0_7
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testl	%eax, %eax
	cmovsl	%eax, %edx
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err_ratelimited
	jmp	LBB0_9
LBB0_8:
	movl	4(%r12), %edi
	callq	_input_mt_sync_frame
	movl	4(%r12), %edi
	callq	_input_sync
LBB0_9:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %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	_ZET6223_MAX_PKT_SIZE,4,2       ## @ZET6223_MAX_PKT_SIZE
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading input data: %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_ZET6223_VALID_PACKET,4,2       ## @ZET6223_VALID_PACKET
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.no_dead_strip	_zet6223_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zet6223_irq
_zet6223_irq:                           ; @zet6223_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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w8, [x1]
	mov	w21, #3
	bfi	w21, w8, #2, #30
Lloh3:
	adrp	x8, _ZET6223_MAX_PKT_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZET6223_MAX_PKT_SIZE@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	x20, x9, x8
	mov	sp, x20
	ldr	x0, [x1, #8]
	mov	x1, x20
	mov	x2, x21
	bl	_i2c_master_recv
	cmp	w0, w21
	b.ne	LBB0_7
; %bb.1:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _ZET6223_VALID_PACKET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ZET6223_VALID_PACKET@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.2:
	add	x0, x20, #4
	bl	_get_unaligned_be16
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x21, x0
	mov	x22, #0
	mov	w23, #15
Lloh11:
	adrp	x24, _MT_TOOL_FINGER@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh13:
	adrp	x25, _EV_ABS@GOTPAGE
Lloh14:
	ldr	x25, [x25, _EV_ABS@GOTPAGEOFF]
Lloh15:
	adrp	x26, _ABS_MT_POSITION_X@GOTPAGE
Lloh16:
	ldr	x26, [x26, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh17:
	adrp	x27, _ABS_MT_POSITION_Y@GOTPAGE
Lloh18:
	ldr	x27, [x27, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	sub	w23, w23, #1
	cmp	x22, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x22
	bl	_input_mt_slot
	ldr	w0, [x19, #4]
	ldr	w1, [x24]
	mov	w2, #1
	bl	_input_mt_report_slot_state
	ldr	w0, [x19, #4]
	ldr	w1, [x25]
	ldr	w2, [x26]
	add	x28, x20, x22, lsl #2
	ldp	w8, w9, [x28, #12]
	lsl	w8, w8, #4
	and	w8, w8, #0xffffff00
	add	w3, w8, w9
	bl	_input_event
	ldr	w0, [x19, #4]
	ldr	w1, [x25]
	ldr	w2, [x27]
	ldr	w8, [x28, #12]
	ubfiz	w8, w8, #8, #4
	ldr	w9, [x28, #20]
	add	w3, w8, w9
	bl	_input_event
	b	LBB0_4
LBB0_7:
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w2, w0, w8, lt
	ldr	x0, [x19, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err_ratelimited
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_input_mt_sync_frame
	ldr	w0, [x19, #4]
	bl	_input_sync
LBB0_9:
Lloh24:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh26:
	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_11
; %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:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ZET6223_MAX_PKT_SIZE,4,2       ; @ZET6223_MAX_PKT_SIZE
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading input data: %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_ZET6223_VALID_PACKET,4,2       ; @ZET6223_VALID_PACKET
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.no_dead_strip	_zet6223_irq
.subsections_via_symbols
