	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2583_read_raw
_tsl2583_read_raw:                      ## @tsl2583_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, %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_tsl2583_set_pm_runtime_busy
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	addq	$-128, %r15
	cmpq	$4, %r15
	ja	LBB0_19
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	(%r12), %eax
	movq	_IIO_LIGHT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.4:
	movq	%r13, %rdi
	callq	_tsl2583_get_lux
	testl	%eax, %eax
	js	LBB0_22
## %bb.5:
	movl	4(%r12), %eax
	movq	_IIO_MOD_LIGHT_BOTH@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	setne	%dl
	movl	32(%r14,%rdx,4), %eax
	jmp	LBB0_16
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_21
LBB0_7:
	movl	(%r12), %eax
	movq	_IIO_LIGHT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.8:
	movq	%r13, %rdi
	callq	_tsl2583_get_lux
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_23
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	jmp	LBB0_17
LBB0_10:
	movl	(%r12), %eax
	movq	_IIO_LIGHT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	24(%r14), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_12:
	movl	(%r12), %eax
	movq	_IIO_LIGHT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.13:
	movq	_gainadj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r14), %rcx
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_16
LBB0_14:
	movl	(%r12), %eax
	movq	_IIO_LIGHT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.15:
	movl	8(%r14), %eax
LBB0_16:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_17:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %ebx
LBB0_19:
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tsl2583_set_pm_runtime_busy
	testl	%eax, %eax
	cmovsl	%eax, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movl	%eax, %ebx
LBB0_23:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_LIGHT,4,2                  ## @IIO_LIGHT
	.comm	_IIO_MOD_LIGHT_BOTH,4,2         ## @IIO_MOD_LIGHT_BOTH
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_gainadj,8,3                    ## @gainadj
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_tsl2583_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2583_read_raw
_tsl2583_read_raw:                      ; @tsl2583_read_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_iio_priv
	mov	x19, x0
	mov	w1, #1
	bl	_tsl2583_set_pm_runtime_busy
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	sub	x8, x25, #128
	cmp	x8, #4
	b.hi	LBB0_19
; %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:
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _IIO_LIGHT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IIO_LIGHT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.4:
	mov	x0, x23
	bl	_tsl2583_get_lux
	tbnz	w0, #31, LBB0_22
; %bb.5:
Lloh8:
	adrp	x8, _IIO_MOD_LIGHT_BOTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_MOD_LIGHT_BOTH@GOTPAGEOFF]
	ldr	w9, [x22, #4]
Lloh10:
	ldr	w8, [x8]
	cmp	w9, w8
	mov	w8, #36
	mov	w9, #32
	csel	x8, x9, x8, eq
	ldr	w8, [x19, x8]
	b	LBB0_16
LBB0_6:
	mov	x20, x0
	b	LBB0_21
LBB0_7:
	ldr	w8, [x22]
Lloh11:
	adrp	x9, _IIO_LIGHT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IIO_LIGHT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.8:
	mov	x0, x23
	bl	_tsl2583_get_lux
	mov	x20, x0
	tbnz	w0, #31, LBB0_23
; %bb.9:
	str	w20, [x21]
	b	LBB0_17
LBB0_10:
	ldr	w8, [x22]
Lloh14:
	adrp	x9, _IIO_LIGHT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IIO_LIGHT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.11:
	str	wzr, [x21]
	ldr	w8, [x19, #24]
	str	w8, [x24]
Lloh17:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	b	LBB0_18
LBB0_12:
	ldr	w8, [x22]
Lloh19:
	adrp	x9, _IIO_LIGHT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IIO_LIGHT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.13:
Lloh22:
	adrp	x8, _gainadj@GOTPAGE
Lloh23:
	ldr	x8, [x8, _gainadj@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	w8, [x8, x9, lsl #2]
	b	LBB0_16
LBB0_14:
	ldr	w8, [x22]
Lloh25:
	adrp	x9, _IIO_LIGHT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IIO_LIGHT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.15:
	ldr	w8, [x19, #8]
LBB0_16:
	str	w8, [x21]
LBB0_17:
Lloh28:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_18:
	ldr	w20, [x8]
LBB0_19:
	mov	x0, x19
	bl	_mutex_unlock
	tbnz	w20, #31, LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w1, #0
	bl	_tsl2583_set_pm_runtime_busy
	cmp	w0, #0
	csel	w20, w0, w20, lt
LBB0_21:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	x20, x0
LBB0_23:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_21
	.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 AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_LIGHT,4,2                  ; @IIO_LIGHT
	.comm	_IIO_MOD_LIGHT_BOTH,4,2         ; @IIO_MOD_LIGHT_BOTH
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_gainadj,8,3                    ; @gainadj
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_tsl2583_read_raw
.subsections_via_symbols
