	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucb1x00_adc_read               ## -- Begin function ucb1x00_adc_read
	.p2align	4, 0x90
_ucb1x00_adc_read:                      ## @ucb1x00_adc_read
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_UCB_ADC_SYNC_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	orl	%esi, %r14d
	movq	_UCB_ADC_CR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%rbx), %edx
	orl	%r14d, %edx
	movq	%rbx, %rdi
	callq	_ucb1x00_reg_write
	orl	(%rbx), %r14d
	movl	(%r15), %esi
	movq	_UCB_ADC_START@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ucb1x00_reg_write
	movq	_UCB_ADC_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ucb1x00_reg_read
	movq	_UCB_ADC_DAT_VAL@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	jne	LBB0_5
## %bb.3:
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_set_current_state
	movl	$1, %edi
	callq	_schedule_timeout
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ucb1x00_reg_read
	testl	%eax, (%r15)
	je	LBB0_4
LBB0_5:
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UCB_ADC_DAT                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UCB_ADC_SYNC_ENA,4,2           ## @UCB_ADC_SYNC_ENA
	.comm	_UCB_ADC_CR,4,2                 ## @UCB_ADC_CR
	.comm	_UCB_ADC_START,4,2              ## @UCB_ADC_START
	.comm	_UCB_ADC_DATA,4,2               ## @UCB_ADC_DATA
	.comm	_UCB_ADC_DAT_VAL,4,2            ## @UCB_ADC_DAT_VAL
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucb1x00_adc_read               ; -- Begin function ucb1x00_adc_read
	.p2align	2
_ucb1x00_adc_read:                      ; @ucb1x00_adc_read
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _UCB_ADC_SYNC_ENA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UCB_ADC_SYNC_ENA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w2, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w1
Lloh3:
	adrp	x21, _UCB_ADC_CR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _UCB_ADC_CR@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w8, [x0]
	orr	w2, w8, w20
	bl	_ucb1x00_reg_write
	ldr	w1, [x21]
	ldr	w8, [x19]
	orr	w8, w8, w20
Lloh5:
	adrp	x9, _UCB_ADC_START@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UCB_ADC_START@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_ucb1x00_reg_write
Lloh8:
	adrp	x20, _UCB_ADC_DATA@GOTPAGE
Lloh9:
	ldr	x20, [x20, _UCB_ADC_DATA@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ucb1x00_reg_read
Lloh10:
	adrp	x21, _UCB_ADC_DAT_VAL@GOTPAGE
Lloh11:
	ldr	x21, [x21, _UCB_ADC_DAT_VAL@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.1:
Lloh12:
	adrp	x22, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_set_current_state
	mov	w0, #1
	bl	_schedule_timeout
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ucb1x00_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_3:
	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
	b	_UCB_ADC_DAT
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_UCB_ADC_SYNC_ENA,4,2           ; @UCB_ADC_SYNC_ENA
	.comm	_UCB_ADC_CR,4,2                 ; @UCB_ADC_CR
	.comm	_UCB_ADC_START,4,2              ; @UCB_ADC_START
	.comm	_UCB_ADC_DATA,4,2               ; @UCB_ADC_DATA
	.comm	_UCB_ADC_DAT_VAL,4,2            ; @UCB_ADC_DAT_VAL
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
.subsections_via_symbols
