	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vadc_read_raw
_vadc_read_raw:                         ## @vadc_read_raw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_iio_priv
	movq	%rax, %r15
	cmpq	$128, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_7
## %bb.2:
	movq	(%r15), %r13
	movq	(%r12), %rax
	leaq	(%rax,%rax,2), %rbx
	leaq	(,%rbx,8), %r12
	addq	%r13, %r12
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_vadc_do_conversion
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	(%r12), %rax
	leaq	(,%rax,4), %rsi
	addq	8(%r15), %rsi
	movl	16(%r13,%rbx,8), %edi
	movq	_vadc_prescale_ratios@GOTPCREL(%rip), %rcx
	movq	8(%r13,%rbx,8), %rdx
	shlq	$2, %rdx
	addq	(%rcx), %rdx
	movq	_VADC_CALIB_ABSOLUTE@GOTPCREL(%rip), %rbx
	xorl	%ecx, %ecx
	cmpq	(%rbx), %rax
	sete	%cl
	movq	-48(%rbp), %r8
	movq	%r14, %r9
	callq	_qcom_vadc_scale
	testl	%eax, %eax
	je	LBB0_4
	jmp	LBB0_8
LBB0_5:
	movq	(%r12), %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$3, %rsi
	addq	(%r15), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_vadc_do_conversion
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	-48(%rbp), %eax
	movl	%eax, (%r14)
LBB0_4:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vadc_prescale_ratios,8,3       ## @vadc_prescale_ratios
	.comm	_VADC_CALIB_ABSOLUTE,8,3        ## @VADC_CALIB_ABSOLUTE
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vadc_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vadc_read_raw
_vadc_read_raw:                         ; @vadc_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x19, x2
	mov	x21, x1
	bl	_iio_priv
	mov	x20, x0
	cmp	x22, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x22, #129
	b.ne	LBB0_6
; %bb.2:
	ldr	x22, [x20]
	ldr	x23, [x21]
	mov	w8, #24
	madd	x21, x23, x8, x22
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_vadc_do_conversion
	cbnz	w0, LBB0_7
; %bb.3:
	mov	w8, #24
	madd	x8, x23, x8, x22
	ldr	w0, [x8, #16]
	ldr	x9, [x20, #8]
	ldr	x10, [x21]
	add	x1, x9, x10, lsl #2
Lloh0:
	adrp	x9, _vadc_prescale_ratios@GOTPAGE
Lloh1:
	ldr	x9, [x9, _vadc_prescale_ratios@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, #8]
	add	x2, x9, x8, lsl #2
Lloh3:
	adrp	x8, _VADC_CALIB_ABSOLUTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VADC_CALIB_ABSOLUTE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x10, x8
	cset	w3, eq
	ldr	x4, [sp, #8]
	mov	x5, x19
	bl	_qcom_vadc_scale
Lloh6:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
	b	LBB0_7
LBB0_4:
	ldr	x8, [x20]
	ldr	x9, [x21]
	mov	w10, #24
	madd	x1, x9, x10, x8
	add	x2, sp, #8
	mov	x0, x20
	bl	_vadc_do_conversion
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [sp, #8]
	str	w8, [x19]
Lloh9:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_vadc_prescale_ratios,8,3       ; @vadc_prescale_ratios
	.comm	_VADC_CALIB_ABSOLUTE,8,3        ; @VADC_CALIB_ABSOLUTE
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vadc_read_raw
.subsections_via_symbols
