	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ili210x_report_events
_ili210x_report_events:                 ## @ili210x_report_events
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	cmpl	$0, (%rdi)
	jle	LBB0_1
## %bb.2:
	leaq	16(%rbx), %r13
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	cmpl	(%rbx), %r12d
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	_MODEL_ILI210X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_ili210x_touchdata_to_coords
	movl	%eax, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_MODEL_ILI251X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_ili251x_touchdata_to_coords
	movl	%eax, %r14d
	testl	%eax, %eax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovnel	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_input_mt_report_slot_state
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %edx
	movl	-48(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$1, %r8d
	callq	_touchscreen_report_pos
	jmp	LBB0_9
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_input_mt_report_pointer_emulation
	movq	%r15, %rdi
	callq	_input_sync
	movq	8(%rbx), %rax
	movq	_MODEL_ILI210X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_12
## %bb.11:
	movl	$243, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	andl	(%rax), %ecx
LBB0_12:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODEL_ILI210X,8,3              ## @MODEL_ILI210X
	.comm	_MODEL_ILI251X,8,3              ## @MODEL_ILI251X
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.no_dead_strip	_ili210x_report_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ili210x_report_events
_ili210x_report_events:                 ; @ili210x_report_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #24]
	str	xzr, [sp, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x26, _MODEL_ILI210X@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MODEL_ILI210X@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w25, #0
	mov	w21, #0
	mov	w23, #0
	add	x24, x20, #16
Lloh2:
	adrp	x27, _MT_TOOL_FINGER@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh4:
	adrp	x28, _MODEL_ILI251X@GOTPAGE
Lloh5:
	ldr	x28, [x28, _MODEL_ILI251X@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	ldr	w8, [x20]
	cmp	w23, w8
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_ili210x_touchdata_to_coords
	mov	x25, x0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_ili251x_touchdata_to_coords
	mov	x25, x0
	cmp	w0, #0
	csinc	w21, w21, wzr, eq
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_input_mt_slot
	ldr	w1, [x27]
	mov	x0, x22
	mov	x2, x25
	bl	_input_mt_report_slot_state
	cbz	w25, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w3, w2, [sp, #8]
	mov	x0, x22
	mov	x1, x24
	mov	w4, #1
	bl	_touchscreen_report_pos
	b	LBB0_2
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x22
	mov	w1, #0
	bl	_input_mt_report_pointer_emulation
	mov	x0, x22
	bl	_input_sync
	ldr	x8, [x20, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x19]
	mov	w9, #243
	and	w21, w8, w9
LBB0_12:
	mov	x0, x21
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MODEL_ILI210X,8,3              ; @MODEL_ILI210X
	.comm	_MODEL_ILI251X,8,3              ; @MODEL_ILI251X
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.no_dead_strip	_ili210x_report_events
.subsections_via_symbols
