	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf610_read_raw
_vf610_read_raw:                        ## @vf610_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, %r14
	movq	%rcx, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_iio_priv
	movq	%rax, %r15
	leaq	-132(%r14), %rax
	cmpq	$2, %rax
	jb	LBB0_5
## %bb.1:
	cmpq	$130, %r14
	je	LBB0_16
## %bb.2:
	cmpq	$131, %r14
	jne	LBB0_18
## %bb.3:
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$0, (%rbx)
LBB0_4:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_5:
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_iio_buffer_enabled
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movslq	4(%r15), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	16(%r15), %eax
	movl	%eax, (%rbx)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_7:
	movq	%r15, %rbx
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_reinit_completion
	movl	4(%r12), %edi
	callq	_VF610_ADC_ADCHC
	movq	_VF610_ADC_AIEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VF610_REG_ADC_HC0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	40(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_VF610_ADC_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wait_for_completion_interruptible_timeout
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	js	LBB0_10
## %bb.11:
	movl	(%r12), %eax
	cmpl	$129, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.13:
	movl	(%r15), %ecx
	jmp	LBB0_15
LBB0_8:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_10:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_mutex_unlock
	jmp	LBB0_20
LBB0_14:
	movl	(%r15), %eax
	movq	_VF610_VTEMP25_3V3@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	movq	_VF610_TEMP_SLOPE_COEFF@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	$25000, %ecx                    ## imm = 0x61A8
	subl	%eax, %ecx
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	%r13, %rdi
	callq	_mutex_unlock
	jmp	LBB0_4
LBB0_17:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_19:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_VF610_ADC_AIEN,4,2             ## @VF610_ADC_AIEN
	.comm	_VF610_REG_ADC_HC0,8,3          ## @VF610_REG_ADC_HC0
	.comm	_VF610_ADC_TIMEOUT,4,2          ## @VF610_ADC_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_VF610_VTEMP25_3V3,4,2          ## @VF610_VTEMP25_3V3
	.comm	_VF610_TEMP_SLOPE_COEFF,4,2     ## @VF610_TEMP_SLOPE_COEFF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.no_dead_strip	_vf610_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vf610_read_raw
_vf610_read_raw:                        ; @vf610_read_raw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x24, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	sub	x8, x24, #132
	cmp	x8, #2
	b.lo	LBB0_5
; %bb.1:
	cmp	x24, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	x24, #131
	b.ne	LBB0_18
; %bb.3:
	ldr	x8, [x21, #8]
	ldr	x9, [x21, #24]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19]
	str	wzr, [x23]
LBB0_4:
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	b	LBB0_20
LBB0_5:
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	bl	_iio_buffer_enabled
	cbz	w0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_19
LBB0_7:
	ldrsw	x8, [x21, #4]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x19]
	ldr	w8, [x21, #16]
	str	w8, [x23]
Lloh5:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	b	LBB0_20
LBB0_8:
	add	x23, x21, #32
	mov	x0, x23
	bl	_reinit_completion
	ldr	w0, [x22, #4]
	bl	_VF610_ADC_ADCHC
Lloh8:
	adrp	x8, _VF610_ADC_AIEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VF610_ADC_AIEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x21, #40]
Lloh11:
	adrp	x9, _VF610_REG_ADC_HC0@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VF610_REG_ADC_HC0@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh14:
	adrp	x8, _VF610_ADC_TIMEOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VF610_ADC_TIMEOUT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_wait_for_completion_interruptible_timeout
	cbz	x0, LBB0_13
; %bb.9:
	mov	x23, x0
	tbnz	x0, #63, LBB0_14
; %bb.10:
	ldr	w8, [x22]
	cmp	w8, #129
	b.eq	LBB0_15
; %bb.11:
	cmp	w8, #128
	b.ne	LBB0_17
; %bb.12:
	ldr	w8, [x21]
	b	LBB0_16
LBB0_13:
	mov	x0, x20
	bl	_mutex_unlock
Lloh17:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_19
LBB0_14:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_20
LBB0_15:
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _VF610_VTEMP25_3V3@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VF610_VTEMP25_3V3@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	sub	w8, w8, w9
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w8, w8, w9
Lloh22:
	adrp	x9, _VF610_TEMP_SLOPE_COEFF@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VF610_TEMP_SLOPE_COEFF@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	mov	w9, #25000
	sub	w8, w9, w8
LBB0_16:
	str	w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_4
LBB0_17:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_18:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_VF610_ADC_AIEN,4,2             ; @VF610_ADC_AIEN
	.comm	_VF610_REG_ADC_HC0,8,3          ; @VF610_REG_ADC_HC0
	.comm	_VF610_ADC_TIMEOUT,4,2          ; @VF610_ADC_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_VF610_VTEMP25_3V3,4,2          ; @VF610_VTEMP25_3V3
	.comm	_VF610_TEMP_SLOPE_COEFF,4,2     ; @VF610_TEMP_SLOPE_COEFF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.no_dead_strip	_vf610_read_raw
.subsections_via_symbols
