	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc_ts_measure
_adc_ts_measure:                        ## @adc_ts_measure
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movq	%rsi, %rdi
	movl	$1, %esi
	callq	_gpiod_set_value
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_gpiod_set_value
	movq	_COLI_TOUCH_MIN_DELAY_US@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_COLI_TOUCH_MAX_DELAY_US@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usleep_range
	movq	_COLI_TOUCH_NO_OF_AVGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_iio_read_channel_raw
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	-44(%rbp), %ebx
	incl	%r15d
	movq	_COLI_TOUCH_NO_OF_AVGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r15d
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	cltd
	idivl	%ecx
LBB0_6:
	movl	%eax, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLI_TOUCH_MIN_DELAY_US,4,2    ## @COLI_TOUCH_MIN_DELAY_US
	.comm	_COLI_TOUCH_MAX_DELAY_US,4,2    ## @COLI_TOUCH_MAX_DELAY_US
	.comm	_COLI_TOUCH_NO_OF_AVGS,4,2      ## @COLI_TOUCH_NO_OF_AVGS
	.no_dead_strip	_adc_ts_measure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc_ts_measure
_adc_ts_measure:                        ; @adc_ts_measure
	.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, x2
	mov	x20, x1
	mov	x21, x0
	str	wzr, [sp, #12]
	mov	x0, x1
	mov	w1, #1
	bl	_gpiod_set_value
	mov	x0, x19
	mov	w1, #1
	bl	_gpiod_set_value
Lloh0:
	adrp	x8, _COLI_TOUCH_MIN_DELAY_US@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COLI_TOUCH_MIN_DELAY_US@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _COLI_TOUCH_MAX_DELAY_US@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COLI_TOUCH_MAX_DELAY_US@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_usleep_range
Lloh6:
	adrp	x24, _COLI_TOUCH_NO_OF_AVGS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _COLI_TOUCH_NO_OF_AVGS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w25, #0
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x21
	bl	_iio_read_channel_raw
	tbnz	w0, #31, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	add	w23, w8, w23
	add	w25, w25, #1
	ldr	w8, [x24]
	cmp	w25, w8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w23, #0
LBB0_5:
	sdiv	w22, w23, w8
	b	LBB0_7
LBB0_6:
	mov	x22, x0
LBB0_7:
	mov	x0, x20
	mov	w1, #0
	bl	_gpiod_set_value
	mov	x0, x19
	mov	w1, #0
	bl	_gpiod_set_value
	mov	x0, x22
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COLI_TOUCH_MIN_DELAY_US,4,2    ; @COLI_TOUCH_MIN_DELAY_US
	.comm	_COLI_TOUCH_MAX_DELAY_US,4,2    ; @COLI_TOUCH_MAX_DELAY_US
	.comm	_COLI_TOUCH_NO_OF_AVGS,4,2      ; @COLI_TOUCH_NO_OF_AVGS
	.no_dead_strip	_adc_ts_measure
.subsections_via_symbols
