	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_read_position
_at91_adc_read_position:                ## @at91_adc_read_position
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	$0, (%rdx)
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	_AT91_SAMA5D2_TOUCH_X_CHAN_IDX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.3:
	callq	_at91_adc_touch_x_pos
	jmp	LBB0_6
LBB0_4:
	movq	_AT91_SAMA5D2_TOUCH_Y_CHAN_IDX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
## %bb.5:
	callq	_at91_adc_touch_y_pos
LBB0_6:
	movq	%rax, (%rbx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_1:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_AT91_SAMA5D2_TOUCH_X_CHAN_IDX,4,2 ## @AT91_SAMA5D2_TOUCH_X_CHAN_IDX
	.comm	_AT91_SAMA5D2_TOUCH_Y_CHAN_IDX,4,2 ## @AT91_SAMA5D2_TOUCH_Y_CHAN_IDX
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_at91_adc_read_position
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_adc_read_position
_at91_adc_read_position:                ; @at91_adc_read_position
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [x2]
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x8, _AT91_SAMA5D2_TOUCH_X_CHAN_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91_SAMA5D2_TOUCH_X_CHAN_IDX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.2:
	bl	_at91_adc_touch_x_pos
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _AT91_SAMA5D2_TOUCH_Y_CHAN_IDX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AT91_SAMA5D2_TOUCH_Y_CHAN_IDX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.4:
	bl	_at91_adc_touch_y_pos
LBB0_5:
	str	x0, [x19]
Lloh6:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _ENODATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_AT91_SAMA5D2_TOUCH_X_CHAN_IDX,4,2 ; @AT91_SAMA5D2_TOUCH_X_CHAN_IDX
	.comm	_AT91_SAMA5D2_TOUCH_Y_CHAN_IDX,4,2 ; @AT91_SAMA5D2_TOUCH_Y_CHAN_IDX
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_at91_adc_read_position
.subsections_via_symbols
