	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_sar_adc_iio_info_read_raw
_meson_sar_adc_iio_info_read_raw:       ## @meson_sar_adc_iio_info_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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_iio_priv
	addq	$-128, %r14
	cmpq	$5, %r14
	ja	LBB0_15
## %bb.1:
	movq	%rax, %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movl	(%r13), %eax
	movq	_IIO_VOLTAGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.6:
	movl	24(%r12), %edi
	callq	_regulator_get_voltage
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	%r13d, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	movl	%eax, (%r15)
	movq	16(%r12), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_16
LBB0_2:
	movq	_NO_AVERAGING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ONE_SAMPLE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_14:
	movq	_MESON_SAR_ADC_TEMP_OFFSET@GOTPCREL(%rip), %rax
	movq	16(%r12), %rcx
	movl	4(%rcx), %esi
	movl	8(%rcx), %edi
	imull	(%rax), %edi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, (%r15)
	subl	8(%r12), %eax
	jmp	LBB0_12
LBB0_13:
	movl	4(%r12), %eax
	movq	_MILLION@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, (%r15)
	movl	4(%r12), %eax
	cltd
	idivl	(%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_16
LBB0_11:
	movl	(%r12), %eax
LBB0_12:
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_16
LBB0_4:
	movq	_MEAN_AVERAGING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EIGHT_SAMPLES@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_meson_sar_adc_get_sample       ## TAILCALL
LBB0_9:
	movq	_IIO_TEMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.10:
	movq	16(%r12), %rax
	movl	4(%rax), %ecx
	movl	%ecx, (%r15)
	movl	8(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	imull	$1000, (%r15), %eax             ## imm = 0x3E8
	movl	%eax, (%r15)
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_16
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_16:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_NO_AVERAGING,4,2               ## @NO_AVERAGING
	.comm	_ONE_SAMPLE,4,2                 ## @ONE_SAMPLE
	.comm	_MEAN_AVERAGING,4,2             ## @MEAN_AVERAGING
	.comm	_EIGHT_SAMPLES,4,2              ## @EIGHT_SAMPLES
	.comm	_IIO_VOLTAGE,4,2                ## @IIO_VOLTAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get vref voltage: %d\n"

	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_IIO_TEMP,4,2                   ## @IIO_TEMP
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_MILLION,4,2                    ## @MILLION
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_MESON_SAR_ADC_TEMP_OFFSET,4,2  ## @MESON_SAR_ADC_TEMP_OFFSET
	.no_dead_strip	_meson_sar_adc_iio_info_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_sar_adc_iio_info_read_raw
_meson_sar_adc_iio_info_read_raw:       ; @meson_sar_adc_iio_info_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	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	bl	_iio_priv
	sub	x8, x24, #128
	cmp	x8, #5
	b.hi	LBB0_14
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _IIO_VOLTAGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IIO_VOLTAGE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.3:
	ldr	w0, [x21, #24]
	bl	_regulator_get_voltage
	mov	x22, x0
	tbnz	w0, #31, LBB0_16
; %bb.4:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w22, w8
	lsr	x8, x8, #38
	str	w8, [x19]
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
	str	w8, [x20]
Lloh5:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_5:
Lloh8:
	adrp	x8, _NO_AVERAGING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NO_AVERAGING@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _ONE_SAMPLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ONE_SAMPLE@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh13:
	adrp	x8, _MESON_SAR_ADC_TEMP_OFFSET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MESON_SAR_ADC_TEMP_OFFSET@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x21, #16]
	ldp	w1, w10, [x9, #4]
	mul	w0, w10, w8
	bl	_DIV_ROUND_CLOSEST
	str	w0, [x19]
	ldr	w8, [x21, #8]
	sub	w8, w0, w8
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x8, _MILLION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MILLION@GOTPAGEOFF]
	ldr	w9, [x21, #4]
	ldr	w10, [x8]
	sdiv	w9, w9, w10
	str	w9, [x19]
	ldr	w9, [x21, #4]
	ldr	w8, [x8]
	sdiv	w10, w9, w8
	msub	w8, w10, w8, w9
	str	w8, [x20]
Lloh18:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_8:
	ldr	w8, [x21]
LBB0_9:
	str	w8, [x19]
Lloh21:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_10:
Lloh24:
	adrp	x8, _MEAN_AVERAGING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MEAN_AVERAGING@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x8, _EIGHT_SAMPLES@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EIGHT_SAMPLES@GOTPAGEOFF]
LBB0_11:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x22
	mov	x4, x19
	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
	b	_meson_sar_adc_get_sample
LBB0_12:
Lloh29:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
	ldr	x8, [x21, #16]
	ldr	w9, [x8, #4]
	str	w9, [x19]
	ldr	w8, [x8, #8]
	str	w8, [x20]
	ldr	w8, [x19]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x19]
Lloh32:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh34:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_14:
Lloh35:
	adrp	x8, _EINVAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x22
	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
LBB0_16:
	ldr	w0, [x23]
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_NO_AVERAGING,4,2               ; @NO_AVERAGING
	.comm	_ONE_SAMPLE,4,2                 ; @ONE_SAMPLE
	.comm	_MEAN_AVERAGING,4,2             ; @MEAN_AVERAGING
	.comm	_EIGHT_SAMPLES,4,2              ; @EIGHT_SAMPLES
	.comm	_IIO_VOLTAGE,4,2                ; @IIO_VOLTAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get vref voltage: %d\n"

	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_IIO_TEMP,4,2                   ; @IIO_TEMP
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_MILLION,4,2                    ; @MILLION
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_MESON_SAR_ADC_TEMP_OFFSET,4,2  ; @MESON_SAR_ADC_TEMP_OFFSET
	.no_dead_strip	_meson_sar_adc_iio_info_read_raw
.subsections_via_symbols
