	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ili251x_touchdata_to_coords
_ili251x_touchdata_to_coords:           ## @ili251x_touchdata_to_coords
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	_ILI251X_TOUCHES@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	%edx, (%rax)
	jbe	LBB0_3
## %bb.1:
	movq	%r8, %r14
	movq	%rcx, %r15
	leal	(%rdx,%rdx,4), %eax
	leaq	(%rsi,%rax,4), %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_get_unaligned_be16
	movl	%eax, %ebx
	movl	%eax, (%r15)
	movl	$15, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	andl	$16383, (%r15)                  ## imm = 0x3FFF
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_get_unaligned_be16
	movl	%eax, (%r14)
	movl	$1, %r13d
LBB0_3:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ILI251X_TOUCHES,4,2            ## @ILI251X_TOUCHES
	.no_dead_strip	_ili251x_touchdata_to_coords
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ili251x_touchdata_to_coords
_ili251x_touchdata_to_coords:           ; @ili251x_touchdata_to_coords
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _ILI251X_TOUCHES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ILI251X_TOUCHES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ls	LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	add	w8, w2, w2, lsl #2
	add	x8, x1, w8, uxtw #2
	add	x21, x8, #4
	mov	x0, x21
	bl	_get_unaligned_be16
	mov	x22, x0
	str	w0, [x20]
	mov	w0, #15
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x20]
	and	w8, w8, #0x3fff
	str	w8, [x20]
	add	x0, x21, #8
	bl	_get_unaligned_be16
	str	w0, [x19]
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ILI251X_TOUCHES,4,2            ; @ILI251X_TOUCHES
	.no_dead_strip	_ili251x_touchdata_to_coords
.subsections_via_symbols
