	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf610_adc_read_data
_vf610_adc_read_data:                   ## @vf610_adc_read_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_VF610_REG_ADC_R0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	(%rbx), %ecx
	cmpl	$12, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$10, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$8, %ecx
	jne	LBB0_6
## %bb.3:
	movzbl	%al, %eax
	jmp	LBB0_6
LBB0_5:
	andl	$4095, %eax                     ## imm = 0xFFF
	jmp	LBB0_6
LBB0_4:
	andl	$1023, %eax                     ## imm = 0x3FF
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VF610_REG_ADC_R0,8,3           ## @VF610_REG_ADC_R0
	.no_dead_strip	_vf610_adc_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vf610_adc_read_data
_vf610_adc_read_data:                   ; @vf610_adc_read_data
	.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	x8, [x0, #8]
Lloh0:
	adrp	x9, _VF610_REG_ADC_R0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VF610_REG_ADC_R0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x19]
	and	w9, w0, #0xfff
	and	w10, w0, #0x3ff
	and	w11, w0, #0xff
	cmp	w8, #8
	csel	w11, w0, w11, ne
	cmp	w8, #10
	csel	w10, w10, w11, eq
	cmp	w8, #12
	csel	w0, w9, w10, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VF610_REG_ADC_R0,8,3           ; @VF610_REG_ADC_R0
	.no_dead_strip	_vf610_adc_read_data
.subsections_via_symbols
