	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rescale_read_raw
_rescale_read_raw:                      ## @rescale_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_iio_priv
	movq	%rax, %r12
	cmpq	$131, %rbx
	je	LBB0_3
## %bb.1:
	cmpq	$132, %rbx
	jne	LBB0_11
## %bb.2:
	movl	8(%r12), %edi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_read_channel_raw           ## TAILCALL
LBB0_3:
	movl	8(%r12), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_iio_read_channel_scale
	cmpl	$128, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.6:
	movl	(%r15), %eax
	imull	(%r12), %eax
	movl	%eax, (%r15)
	movl	(%r14), %eax
	imull	4(%r12), %eax
	movl	%eax, (%r14)
	movl	$130, %eax
	jmp	LBB0_13
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movslq	(%r15), %rax
	imulq	$1000000000, %rax, %r14         ## imm = 0x3B9ACA00
	movslq	4(%r12), %rsi
	movq	%r14, %rdi
	callq	_do_div
	movslq	(%r12), %rbx
	imulq	%r14, %rbx
	movl	$1000000000, %esi               ## imm = 0x3B9ACA00
	movq	%rbx, %rdi
	callq	_do_div
	movl	%ebx, (%r15)
	movl	$129, %eax
	jmp	LBB0_13
LBB0_7:
	movl	(%r15), %eax
	imull	(%r12), %eax
	movl	%eax, (%r15)
	movl	4(%r12), %ecx
	movl	$128, %eax
	cmpl	$1, %ecx
	je	LBB0_13
## %bb.8:
	movl	%ecx, (%r14)
	movl	$130, %eax
	jmp	LBB0_13
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rescale_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rescale_read_raw
_rescale_read_raw:                      ; @rescale_read_raw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	bl	_iio_priv
	mov	x20, x0
	cmp	x22, #131
	b.eq	LBB0_3
; %bb.1:
	cmp	x22, #132
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [x20, #8]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iio_read_channel_raw
LBB0_3:
	ldr	w0, [x20, #8]
	mov	x1, x19
	mov	x2, x21
	bl	_iio_read_channel_scale
	cmp	w0, #128
	b.eq	LBB0_11
; %bb.4:
	cmp	w0, #129
	b.eq	LBB0_10
; %bb.5:
	cmp	w0, #130
	b.ne	LBB0_13
; %bb.6:
	ldr	w8, [x20]
	ldr	w9, [x19]
	mul	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x20, #4]
	ldr	w9, [x21]
	mul	w8, w9, w8
	str	w8, [x21]
	b	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldrsw	x8, [x19]
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	mul	x21, x8, x9
	ldrsw	x1, [x20, #4]
	mov	x0, x21
	bl	_do_div
	ldrsw	x8, [x20]
	mul	x20, x21, x8
	mov	x0, x20
	mov	w1, #51712
	movk	w1, #15258, lsl #16
	bl	_do_div
	str	w20, [x19]
	mov	w0, #129
	b	LBB0_9
LBB0_11:
	ldr	w8, [x20]
	ldr	w9, [x19]
	mul	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.12:
	mov	w0, #128
	b	LBB0_9
LBB0_13:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_8
LBB0_14:
	str	w8, [x21]
	mov	w0, #130
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rescale_read_raw
.subsections_via_symbols
