	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lv0104cs_read_raw
_lv0104cs_read_raw:                     ## @lv0104cs_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, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_iio_priv
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	_IIO_LIGHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	leaq	24(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	addq	$-128, %r14
	cmpq	$3, %r14
	ja	LBB0_10
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	movq	_lv0104cs_scales@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r13), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_lv0104cs_get_lux
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
	jmp	LBB0_11
LBB0_9:
	movq	_lv0104cs_int_times@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r13), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_lv0104cs_calibscales@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
LBB0_7:
	movl	(%rax,%rcx,8), %edx
	movl	%edx, (%r12)
	movl	4(%rax,%rcx,8), %eax
	movl	%eax, (%r15)
LBB0_5:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_12:
	movl	%ebx, %eax
	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_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_IIO_LIGHT,8,3                  ## @IIO_LIGHT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_lv0104cs_calibscales,8,3       ## @lv0104cs_calibscales
	.comm	_lv0104cs_scales,8,3            ## @lv0104cs_scales
	.comm	_lv0104cs_int_times,8,3         ## @lv0104cs_int_times
	.no_dead_strip	_lv0104cs_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lv0104cs_read_raw
_lv0104cs_read_raw:                     ; @lv0104cs_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	x21, x2
	mov	x19, x1
	bl	_iio_priv
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _IIO_LIGHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_LIGHT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x22, x0
	add	x19, x0, #24
	mov	x0, x19
	bl	_mutex_lock
	sub	x8, x23, #128
	cmp	x8, #3
	b.hi	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh5:
	adrp	x8, _lv0104cs_scales@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lv0104cs_scales@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x22, #8]
	b	LBB0_9
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_lv0104cs_get_lux
Lloh14:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w20, w8, w0, eq
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _lv0104cs_int_times@GOTPAGE
Lloh18:
	ldr	x8, [x8, _lv0104cs_int_times@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [x22, #16]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _lv0104cs_calibscales@GOTPAGE
Lloh21:
	ldr	x8, [x8, _lv0104cs_calibscales@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x22]
LBB0_9:
	add	x8, x8, x9, lsl #3
	ldr	w9, [x8]
	str	w9, [x21]
	ldr	w8, [x8, #4]
	str	w8, [x20]
Lloh23:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_IIO_LIGHT,8,3                  ; @IIO_LIGHT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_lv0104cs_calibscales,8,3       ; @lv0104cs_calibscales
	.comm	_lv0104cs_scales,8,3            ; @lv0104cs_scales
	.comm	_lv0104cs_int_times,8,3         ; @lv0104cs_int_times
	.no_dead_strip	_lv0104cs_read_raw
.subsections_via_symbols
