	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc10001_adc_poll_done
_cc10001_adc_poll_done:                 ## @cc10001_adc_poll_done
	.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
	movl	%edx, %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_iio_priv
	movq	%rax, %r13
	movl	$-1, %ebx
	movq	_CC10001_ADC_EOC@GOTPCREL(%rip), %r14
	movq	_CC10001_ADC_EOC_SET@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_cc10001_adc_read_reg
	testl	%eax, (%r12)
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	callq	_ndelay
	incl	%ebx
	movq	_CC10001_MAX_POLL_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_1
	jmp	LBB0_6
LBB0_2:
	movl	$-1, %ebx
	movq	_CC10001_ADC_CHSEL_SAMPLED@GOTPCREL(%rip), %r12
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_cc10001_adc_read_reg
	movq	_CC10001_ADC_CH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	%r14d, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_ndelay
	incl	%ebx
	movq	_CC10001_MAX_POLL_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
LBB0_6:
	movq	_CC10001_INVALID_SAMPLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	movq	_CC10001_ADC_DDATA_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cc10001_adc_read_reg
	movq	_CC10001_ADC_DATA_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CC10001_ADC_EOC,4,2            ## @CC10001_ADC_EOC
	.comm	_CC10001_ADC_EOC_SET,4,2        ## @CC10001_ADC_EOC_SET
	.comm	_CC10001_MAX_POLL_COUNT,4,2     ## @CC10001_MAX_POLL_COUNT
	.comm	_CC10001_INVALID_SAMPLED,4,2    ## @CC10001_INVALID_SAMPLED
	.comm	_CC10001_ADC_CHSEL_SAMPLED,4,2  ## @CC10001_ADC_CHSEL_SAMPLED
	.comm	_CC10001_ADC_CH_MASK,4,2        ## @CC10001_ADC_CH_MASK
	.comm	_CC10001_ADC_DDATA_OUT,4,2      ## @CC10001_ADC_DDATA_OUT
	.comm	_CC10001_ADC_DATA_MASK,4,2      ## @CC10001_ADC_DATA_MASK
	.no_dead_strip	_cc10001_adc_poll_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc10001_adc_poll_done
_cc10001_adc_poll_done:                 ; @cc10001_adc_poll_done
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_iio_priv
	mov	x21, x0
	mov	w23, #-1
Lloh0:
	adrp	x24, _CC10001_ADC_EOC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CC10001_ADC_EOC@GOTPAGEOFF]
Lloh2:
	adrp	x25, _CC10001_ADC_EOC_SET@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CC10001_ADC_EOC_SET@GOTPAGEOFF]
Lloh4:
	adrp	x22, _CC10001_MAX_POLL_COUNT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CC10001_MAX_POLL_COUNT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_cc10001_adc_read_reg
	ldr	w8, [x25]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ndelay
	ldr	w8, [x22]
	add	w23, w23, #1
	cmp	w23, w8
	b.ne	LBB0_1
	b	LBB0_6
LBB0_3:
	mov	w23, #-1
Lloh6:
	adrp	x24, _CC10001_ADC_CHSEL_SAMPLED@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CC10001_ADC_CHSEL_SAMPLED@GOTPAGEOFF]
Lloh8:
	adrp	x25, _CC10001_ADC_CH_MASK@GOTPAGE
Lloh9:
	ldr	x25, [x25, _CC10001_ADC_CH_MASK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_cc10001_adc_read_reg
	ldr	w8, [x25]
	and	w8, w8, w0
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ndelay
	ldr	w8, [x22]
	add	w23, w23, #1
	cmp	w23, w8
	b.ne	LBB0_4
LBB0_6:
Lloh10:
	adrp	x8, _CC10001_INVALID_SAMPLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CC10001_INVALID_SAMPLED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _CC10001_ADC_DDATA_OUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CC10001_ADC_DDATA_OUT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_cc10001_adc_read_reg
Lloh16:
	adrp	x8, _CC10001_ADC_DATA_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CC10001_ADC_DATA_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w0, w8, w0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CC10001_ADC_EOC,4,2            ; @CC10001_ADC_EOC
	.comm	_CC10001_ADC_EOC_SET,4,2        ; @CC10001_ADC_EOC_SET
	.comm	_CC10001_MAX_POLL_COUNT,4,2     ; @CC10001_MAX_POLL_COUNT
	.comm	_CC10001_INVALID_SAMPLED,4,2    ; @CC10001_INVALID_SAMPLED
	.comm	_CC10001_ADC_CHSEL_SAMPLED,4,2  ; @CC10001_ADC_CHSEL_SAMPLED
	.comm	_CC10001_ADC_CH_MASK,4,2        ; @CC10001_ADC_CH_MASK
	.comm	_CC10001_ADC_DDATA_OUT,4,2      ; @CC10001_ADC_DDATA_OUT
	.comm	_CC10001_ADC_DATA_MASK,4,2      ; @CC10001_ADC_DATA_MASK
	.no_dead_strip	_cc10001_adc_poll_done
.subsections_via_symbols
