	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2772_read_raw
_tsl2772_read_raw:                      ## @tsl2772_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, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_iio_priv
	addq	$-131, %r14
	cmpq	$4, %r14
	ja	LBB0_9
## %bb.1:
	movq	%rax, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_14
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	callq	_tsl2772_get_lux
	xorl	%eax, %eax
	cmpl	$0, 4(%r12)
	setne	%al
	movl	44(%r15,%rax,4), %eax
	jmp	LBB0_15
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$256, %eax                      ## imm = 0x100
	subl	36(%r15), %eax
	movq	_tsl2772_int_time_avail@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	imull	12(%rcx), %eax
	movl	%eax, (%r13)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_6:
	movl	32(%r15), %eax
	jmp	LBB0_15
LBB0_7:
	cmpl	$129, (%r12)
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_tsl2772_get_lux
	movl	40(%r15), %eax
	jmp	LBB0_15
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_10:
	xorl	%eax, %eax
	cmpl	$129, (%r12)
	setne	%al
	jne	LBB0_12
## %bb.11:
	movq	_tsl2772_als_gain@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_12:
	movq	_tsl2772_prox_gain@GOTPCREL(%rip), %rcx
LBB0_13:
	movq	(%rcx), %rcx
	movq	16(%r15,%rax,8), %rax
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_15
LBB0_14:
	movq	%rbx, %rdi
	callq	_tsl2772_get_prox
	movl	(%r15), %eax
LBB0_15:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
LBB0_17:
	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_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tsl2772_als_gain,8,3           ## @tsl2772_als_gain
	.comm	_tsl2772_prox_gain,8,3          ## @tsl2772_prox_gain
	.comm	_tsl2772_int_time_avail,8,3     ## @tsl2772_int_time_avail
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_tsl2772_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2772_read_raw
_tsl2772_read_raw:                      ; @tsl2772_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	x24, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_iio_priv
	sub	x8, x24, #131
	cmp	x8, #4
	b.hi	LBB0_9
; %bb.1:
	mov	x20, 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_11
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x21
	bl	_tsl2772_get_lux
	ldr	w8, [x22, #4]
	cmp	w8, #0
	mov	w8, #48
	mov	w9, #44
	csel	x8, x9, x8, eq
	ldr	w8, [x20, x8]
	b	LBB0_12
LBB0_5:
	str	wzr, [x19]
	ldr	w8, [x20, #36]
	mov	w9, #256
	sub	w8, w9, w8
Lloh2:
	adrp	x9, _tsl2772_int_time_avail@GOTPAGE
Lloh3:
	ldr	x9, [x9, _tsl2772_int_time_avail@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x10, [x20, #8]
	ldr	x9, [x9, x10, lsl #3]
	ldr	w9, [x9, #12]
	mul	w8, w9, w8
	str	w8, [x23]
Lloh5:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	ldr	w8, [x20, #32]
	b	LBB0_12
LBB0_7:
	ldr	w8, [x22]
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_tsl2772_get_lux
	ldr	w8, [x20, #40]
	b	LBB0_12
LBB0_9:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_10:
	ldr	w8, [x22]
Lloh10:
	adrp	x9, _tsl2772_prox_gain@GOTPAGE
Lloh11:
	ldr	x9, [x9, _tsl2772_prox_gain@GOTPAGEOFF]
Lloh12:
	adrp	x10, _tsl2772_als_gain@GOTPAGE
Lloh13:
	ldr	x10, [x10, _tsl2772_als_gain@GOTPAGEOFF]
	cmp	w8, #129
	mov	w8, #24
	mov	w11, #16
	csel	x8, x11, x8, eq
	csel	x9, x10, x9, eq
	ldr	x9, [x9]
	ldr	x8, [x20, x8]
	ldr	w8, [x9, x8, lsl #2]
	b	LBB0_12
LBB0_11:
	mov	x0, x21
	bl	_tsl2772_get_prox
	ldr	w8, [x20]
LBB0_12:
	str	w8, [x19]
Lloh14:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tsl2772_als_gain,8,3           ; @tsl2772_als_gain
	.comm	_tsl2772_prox_gain,8,3          ; @tsl2772_prox_gain
	.comm	_tsl2772_int_time_avail,8,3     ; @tsl2772_int_time_avail
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_tsl2772_read_raw
.subsections_via_symbols
