	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2772_write_raw
_tsl2772_write_raw:                     ## @tsl2772_write_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, %rbx
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %rcx
	cmpq	$128, %rbx
	je	LBB0_20
## %bb.1:
	cmpq	$130, %rbx
	je	LBB0_17
## %bb.2:
	cmpq	$129, %rbx
	jne	LBB0_26
## %bb.3:
	movl	(%r12), %eax
	movq	_IIO_INTENSITY@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_11
## %bb.4:
	cmpl	$15, %r13d
	jg	LBB0_8
## %bb.5:
	cmpl	$1, %r13d
	je	LBB0_24
## %bb.6:
	cmpl	$8, %r13d
	jne	LBB0_26
## %bb.7:
	movl	$1, 8(%rcx)
	jmp	LBB0_25
LBB0_20:
	testl	%r13d, %r13d
	jne	LBB0_26
## %bb.21:
	movq	_tsl2772_int_time_avail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx), %rdx
	movq	(%rax,%rdx,8), %rsi
	cmpl	%r15d, 4(%rsi)
	jg	LBB0_26
## %bb.22:
	cmpl	%r15d, 20(%rsi)
	jl	LBB0_26
## %bb.23:
	movl	%r15d, %eax
	cltd
	idivl	12(%rsi)
	movl	$256, %edx                      ## imm = 0x100
	subl	%eax, %edx
	movl	%edx, 20(%rcx)
	jmp	LBB0_25
LBB0_17:
	movq	_TSL2772_ALS_GAIN_TRIM_MIN@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jg	LBB0_26
## %bb.18:
	movq	_TSL2772_ALS_GAIN_TRIM_MAX@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jl	LBB0_26
## %bb.19:
	movl	%r13d, 16(%rcx)
LBB0_25:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tsl2772_invoke_change          ## TAILCALL
LBB0_11:
	decl	%r13d
	cmpl	$7, %r13d
	ja	LBB0_26
## %bb.12:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rdx
	addq	%rax, %rdx
	jmpq	*%rdx
LBB0_13:
	movl	$0, 12(%rcx)
	jmp	LBB0_25
LBB0_8:
	cmpl	$16, %r13d
	je	LBB0_27
## %bb.9:
	cmpl	$120, %r13d
	jne	LBB0_26
## %bb.10:
	movl	$3, 8(%rcx)
	jmp	LBB0_25
LBB0_26:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	$0, 8(%rcx)
	jmp	LBB0_25
LBB0_14:
	movl	$1, 12(%rcx)
	jmp	LBB0_25
LBB0_15:
	movl	$2, 12(%rcx)
	jmp	LBB0_25
LBB0_16:
	movl	$3, 12(%rcx)
	jmp	LBB0_25
LBB0_27:
	movl	$2, 8(%rcx)
	jmp	LBB0_25
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_26
	.long	L0_0_set_15
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_IIO_INTENSITY,4,2              ## @IIO_INTENSITY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TSL2772_ALS_GAIN_TRIM_MIN,4,2  ## @TSL2772_ALS_GAIN_TRIM_MIN
	.comm	_TSL2772_ALS_GAIN_TRIM_MAX,4,2  ## @TSL2772_ALS_GAIN_TRIM_MAX
	.comm	_tsl2772_int_time_avail,8,3     ## @tsl2772_int_time_avail
	.no_dead_strip	_tsl2772_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2772_write_raw
_tsl2772_write_raw:                     ; @tsl2772_write_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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_iio_priv
	cmp	x23, #128
	b.eq	LBB0_8
; %bb.1:
	cmp	x23, #130
	b.eq	LBB0_12
; %bb.2:
	cmp	x23, #129
	b.ne	LBB0_13
; %bb.3:
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _IIO_INTENSITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_INTENSITY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.4:
	cmp	w20, #15
	b.gt	LBB0_19
; %bb.5:
	cmp	w20, #1
	b.eq	LBB0_22
; %bb.6:
	cmp	w20, #8
	b.ne	LBB0_13
; %bb.7:
	mov	w8, #1
	str	w8, [x0, #8]
	b	LBB0_18
LBB0_8:
	cbnz	w20, LBB0_13
; %bb.9:
Lloh3:
	adrp	x8, _tsl2772_int_time_avail@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tsl2772_int_time_avail@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w9, [x8, #4]
	cmp	w9, w21
	b.gt	LBB0_13
; %bb.10:
	ldr	w9, [x8, #20]
	cmp	w9, w21
	b.lt	LBB0_13
; %bb.11:
	ldr	w8, [x8, #12]
	sdiv	w8, w21, w8
	mov	w9, #256
	sub	w8, w9, w8
	str	w8, [x0, #20]
	b	LBB0_18
LBB0_12:
Lloh6:
	adrp	x8, _TSL2772_ALS_GAIN_TRIM_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TSL2772_ALS_GAIN_TRIM_MIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _TSL2772_ALS_GAIN_TRIM_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TSL2772_ALS_GAIN_TRIM_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #8, le
	b.ge	LBB0_17
LBB0_13:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_14:
	sub	w8, w20, #1
	cmp	w8, #7
	b.hi	LBB0_13
; %bb.15:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_13
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_16:
	str	wzr, [x0, #12]
	b	LBB0_18
LBB0_17:
	str	w20, [x0, #16]
LBB0_18:
	mov	x0, x19
	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
	b	_tsl2772_invoke_change
LBB0_19:
	cmp	w20, #16
	b.eq	LBB0_26
; %bb.20:
	cmp	w20, #120
	b.ne	LBB0_13
; %bb.21:
	mov	w8, #3
	str	w8, [x0, #8]
	b	LBB0_18
LBB0_22:
	str	wzr, [x0, #8]
	b	LBB0_18
LBB0_23:
	mov	w8, #1
	str	w8, [x0, #12]
	b	LBB0_18
LBB0_24:
	mov	w8, #2
	str	w8, [x0, #12]
	b	LBB0_18
LBB0_25:
	mov	w8, #3
	str	w8, [x0, #12]
	b	LBB0_18
LBB0_26:
	mov	w8, #2
	str	w8, [x0, #8]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_24-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_25-LBB0_13)>>2
                                        ; -- End function
	.comm	_IIO_INTENSITY,4,2              ; @IIO_INTENSITY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TSL2772_ALS_GAIN_TRIM_MIN,4,2  ; @TSL2772_ALS_GAIN_TRIM_MIN
	.comm	_TSL2772_ALS_GAIN_TRIM_MAX,4,2  ; @TSL2772_ALS_GAIN_TRIM_MAX
	.comm	_tsl2772_int_time_avail,8,3     ; @tsl2772_int_time_avail
	.no_dead_strip	_tsl2772_write_raw
.subsections_via_symbols
