	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltr501_read_raw
_ltr501_read_raw:                       ## @ltr501_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
	subq	$24, %rsp
	.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, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_iio_priv
	addq	$-131, %r14
	cmpq	$4, %r14
	ja	LBB0_30
## %bb.1:
	movq	%rax, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_16:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_20
## %bb.17:
	cmpl	$130, %eax
	jne	LBB0_30
## %bb.18:
	movq	8(%r15), %rax
	movl	(%rax), %edx
	andl	(%r15), %edx
	movb	4(%rax), %cl
	sarl	%cl, %edx
	movq	16(%rax), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,8), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%edx, (%rsi)
	movl	4(%rax,%rcx,8), %eax
	jmp	LBB0_19
LBB0_24:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_28
## %bb.25:
	cmpl	$130, %eax
	jne	LBB0_30
## %bb.26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.27:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ltr501_als_read_samp_freq      ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.7:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$130, %eax
	jne	LBB0_14
## %bb.9:
	movq	%r15, %r14
	addq	$20, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	-56(%rbp), %rax
	movq	%r15, %rdi
	movq	%rax, %r15
	movq	%rax, %rsi
	callq	_ltr501_read_als
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_15
## %bb.10:
	movl	4(%r13), %eax
	movq	_LTR501_ALS_DATA1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	-52(%rbp), %rax
	cmoveq	%r15, %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	jmp	LBB0_13
LBB0_2:
	cmpl	$129, (%r13)
	jne	LBB0_30
## %bb.3:
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.4:
	movq	%r15, %r14
	addq	$20, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ltr501_read_als
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
	testl	%ebx, %ebx
	js	LBB0_31
## %bb.5:
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movl	-56(%rbp), %edi
	callq	_le16_to_cpu
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ltr501_calculate_lux
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_21:
	cmpl	$130, (%r13)
	jne	LBB0_30
## %bb.22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.23:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ltr501_read_it_time            ## TAILCALL
LBB0_30:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.32:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_LTR501_CONTR_PS_GAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r15), %eax
	movq	_LTR501_CONTR_PS_GAIN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	8(%r15), %rcx
	movq	8(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,8), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%edx, (%rsi)
	movl	4(%rcx,%rax,8), %eax
LBB0_19:
	movl	%eax, (%rbx)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.29:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ltr501_ps_read_samp_freq       ## TAILCALL
LBB0_11:
	movq	%r15, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_ltr501_read_ps
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_15
## %bb.12:
	movq	_LTR501_PS_DATA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
LBB0_13:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
	jmp	LBB0_31
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_24
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LTR501_ALS_DATA1,4,2           ## @LTR501_ALS_DATA1
	.comm	_LTR501_PS_DATA_MASK,4,2        ## @LTR501_PS_DATA_MASK
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_LTR501_CONTR_PS_GAIN_MASK,4,2  ## @LTR501_CONTR_PS_GAIN_MASK
	.comm	_LTR501_CONTR_PS_GAIN_SHIFT,4,2 ## @LTR501_CONTR_PS_GAIN_SHIFT
	.no_dead_strip	_ltr501_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltr501_read_raw
_ltr501_read_raw:                       ; @ltr501_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_iio_priv
	sub	x8, x24, #131
	cmp	x8, #4
	b.hi	LBB0_21
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	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, [x23]
	cmp	w8, #128
	b.eq	LBB0_24
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_21
; %bb.4:
	ldr	w8, [x21]
	ldr	x9, [x21, #8]
	ldp	w10, w11, [x9]
	and	w8, w10, w8
	asr	w8, w8, w11
	ldr	x9, [x9, #16]
	b	LBB0_25
LBB0_5:
	ldr	w8, [x23]
	cmp	w8, #128
	b.eq	LBB0_26
; %bb.6:
	cmp	w8, #130
	b.ne	LBB0_21
; %bb.7:
	ldr	x8, [sp, #8]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ltr501_als_read_samp_freq
LBB0_9:
	mov	x0, x20
	bl	_iio_device_claim_direct_mode
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.10:
	ldr	w8, [x23]
	cmp	w8, #128
	b.eq	LBB0_28
; %bb.11:
	cmp	w8, #130
	b.ne	LBB0_31
; %bb.12:
	add	x24, x21, #20
	mov	x0, x24
	bl	_mutex_lock
	mov	x25, sp
	mov	x1, sp
	mov	x0, x21
	bl	_ltr501_read_als
	mov	x22, x0
	mov	x0, x24
	bl	_mutex_unlock
	tbnz	w22, #31, LBB0_32
; %bb.13:
Lloh8:
	adrp	x8, _LTR501_ALS_DATA1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LTR501_ALS_DATA1@GOTPAGEOFF]
	ldr	w9, [x23, #4]
Lloh10:
	ldr	w8, [x8]
	add	x10, x25, #4
	cmp	w9, w8
	csel	x8, x25, x10, eq
	ldr	w0, [x8]
	bl	_le16_to_cpu
	str	w0, [x19]
	b	LBB0_30
LBB0_14:
	ldr	w8, [x23]
	cmp	w8, #129
	b.ne	LBB0_21
; %bb.15:
	mov	x0, x20
	bl	_iio_device_claim_direct_mode
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.16:
	add	x23, x21, #20
	mov	x0, x23
	bl	_mutex_lock
	mov	x1, sp
	mov	x0, x21
	bl	_ltr501_read_als
	mov	x22, x0
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x20
	bl	_iio_device_release_direct_mode
	tbnz	w22, #31, LBB0_22
; %bb.17:
	ldr	w0, [sp, #4]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	w0, [sp]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_ltr501_calculate_lux
	str	w0, [x19]
Lloh11:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_22
LBB0_18:
	ldr	w8, [x23]
	cmp	w8, #130
	b.ne	LBB0_21
; %bb.19:
	ldr	x8, [sp, #8]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.20:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ltr501_read_it_time
LBB0_21:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_22:
	ldr	x8, [sp, #8]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.23:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_24:
	ldr	w8, [x21, #4]
Lloh23:
	adrp	x9, _LTR501_CONTR_PS_GAIN_MASK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _LTR501_CONTR_PS_GAIN_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh26:
	adrp	x9, _LTR501_CONTR_PS_GAIN_SHIFT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LTR501_CONTR_PS_GAIN_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	asr	w8, w8, w9
	ldr	x9, [x21, #8]
	ldr	x9, [x9, #8]
LBB0_25:
	add	x8, x9, w8, sxtw #3
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w8, [x8, #4]
	str	w8, [x22]
Lloh29:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh31:
	ldr	w22, [x8]
	b	LBB0_22
LBB0_26:
	ldr	x8, [sp, #8]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.27:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ltr501_ps_read_samp_freq
LBB0_28:
	add	x23, x21, #16
	mov	x0, x23
	bl	_mutex_lock
	mov	x0, x21
	bl	_ltr501_read_ps
	mov	x22, x0
	mov	x0, x23
	bl	_mutex_unlock
	tbnz	w22, #31, LBB0_32
; %bb.29:
Lloh35:
	adrp	x8, _LTR501_PS_DATA_MASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LTR501_PS_DATA_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	and	w8, w8, w22
	str	w8, [x19]
LBB0_30:
Lloh38:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh40:
	ldr	w22, [x8]
	b	LBB0_32
LBB0_31:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_32:
	mov	x0, x20
	bl	_iio_device_release_direct_mode
	b	LBB0_22
LBB0_33:
	bl	___stack_chk_fail
	.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	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LTR501_ALS_DATA1,4,2           ; @LTR501_ALS_DATA1
	.comm	_LTR501_PS_DATA_MASK,4,2        ; @LTR501_PS_DATA_MASK
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_LTR501_CONTR_PS_GAIN_MASK,4,2  ; @LTR501_CONTR_PS_GAIN_MASK
	.comm	_LTR501_CONTR_PS_GAIN_SHIFT,4,2 ; @LTR501_CONTR_PS_GAIN_SHIFT
	.no_dead_strip	_ltr501_read_raw
.subsections_via_symbols
