	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vadc_configure
_vadc_configure:                        ## @vadc_configure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_VADC_OP_MODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VADC_OP_MODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_VADC_ADC_TRIM_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_VADC_AMUX_TRIM_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_VADC_MODE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vadc_write
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_VADC_ADC_CH_SEL_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_vadc_write
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	4(%r14), %edx
	movq	_VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_VADC_ADC_DIG_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vadc_write
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_VADC_HW_SETTLE_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	callq	_vadc_write
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_VADC_FAST_AVG_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r14), %edx
	movq	%rbx, %rdi
	callq	_vadc_write
	testl	%eax, %eax
	je	LBB0_5
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	12(%r14), %edx
	movq	_VADC_FAST_AVG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%edx, %edx
	je	LBB0_7
## %bb.6:
	movq	_VADC_FAST_AVG_EN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vadc_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VADC_OP_MODE_NORMAL,4,2        ## @VADC_OP_MODE_NORMAL
	.comm	_VADC_OP_MODE_SHIFT,4,2         ## @VADC_OP_MODE_SHIFT
	.comm	_VADC_ADC_TRIM_EN,4,2           ## @VADC_ADC_TRIM_EN
	.comm	_VADC_AMUX_TRIM_EN,4,2          ## @VADC_AMUX_TRIM_EN
	.comm	_VADC_MODE_CTL,4,2              ## @VADC_MODE_CTL
	.comm	_VADC_ADC_CH_SEL_CTL,4,2        ## @VADC_ADC_CH_SEL_CTL
	.comm	_VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT,4,2 ## @VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT
	.comm	_VADC_ADC_DIG_PARAM,4,2         ## @VADC_ADC_DIG_PARAM
	.comm	_VADC_HW_SETTLE_DELAY,4,2       ## @VADC_HW_SETTLE_DELAY
	.comm	_VADC_FAST_AVG_CTL,4,2          ## @VADC_FAST_AVG_CTL
	.comm	_VADC_FAST_AVG_EN,4,2           ## @VADC_FAST_AVG_EN
	.comm	_VADC_FAST_AVG_EN_SET,4,2       ## @VADC_FAST_AVG_EN_SET
	.no_dead_strip	_vadc_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vadc_configure
_vadc_configure:                        ; @vadc_configure
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VADC_OP_MODE_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VADC_OP_MODE_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VADC_OP_MODE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VADC_OP_MODE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x9, _VADC_ADC_TRIM_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VADC_ADC_TRIM_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _VADC_AMUX_TRIM_EN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VADC_AMUX_TRIM_EN@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh11:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh12:
	adrp	x8, _VADC_MODE_CTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VADC_MODE_CTL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_vadc_write
	cbnz	w0, LBB0_5
; %bb.1:
Lloh15:
	adrp	x8, _VADC_ADC_CH_SEL_CTL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VADC_ADC_CH_SEL_CTL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_vadc_write
	cbnz	w0, LBB0_5
; %bb.2:
Lloh18:
	adrp	x8, _VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT@GOTPAGEOFF]
	ldr	w9, [x20, #4]
Lloh20:
	ldr	w8, [x8]
	lsl	w2, w9, w8
Lloh21:
	adrp	x8, _VADC_ADC_DIG_PARAM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VADC_ADC_DIG_PARAM@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vadc_write
	cbnz	w0, LBB0_5
; %bb.3:
Lloh24:
	adrp	x8, _VADC_HW_SETTLE_DELAY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VADC_HW_SETTLE_DELAY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_vadc_write
	cbnz	w0, LBB0_5
; %bb.4:
Lloh27:
	adrp	x8, _VADC_FAST_AVG_CTL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VADC_FAST_AVG_CTL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_vadc_write
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w8, [x20, #12]
Lloh30:
	adrp	x9, _VADC_FAST_AVG_EN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _VADC_FAST_AVG_EN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x9]
Lloh33:
	adrp	x9, _VADC_FAST_AVG_EN_SET@GOTPAGE
Lloh34:
	ldr	x9, [x9, _VADC_FAST_AVG_EN_SET@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w2, wzr, w9, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vadc_write
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_VADC_OP_MODE_NORMAL,4,2        ; @VADC_OP_MODE_NORMAL
	.comm	_VADC_OP_MODE_SHIFT,4,2         ; @VADC_OP_MODE_SHIFT
	.comm	_VADC_ADC_TRIM_EN,4,2           ; @VADC_ADC_TRIM_EN
	.comm	_VADC_AMUX_TRIM_EN,4,2          ; @VADC_AMUX_TRIM_EN
	.comm	_VADC_MODE_CTL,4,2              ; @VADC_MODE_CTL
	.comm	_VADC_ADC_CH_SEL_CTL,4,2        ; @VADC_ADC_CH_SEL_CTL
	.comm	_VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT,4,2 ; @VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT
	.comm	_VADC_ADC_DIG_PARAM,4,2         ; @VADC_ADC_DIG_PARAM
	.comm	_VADC_HW_SETTLE_DELAY,4,2       ; @VADC_HW_SETTLE_DELAY
	.comm	_VADC_FAST_AVG_CTL,4,2          ; @VADC_FAST_AVG_CTL
	.comm	_VADC_FAST_AVG_EN,4,2           ; @VADC_FAST_AVG_EN
	.comm	_VADC_FAST_AVG_EN_SET,4,2       ; @VADC_FAST_AVG_EN_SET
	.no_dead_strip	_vadc_configure
.subsections_via_symbols
