	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc5_poll_wait_eoc
_adc5_poll_wait_eoc:                    ## @adc5_poll_wait_eoc
	.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
	movq	_ADC5_CONV_TIME_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	leaq	-44(%rbp), %r14
	movq	_ADC5_USR_STATUS1_EOC@GOTPCREL(%rip), %r12
	movq	_ADC5_CONV_TIME_MAX_US@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ADC5_USR_STATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$4, %ecx
	callq	_adc5_read
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax
	movq	_ADC5_USR_STATUS1_REQ_STS_EOC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	cmpl	(%r12), %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ADC5_CONV_TIME_MIN_US@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_usleep_range
	decl	%ebx
	jne	LBB0_2
LBB0_6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADC5_CONV_TIME_RETRY,4,2       ## @ADC5_CONV_TIME_RETRY
	.comm	_ADC5_USR_STATUS1,4,2           ## @ADC5_USR_STATUS1
	.comm	_ADC5_USR_STATUS1_REQ_STS_EOC_MASK,4,2 ## @ADC5_USR_STATUS1_REQ_STS_EOC_MASK
	.comm	_ADC5_USR_STATUS1_EOC,4,2       ## @ADC5_USR_STATUS1_EOC
	.comm	_ADC5_CONV_TIME_MIN_US,4,2      ## @ADC5_CONV_TIME_MIN_US
	.comm	_ADC5_CONV_TIME_MAX_US,4,2      ## @ADC5_CONV_TIME_MAX_US
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_adc5_poll_wait_eoc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc5_poll_wait_eoc
_adc5_poll_wait_eoc:                    ; @adc5_poll_wait_eoc
	.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
Lloh0:
	adrp	x8, _ADC5_CONV_TIME_RETRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADC5_CONV_TIME_RETRY@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	w20, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x21, _ADC5_USR_STATUS1@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ADC5_USR_STATUS1@GOTPAGEOFF]
Lloh5:
	adrp	x22, _ADC5_USR_STATUS1_REQ_STS_EOC_MASK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ADC5_USR_STATUS1_REQ_STS_EOC_MASK@GOTPAGEOFF]
Lloh7:
	adrp	x23, _ADC5_USR_STATUS1_EOC@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ADC5_USR_STATUS1_EOC@GOTPAGEOFF]
Lloh9:
	adrp	x24, _ADC5_CONV_TIME_MIN_US@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ADC5_CONV_TIME_MIN_US@GOTPAGEOFF]
Lloh11:
	adrp	x25, _ADC5_CONV_TIME_MAX_US@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ADC5_CONV_TIME_MAX_US@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #4
	bl	_adc5_read
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	ldr	w9, [sp, #12]
	and	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_usleep_range
	subs	w20, w20, #1
	b.ne	LBB0_2
LBB0_5:
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ADC5_CONV_TIME_RETRY,4,2       ; @ADC5_CONV_TIME_RETRY
	.comm	_ADC5_USR_STATUS1,4,2           ; @ADC5_USR_STATUS1
	.comm	_ADC5_USR_STATUS1_REQ_STS_EOC_MASK,4,2 ; @ADC5_USR_STATUS1_REQ_STS_EOC_MASK
	.comm	_ADC5_USR_STATUS1_EOC,4,2       ; @ADC5_USR_STATUS1_EOC
	.comm	_ADC5_CONV_TIME_MIN_US,4,2      ; @ADC5_CONV_TIME_MIN_US
	.comm	_ADC5_CONV_TIME_MAX_US,4,2      ; @ADC5_CONV_TIME_MAX_US
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_adc5_poll_wait_eoc
.subsections_via_symbols
