	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucb1400_adc_read               ## -- Begin function ucb1400_adc_read
	.p2align	4, 0x90
_ucb1400_adc_read:                      ## @ucb1400_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, %ebx
	movq	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_UCB_ADC_SYNC_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	%esi, %ebx
	movq	_UCB_ADC_CR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_UCB_ADC_ENA@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	%ebx, %edx
	movq	%r14, %rdi
	callq	_ucb1400_reg_write
	orl	(%r12), %ebx
	movl	(%r15), %esi
	movq	_UCB_ADC_START@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ucb1400_reg_write
	movq	_UCB_ADC_DATA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ucb1400_reg_read
	movq	_UCB_ADC_DAT_VALID@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ucb1400_reg_read
	testl	%eax, (%rbx)
	je	LBB0_3
LBB0_5:
	movq	_UCB_ADC_DAT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_ENA,4,2                ## @UCB_ADC_ENA
	.comm	_UCB_ADC_START,4,2              ## @UCB_ADC_START
	.comm	_UCB_ADC_DATA,4,2               ## @UCB_ADC_DATA
	.comm	_UCB_ADC_DAT_VALID,4,2          ## @UCB_ADC_DAT_VALID
	.comm	_UCB_ADC_DAT_MASK,4,2           ## @UCB_ADC_DAT_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucb1400_adc_read               ; -- Begin function ucb1400_adc_read
	.p2align	2
_ucb1400_adc_read:                      ; @ucb1400_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
Lloh3:
	adrp	x20, _UCB_ADC_CR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _UCB_ADC_CR@GOTPAGEOFF]
	orr	w21, w8, w1
	ldr	w1, [x20]
Lloh5:
	adrp	x22, _UCB_ADC_ENA@GOTPAGE
Lloh6:
	ldr	x22, [x22, _UCB_ADC_ENA@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w2, w8, w21
	bl	_ucb1400_reg_write
	ldr	w1, [x20]
	ldr	w8, [x22]
	orr	w8, w8, w21
Lloh7:
	adrp	x9, _UCB_ADC_START@GOTPAGE
Lloh8:
	ldr	x9, [x9, _UCB_ADC_START@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_ucb1400_reg_write
Lloh10:
	adrp	x20, _UCB_ADC_DATA@GOTPAGE
Lloh11:
	ldr	x20, [x20, _UCB_ADC_DATA@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ucb1400_reg_read
Lloh12:
	adrp	x21, _UCB_ADC_DAT_VALID@GOTPAGE
Lloh13:
	ldr	x21, [x21, _UCB_ADC_DAT_VALID@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ucb1400_reg_read
	b	LBB0_1
LBB0_3:
Lloh14:
	adrp	x8, _UCB_ADC_DAT_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UCB_ADC_DAT_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w0, w8, w0
	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
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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_ENA,4,2                ; @UCB_ADC_ENA
	.comm	_UCB_ADC_START,4,2              ; @UCB_ADC_START
	.comm	_UCB_ADC_DATA,4,2               ; @UCB_ADC_DATA
	.comm	_UCB_ADC_DAT_VALID,4,2          ; @UCB_ADC_DAT_VALID
	.comm	_UCB_ADC_DAT_MASK,4,2           ; @UCB_ADC_DAT_MASK
.subsections_via_symbols
