	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si1133_init_lux_channels
_si1133_init_lux_channels:              ## @si1133_init_lux_channels
	.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	%rdi, %r14
	movl	$1, %edi
	callq	_SI1133_ADCCONFIG_DECIM_RATE
	movq	_SI1133_PARAM_ADCMUX_LARGE_WHITE@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_si1133_chan_set_adcconfig
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	$1, %edi
	callq	_SI1133_PARAM_REG_ADCPOST
	movl	%eax, %r15d
	movq	_SI1133_ADCPOST_24BIT_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	xorl	%edi, %edi
	callq	_SI1133_ADCPOST_POSTSHIFT_BITQTY
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_si1133_param_set
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	_SI1133_ADCSENS_HSIG_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	$64, %edi
	callq	_SI1133_ADCSENS_NB_MEAS
	orl	%eax, %ebx
	movq	__48_8_us@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_si1133_chan_set_adcsens
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movl	$1, %edi
	callq	_SI1133_ADCCONFIG_DECIM_RATE
	orl	(%r13), %eax
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%eax, %edx
	callq	_si1133_chan_set_adcconfig
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movl	$2, %edi
	callq	_SI1133_PARAM_REG_ADCPOST
	movq	%r15, %r13
	movl	%eax, %r15d
	movl	(%r12), %ebx
	movl	$2, %edi
	callq	_SI1133_ADCPOST_POSTSHIFT_BITQTY
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %r15
	movl	%ebx, %edx
	callq	_si1133_param_set
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	(%r15), %ebx
	movl	$1, %edi
	callq	_SI1133_ADCSENS_NB_MEAS
	orl	%eax, %ebx
	movq	__3_120_0_us@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%ebx, %edx
	callq	_si1133_chan_set_adcsens
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	$1, %edi
	callq	_SI1133_ADCCONFIG_DECIM_RATE
	movq	_SI1133_PARAM_ADCMUX_MED_IR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	$3, %esi
	movl	%eax, %edx
	callq	_si1133_chan_set_adcconfig
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	$3, %edi
	callq	_SI1133_PARAM_REG_ADCPOST
	movl	%eax, %r15d
	movl	(%r12), %ebx
	movl	$2, %edi
	callq	_SI1133_ADCPOST_POSTSHIFT_BITQTY
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_si1133_param_set
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r13), %ebx
	movl	$64, %edi
	callq	_SI1133_ADCSENS_NB_MEAS
	orl	%eax, %ebx
	movq	__48_8_us@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	$3, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_si1133_chan_set_adcsens        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SI1133_PARAM_ADCMUX_LARGE_WHITE,4,2 ## @SI1133_PARAM_ADCMUX_LARGE_WHITE
	.comm	_SI1133_ADCPOST_24BIT_EN,4,2    ## @SI1133_ADCPOST_24BIT_EN
	.comm	_SI1133_ADCSENS_HSIG_MASK,4,2   ## @SI1133_ADCSENS_HSIG_MASK
	.comm	__48_8_us,4,2                   ## @_48_8_us
	.comm	__3_120_0_us,4,2                ## @_3_120_0_us
	.comm	_SI1133_PARAM_ADCMUX_MED_IR,4,2 ## @SI1133_PARAM_ADCMUX_MED_IR
	.no_dead_strip	_si1133_init_lux_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si1133_init_lux_channels
_si1133_init_lux_channels:              ; @si1133_init_lux_channels
	.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	x19, x0
	mov	w0, #1
	bl	_SI1133_ADCCONFIG_DECIM_RATE
Lloh0:
	adrp	x24, _SI1133_PARAM_ADCMUX_LARGE_WHITE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SI1133_PARAM_ADCMUX_LARGE_WHITE@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w2, w8, w0
	mov	x0, x19
	mov	w1, #1
	bl	_si1133_chan_set_adcconfig
	cbnz	w0, LBB0_8
; %bb.1:
	mov	w0, #1
	bl	_SI1133_PARAM_REG_ADCPOST
	mov	x20, x0
Lloh2:
	adrp	x21, _SI1133_ADCPOST_24BIT_EN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SI1133_ADCPOST_24BIT_EN@GOTPAGEOFF]
	ldr	w22, [x21]
	mov	w0, #0
	bl	_SI1133_ADCPOST_POSTSHIFT_BITQTY
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x20
	bl	_si1133_param_set
	cbnz	w0, LBB0_8
; %bb.2:
Lloh4:
	adrp	x22, _SI1133_ADCSENS_HSIG_MASK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SI1133_ADCSENS_HSIG_MASK@GOTPAGEOFF]
	ldr	w20, [x22]
	mov	w0, #64
	bl	_SI1133_ADCSENS_NB_MEAS
	orr	w8, w0, w20
Lloh6:
	adrp	x23, __48_8_us@GOTPAGE
Lloh7:
	ldr	x23, [x23, __48_8_us@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #1
	bl	_si1133_chan_set_adcsens
	cbnz	w0, LBB0_8
; %bb.3:
	mov	w0, #1
	bl	_SI1133_ADCCONFIG_DECIM_RATE
	ldr	w8, [x24]
	orr	w2, w8, w0
	mov	x0, x19
	mov	w1, #2
	bl	_si1133_chan_set_adcconfig
	cbnz	w0, LBB0_8
; %bb.4:
	mov	w0, #2
	bl	_SI1133_PARAM_REG_ADCPOST
	mov	x20, x0
	ldr	w24, [x21]
	mov	w0, #2
	bl	_SI1133_ADCPOST_POSTSHIFT_BITQTY
	orr	w2, w0, w24
	mov	x0, x19
	mov	x1, x20
	bl	_si1133_param_set
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w20, [x22]
	mov	w0, #1
	bl	_SI1133_ADCSENS_NB_MEAS
	orr	w8, w0, w20
Lloh8:
	adrp	x9, __3_120_0_us@GOTPAGE
Lloh9:
	ldr	x9, [x9, __3_120_0_us@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #2
	bl	_si1133_chan_set_adcsens
	cbnz	w0, LBB0_8
; %bb.6:
	mov	w0, #1
	bl	_SI1133_ADCCONFIG_DECIM_RATE
Lloh11:
	adrp	x8, _SI1133_PARAM_ADCMUX_MED_IR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SI1133_PARAM_ADCMUX_MED_IR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	w1, #3
	bl	_si1133_chan_set_adcconfig
	cbnz	w0, LBB0_8
; %bb.7:
	mov	w0, #3
	bl	_SI1133_PARAM_REG_ADCPOST
	mov	x20, x0
	ldr	w21, [x21]
	mov	w0, #2
	bl	_SI1133_ADCPOST_POSTSHIFT_BITQTY
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x20
	bl	_si1133_param_set
	cbz	w0, LBB0_9
LBB0_8:
	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_9:
	ldr	w20, [x22]
	mov	w0, #64
	bl	_SI1133_ADCSENS_NB_MEAS
	orr	w8, w0, w20
	ldr	w9, [x23]
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #3
	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	_si1133_chan_set_adcsens
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SI1133_PARAM_ADCMUX_LARGE_WHITE,4,2 ; @SI1133_PARAM_ADCMUX_LARGE_WHITE
	.comm	_SI1133_ADCPOST_24BIT_EN,4,2    ; @SI1133_ADCPOST_24BIT_EN
	.comm	_SI1133_ADCSENS_HSIG_MASK,4,2   ; @SI1133_ADCSENS_HSIG_MASK
	.comm	__48_8_us,4,2                   ; @_48_8_us
	.comm	__3_120_0_us,4,2                ; @_3_120_0_us
	.comm	_SI1133_PARAM_ADCMUX_MED_IR,4,2 ; @SI1133_PARAM_ADCMUX_MED_IR
	.no_dead_strip	_si1133_init_lux_channels
.subsections_via_symbols
