	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2563_read_raw
_tsl2563_read_raw:                      ## @tsl2563_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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_iio_priv
	movq	%rax, %r12
	movq	%rax, %r13
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	-130(%r14), %rax
	cmpq	$2, %rax
	jae	LBB0_1
## %bb.3:
	movl	4(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	callq	_tsl2563_get_adc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movl	(%r13), %edi
	movl	20(%r13), %esi
	callq	_tsl2563_calib_adc
	movl	%eax, %ebx
	imull	4(%r13), %ebx
	movl	8(%r13), %edi
	movl	16(%r13), %esi
	callq	_tsl2563_calib_adc
	imull	4(%r13), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_tsl2563_adc_to_lux
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpq	$132, %r14
	jne	LBB0_11
## %bb.2:
	movl	(%r15), %eax
	movq	_IIO_MOD_LIGHT_BOTH@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	movl	16(%r13,%rdx,4), %edi
	callq	_tsl2563_calib_to_sysfs
	jmp	LBB0_10
LBB0_11:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_8:
	movq	%r13, %rdi
	callq	_tsl2563_get_adc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	(%r15), %eax
	movq	_IIO_MOD_LIGHT_BOTH@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	setne	%dl
	movl	(%r13,%rdx,8), %eax
LBB0_10:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	negl	%ebx
LBB0_12:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_MOD_LIGHT_BOTH,4,2         ## @IIO_MOD_LIGHT_BOTH
	.no_dead_strip	_tsl2563_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2563_read_raw
_tsl2563_read_raw:                      ; @tsl2563_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	x23, x4
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x25, _EINVAL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EINVAL@GOTPAGEOFF]
	ldr	w24, [x25]
	bl	_iio_priv
	mov	x21, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_mutex_lock
	sub	x8, x23, #130
	cmp	x8, #2
	b.hs	LBB0_5
; %bb.1:
	ldr	w8, [x22, #4]
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.3:
	mov	x0, x21
	bl	_tsl2563_get_adc
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.4:
	ldr	w0, [x21]
	ldr	w1, [x21, #20]
	bl	_tsl2563_calib_adc
	ldp	w9, w8, [x21, #4]
	mul	w22, w9, w0
	ldr	w1, [x21, #16]
	mov	x0, x8
	bl	_tsl2563_calib_adc
	ldr	w8, [x21, #4]
	mul	w1, w8, w0
	mov	x0, x22
	bl	_tsl2563_adc_to_lux
	str	w0, [x20]
	b	LBB0_10
LBB0_5:
	cmp	x23, #132
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _IIO_MOD_LIGHT_BOTH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IIO_MOD_LIGHT_BOTH@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #16
	mov	w9, #20
	csel	x8, x9, x8, eq
	ldr	w0, [x21, x8]
	bl	_tsl2563_calib_to_sysfs
	str	w0, [x20]
	b	LBB0_10
LBB0_7:
	ldr	w8, [x25]
	neg	w23, w8
	b	LBB0_12
LBB0_8:
	mov	x0, x21
	bl	_tsl2563_get_adc
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _IIO_MOD_LIGHT_BOTH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IIO_MOD_LIGHT_BOTH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w8, ne
	lsl	x8, x8, #3
	ldr	w8, [x21, x8]
	str	w8, [x20]
LBB0_10:
Lloh8:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	b	LBB0_12
LBB0_11:
	neg	w23, w24
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_MOD_LIGHT_BOTH,4,2         ; @IIO_MOD_LIGHT_BOTH
	.no_dead_strip	_tsl2563_read_raw
.subsections_via_symbols
