	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iio_convert_raw_to_processed_unlocked
_iio_convert_raw_to_processed_unlocked: ## @iio_convert_raw_to_processed_unlocked
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_IIO_CHAN_INFO_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r13d, %r13d
	leaq	-52(%rbp), %rsi
	xorl	%edx, %edx
	callq	_iio_channel_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	-52(%rbp), %r13d
LBB0_2:
	movq	_IIO_CHAN_INFO_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_iio_channel_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_7
## %bb.4:
	addl	%r12d, %r13d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	imull	%r13d, %ecx
	movl	%ecx, %edx
	negl	%edx
	testl	%eax, %eax
	cmovnsl	%ecx, %edx
	movl	%edx, (%r14)
	imull	%r13d, %r15d
	imull	%eax, %r15d
	movl	%r15d, %edi
	movl	$1000000000, %esi               ## imm = 0x3B9ACA00
	jmp	LBB0_9
LBB0_6:
	movl	%r12d, (%r14)
	jmp	LBB0_14
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_8:
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	imull	%r13d, %ecx
	movl	%ecx, %edx
	negl	%edx
	testl	%eax, %eax
	cmovnsl	%ecx, %edx
	movl	%edx, (%r14)
	imull	%r13d, %r15d
	imull	%eax, %r15d
	movl	%r15d, %edi
	movl	$1000000, %esi                  ## imm = 0xF4240
LBB0_9:
	callq	_div_s64
	addl	%eax, (%r14)
	jmp	LBB0_14
LBB0_10:
	imull	-44(%rbp), %r13d
	jmp	LBB0_12
LBB0_11:
	imull	%r15d, %r13d
	imull	-44(%rbp), %r13d
	movb	-48(%rbp), %cl
	shrl	%cl, %r13d
LBB0_12:
	movl	%r13d, (%r14)
	jmp	LBB0_14
LBB0_13:
	imull	%r15d, %r13d
	imull	-44(%rbp), %r13d
	movl	-48(%rbp), %esi
	movl	%r13d, %edi
	callq	_div_s64
	movl	%eax, (%r14)
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_IIO_CHAN_INFO_OFFSET,4,2       ## @IIO_CHAN_INFO_OFFSET
	.comm	_IIO_CHAN_INFO_SCALE,4,2        ## @IIO_CHAN_INFO_SCALE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_iio_convert_raw_to_processed_unlocked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iio_convert_raw_to_processed_unlocked
_iio_convert_raw_to_processed_unlocked: ; @iio_convert_raw_to_processed_unlocked
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _IIO_CHAN_INFO_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_CHAN_INFO_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x1, sp, #4
	mov	x2, #0
	bl	_iio_channel_read
	ldr	w8, [sp, #4]
	cmp	w0, #0
	csel	w23, wzr, w8, lt
Lloh3:
	adrp	x8, _IIO_CHAN_INFO_SCALE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_CHAN_INFO_SCALE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x22
	bl	_iio_channel_read
	tbnz	w0, #31, LBB0_4
; %bb.1:
	sub	w9, w0, #128
	cmp	w9, #4
	b.hi	LBB0_5
; %bb.2:
	add	w8, w23, w21
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	ldp	w9, w10, [sp, #8]
	mul	w10, w10, w8
	cmp	w9, #0
	cneg	w10, w10, lt
	str	w10, [x19]
	mul	w8, w8, w20
	mul	w0, w8, w9
	mov	w1, #51712
	movk	w1, #15258, lsl #16
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	str	w21, [x19]
	b	LBB0_12
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_6:
	ldp	w9, w10, [sp, #8]
	mul	w10, w10, w8
	cmp	w9, #0
	cneg	w10, w10, lt
	str	w10, [x19]
	mul	w8, w8, w20
	mul	w0, w8, w9
	mov	w1, #16960
	movk	w1, #15, lsl #16
LBB0_7:
	bl	_div_s64
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	add	w8, w9, w8
	b	LBB0_11
LBB0_8:
	mov	w0, #0
	ldr	w9, [sp, #12]
	mul	w8, w9, w8
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	ldr	w9, [sp, #12]
	mul	w8, w8, w20
	mul	w8, w8, w9
	ldr	w9, [sp, #8]
	lsr	w8, w8, w9
	b	LBB0_11
LBB0_10:
	ldp	w1, w9, [sp, #8]
	mul	w8, w8, w20
	mul	w0, w8, w9
	bl	_div_s64
	mov	x8, x0
	mov	w0, #0
LBB0_11:
	str	w8, [x19]
LBB0_12:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.comm	_IIO_CHAN_INFO_OFFSET,4,2       ; @IIO_CHAN_INFO_OFFSET
	.comm	_IIO_CHAN_INFO_SCALE,4,2        ; @IIO_CHAN_INFO_SCALE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_iio_convert_raw_to_processed_unlocked
.subsections_via_symbols
