	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf610_adc_cfg_post_set
_vf610_adc_cfg_post_set:                ## @vf610_adc_cfg_post_set
	.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	%rdi, %r14
	movl	16(%rdi), %eax
	cmpl	$132, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$131, %eax
	jne	LBB0_5
## %bb.2:
	movq	_VF610_ADC_ALTCLK_SEL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_VF610_ADC_ADACK_SEL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
LBB0_5:
	movq	_VF610_ADC_ADLPC_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_VF610_ADC_ADHSC_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	20(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.8:
	movq	_VF610_ADC_REFSEL_VALT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	movq	_VF610_ADC_REFSEL_VBG@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_11:
	cmpq	$0, 24(%r14)
	movl	$0, %edi
	je	LBB0_13
## %bb.12:
	movq	_VF610_ADC_OVWREN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_13:
	orl	%ebx, %edi
	movq	_VF610_REG_ADC_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	_VF610_REG_ADC_GC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VF610_ADC_ALTCLK_SEL,4,2       ## @VF610_ADC_ALTCLK_SEL
	.comm	_VF610_ADC_ADACK_SEL,4,2        ## @VF610_ADC_ADACK_SEL
	.comm	_VF610_ADC_ADLPC_EN,4,2         ## @VF610_ADC_ADLPC_EN
	.comm	_VF610_ADC_ADHSC_EN,4,2         ## @VF610_ADC_ADHSC_EN
	.comm	_VF610_ADC_REFSEL_VALT,4,2      ## @VF610_ADC_REFSEL_VALT
	.comm	_VF610_ADC_REFSEL_VBG,4,2       ## @VF610_ADC_REFSEL_VBG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error voltage reference\n"

	.comm	_VF610_ADC_OVWREN,4,2           ## @VF610_ADC_OVWREN
	.comm	_VF610_REG_ADC_CFG,8,3          ## @VF610_REG_ADC_CFG
	.comm	_VF610_REG_ADC_GC,8,3           ## @VF610_REG_ADC_GC
	.no_dead_strip	_vf610_adc_cfg_post_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vf610_adc_cfg_post_set
_vf610_adc_cfg_post_set:                ; @vf610_adc_cfg_post_set
	.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	x19, x0
	ldr	w8, [x0, #16]
	cmp	w8, #132
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #131
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _VF610_ADC_ALTCLK_SEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VF610_ADC_ALTCLK_SEL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _VF610_ADC_ADACK_SEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VF610_ADC_ADACK_SEL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
Lloh4:
	adrp	x9, _VF610_ADC_ADLPC_EN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VF610_ADC_ADLPC_EN@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _VF610_ADC_ADHSC_EN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VF610_ADC_ADHSC_EN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	w8, [x19, #20]
	cmp	w8, #128
	b.eq	LBB0_13
; %bb.7:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #130
	b.ne	LBB0_12
; %bb.9:
Lloh10:
	adrp	x8, _VF610_ADC_REFSEL_VALT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VF610_ADC_REFSEL_VALT@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh12:
	adrp	x8, _VF610_ADC_REFSEL_VBG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VF610_ADC_REFSEL_VBG@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_13
LBB0_12:
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_13:
	ldr	x8, [x19, #24]
Lloh16:
	adrp	x9, _VF610_ADC_OVWREN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VF610_ADC_OVWREN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w0, w8, w20
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _VF610_REG_ADC_CFG@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VF610_REG_ADC_CFG@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _VF610_REG_ADC_GC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VF610_REG_ADC_GC@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_VF610_ADC_ALTCLK_SEL,4,2       ; @VF610_ADC_ALTCLK_SEL
	.comm	_VF610_ADC_ADACK_SEL,4,2        ; @VF610_ADC_ADACK_SEL
	.comm	_VF610_ADC_ADLPC_EN,4,2         ; @VF610_ADC_ADLPC_EN
	.comm	_VF610_ADC_ADHSC_EN,4,2         ; @VF610_ADC_ADHSC_EN
	.comm	_VF610_ADC_REFSEL_VALT,4,2      ; @VF610_ADC_REFSEL_VALT
	.comm	_VF610_ADC_REFSEL_VBG,4,2       ; @VF610_ADC_REFSEL_VBG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error voltage reference\n"

	.comm	_VF610_ADC_OVWREN,4,2           ; @VF610_ADC_OVWREN
	.comm	_VF610_REG_ADC_CFG,8,3          ; @VF610_REG_ADC_CFG
	.comm	_VF610_REG_ADC_GC,8,3           ; @VF610_REG_ADC_GC
	.no_dead_strip	_vf610_adc_cfg_post_set
.subsections_via_symbols
