	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zopt2201_read_raw
_zopt2201_read_raw:                     ## @zopt2201_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, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_iio_priv
	addq	$-130, %rbx
	cmpq	$3, %rbx
	ja	LBB0_5
## %bb.1:
	movq	%rax, %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.4:
	movq	_zopt2201_gain_als@GOTPCREL(%rip), %rcx
	movq	8(%r12), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	jmp	LBB0_13
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_6:
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_zopt2201_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_16
## %bb.7:
	addl	%eax, %eax
	leal	(%rax,%rax,8), %eax
	movq	_zopt2201_resolution@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%r12), %rsi
	movq	8(%r12), %rdi
	movb	$20, %cl
	subb	4(%rdx,%rsi,8), %cl
	shll	%cl, %eax
	movq	_zopt2201_gain_uvb@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltd
	idivl	(%rcx,%rdi,8)
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_8:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_zopt2201_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_16
## %bb.9:
	movl	%eax, (%r14)
LBB0_10:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movl	$0, (%r14)
	movq	_zopt2201_resolution@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,8), %eax
	movl	%eax, (%r15)
	jmp	LBB0_14
LBB0_12:
	movq	_zopt2201_gain_uvb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	leaq	(%rax,%rcx,8), %rax
	addq	$4, %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$1000000, (%r15)                ## imm = 0xF4240
	movq	_zopt2201_resolution@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movb	4(%rax,%rcx,8), %cl
	addb	$-13, %cl
	movl	$1000000, %esi                  ## imm = 0xF4240
	shll	%cl, %esi
	movl	%esi, (%r15)
	imull	$1000000, (%r14), %edi          ## imm = 0xF4240
	callq	_div_s64
	movl	%eax, %edi
	movl	$1000000, %esi                  ## imm = 0xF4240
	movq	%r15, %rdx
	callq	_div_s64_rem
	movl	%eax, (%r14)
LBB0_14:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %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_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_zopt2201_resolution,8,3        ## @zopt2201_resolution
	.comm	_zopt2201_gain_uvb,8,3          ## @zopt2201_gain_uvb
	.comm	_zopt2201_gain_als,8,3          ## @zopt2201_gain_als
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_zopt2201_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zopt2201_read_raw
_zopt2201_read_raw:                     ; @zopt2201_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	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	bl	_iio_priv
	sub	x8, x23, #130
	cmp	x8, #3
	b.hi	LBB0_5
; %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]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _zopt2201_gain_als@GOTPAGE
Lloh3:
	ldr	x8, [x8, _zopt2201_gain_als@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	add	x8, x8, x9, lsl #2
	b	LBB0_13
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_6:
	mov	x0, x21
	mov	w1, #128
	bl	_zopt2201_read
	tbnz	w0, #31, LBB0_16
; %bb.7:
	add	w8, w0, w0, lsl #3
	lsl	w8, w8, #1
Lloh8:
	adrp	x9, _zopt2201_resolution@GOTPAGE
Lloh9:
	ldr	x9, [x9, _zopt2201_resolution@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldp	x10, x11, [x21]
	add	x9, x9, x10, lsl #3
	ldr	w9, [x9, #4]
	mov	w10, #20
	sub	w9, w10, w9
Lloh11:
	adrp	x10, _zopt2201_gain_uvb@GOTPAGE
Lloh12:
	ldr	x10, [x10, _zopt2201_gain_uvb@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	lsl	x11, x11, #3
	ldr	w10, [x10, x11]
	lsl	w8, w8, w9
	sdiv	w8, w8, w10
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_zopt2201_read
	tbnz	w0, #31, LBB0_16
; %bb.9:
	str	w0, [x19]
LBB0_10:
Lloh14:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	str	wzr, [x19]
Lloh16:
	adrp	x8, _zopt2201_resolution@GOTPAGE
Lloh17:
	ldr	x8, [x8, _zopt2201_resolution@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x21]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	str	w8, [x20]
	b	LBB0_14
LBB0_12:
Lloh19:
	adrp	x8, _zopt2201_gain_uvb@GOTPAGE
Lloh20:
	ldr	x8, [x8, _zopt2201_gain_uvb@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	add	x8, x8, x9, lsl #3
	add	x8, x8, #4
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w8, #16960
	movk	w8, #15, lsl #16
	str	w8, [x20]
Lloh22:
	adrp	x9, _zopt2201_resolution@GOTPAGE
Lloh23:
	ldr	x9, [x9, _zopt2201_resolution@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	x10, [x21]
	add	x9, x9, x10, lsl #3
	ldr	w9, [x9, #4]
	sub	w9, w9, #13
	lsl	w1, w8, w9
	str	w1, [x20]
	ldr	w9, [x19]
	mul	w0, w9, w8
	bl	_div_s64
	mov	w1, #16960
	movk	w1, #15, lsl #16
	mov	x2, x20
	bl	_div_s64_rem
	str	w0, [x19]
LBB0_14:
Lloh25:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_zopt2201_resolution,8,3        ; @zopt2201_resolution
	.comm	_zopt2201_gain_uvb,8,3          ; @zopt2201_gain_uvb
	.comm	_zopt2201_gain_als,8,3          ; @zopt2201_gain_als
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_zopt2201_read_raw
.subsections_via_symbols
