	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc5_read_raw
_adc5_read_raw:                         ## @adc5_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
	subq	$24, %rsp
	.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, %r13
	callq	_iio_priv
	cmpq	$128, %rbx
	jne	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rbx
	movq	(%r13), %r14
	shlq	$4, %r14
	leaq	(%rbx,%r14), %r12
	leaq	-44(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_adc5_do_conversion
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	8(%rbx,%r14), %edi
	movq	_adc5_prescale_ratios@GOTPCREL(%rip), %rax
	movq	(%r12), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movl	(%r15), %edx
	movl	-44(%rbp), %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_qcom_adc5_hw_scale
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adc5_prescale_ratios,8,3       ## @adc5_prescale_ratios
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_adc5_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc5_read_raw
_adc5_read_raw:                         ; @adc5_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
	cmp	x22, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	x24, [x21]
	add	x22, x23, x24, lsl #4
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x1, x22
	mov	x2, x21
	bl	_adc5_do_conversion
	cbnz	w0, LBB0_4
; %bb.2:
	add	x8, x23, x24, lsl #4
Lloh0:
	adrp	x9, _adc5_prescale_ratios@GOTPAGE
Lloh1:
	ldr	x9, [x9, _adc5_prescale_ratios@GOTPAGEOFF]
	ldr	w0, [x8, #8]
Lloh2:
	ldr	x8, [x9]
	ldr	x9, [x22]
	add	x1, x8, x9, lsl #2
	ldr	w2, [x20]
	ldr	w3, [sp, #12]
	mov	x4, x19
	bl	_qcom_adc5_hw_scale
Lloh3:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_adc5_prescale_ratios,8,3       ; @adc5_prescale_ratios
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_adc5_read_raw
.subsections_via_symbols
