	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setexposure
_setexposure:                           ## @setexposure
	.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
	movl	%edx, %r12d
	movl	%esi, %edx
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_SENSOR_CX0342@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_13
## %bb.1:
	movl	%ecx, %r15d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	leal	-1(,%rdx,4), %ebx
	movq	_CX0342_EXPO_LINE_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_i2c_w
	movq	_CX0342_EXPO_LINE_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$8, %ebx
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_i2c_w
	movq	8(%r13), %rax
	movq	_BRIDGE_TP6800@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_CX0342_RAW_GBGAIN_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	sarl	$8, %edx
	movq	%r13, %rdi
	callq	_i2c_w
LBB0_3:
	movq	_CX0342_RAW_GBGAIN_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_i2c_w
	movq	8(%r13), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_CX0342_RAW_GRGAIN_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	sarl	$8, %edx
	movq	%r13, %rdi
	callq	_i2c_w
LBB0_5:
	movq	_CX0342_RAW_GRGAIN_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_i2c_w
	movq	(%r13), %rax
	cmpq	(%r14), %rax
	jne	LBB0_11
## %bb.6:
	movq	8(%r13), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_CX0342_RAW_BGAIN_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	sarl	$8, %edx
	movq	%r13, %rdi
	callq	_i2c_w
LBB0_8:
	movq	_CX0342_RAW_BGAIN_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_i2c_w
	movq	8(%r13), %rax
	movq	%rbx, %r14
	cmpq	(%rbx), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_10
## %bb.9:
	movq	_CX0342_RAW_RGAIN_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	sarl	$8, %edx
	movq	%r13, %rdi
	callq	_i2c_w
LBB0_10:
	movq	_CX0342_RAW_RGAIN_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_i2c_w
	movq	%r14, %rbx
LBB0_11:
	movq	_CX0342_SYS_CTRL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r13), %rax
	xorl	%edx, %edx
	cmpq	(%rbx), %rax
	sete	%dl
	xorl	$129, %edx
	movq	%r13, %rdi
	jmp	LBB0_12
LBB0_13:
	movq	%r13, %rdi
	movl	$16, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_i2c_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_w                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_CX0342,8,3              ## @SENSOR_CX0342
	.comm	_CX0342_EXPO_LINE_L,4,2         ## @CX0342_EXPO_LINE_L
	.comm	_CX0342_EXPO_LINE_H,4,2         ## @CX0342_EXPO_LINE_H
	.comm	_BRIDGE_TP6800,8,3              ## @BRIDGE_TP6800
	.comm	_CX0342_RAW_GBGAIN_H,4,2        ## @CX0342_RAW_GBGAIN_H
	.comm	_CX0342_RAW_GBGAIN_L,4,2        ## @CX0342_RAW_GBGAIN_L
	.comm	_CX0342_RAW_GRGAIN_H,4,2        ## @CX0342_RAW_GRGAIN_H
	.comm	_CX0342_RAW_GRGAIN_L,4,2        ## @CX0342_RAW_GRGAIN_L
	.comm	_CX0342_RAW_BGAIN_H,4,2         ## @CX0342_RAW_BGAIN_H
	.comm	_CX0342_RAW_BGAIN_L,4,2         ## @CX0342_RAW_BGAIN_L
	.comm	_CX0342_RAW_RGAIN_H,4,2         ## @CX0342_RAW_RGAIN_H
	.comm	_CX0342_RAW_RGAIN_L,4,2         ## @CX0342_RAW_RGAIN_L
	.comm	_CX0342_SYS_CTRL_0,4,2          ## @CX0342_SYS_CTRL_0
	.no_dead_strip	_setexposure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setexposure
_setexposure:                           ; @setexposure
	.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	x22, x2
	mov	x2, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x24, _SENSOR_CX0342@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SENSOR_CX0342@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	lsl	w8, w2, #2
	sub	w23, w8, #1
Lloh2:
	adrp	x8, _CX0342_EXPO_LINE_L@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CX0342_EXPO_LINE_L@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_i2c_w
Lloh5:
	adrp	x8, _CX0342_EXPO_LINE_H@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CX0342_EXPO_LINE_H@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	asr	w2, w23, #8
	mov	x0, x19
	bl	_i2c_w
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x23, _BRIDGE_TP6800@GOTPAGE
Lloh9:
	ldr	x23, [x23, _BRIDGE_TP6800@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _CX0342_RAW_GBGAIN_H@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CX0342_RAW_GBGAIN_H@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	asr	w2, w22, #8
	mov	x0, x19
	bl	_i2c_w
LBB0_3:
Lloh13:
	adrp	x8, _CX0342_RAW_GBGAIN_L@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CX0342_RAW_GBGAIN_L@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_i2c_w
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh16:
	adrp	x8, _CX0342_RAW_GRGAIN_H@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CX0342_RAW_GRGAIN_H@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	asr	w2, w22, #8
	mov	x0, x19
	bl	_i2c_w
LBB0_5:
Lloh19:
	adrp	x8, _CX0342_RAW_GRGAIN_L@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CX0342_RAW_GRGAIN_L@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_i2c_w
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh22:
	adrp	x8, _CX0342_RAW_BGAIN_H@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CX0342_RAW_BGAIN_H@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	asr	w2, w21, #8
	mov	x0, x19
	bl	_i2c_w
LBB0_8:
Lloh25:
	adrp	x8, _CX0342_RAW_BGAIN_L@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CX0342_RAW_BGAIN_L@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_i2c_w
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh28:
	adrp	x8, _CX0342_RAW_RGAIN_H@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CX0342_RAW_RGAIN_H@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	asr	w2, w20, #8
	mov	x0, x19
	bl	_i2c_w
LBB0_10:
Lloh31:
	adrp	x8, _CX0342_RAW_RGAIN_L@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CX0342_RAW_RGAIN_L@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_i2c_w
LBB0_11:
Lloh34:
	adrp	x8, _CX0342_SYS_CTRL_0@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CX0342_SYS_CTRL_0@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	mov	w8, #128
	cinc	w2, w8, ne
	mov	x0, x19
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	w1, #16
	bl	_i2c_w
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
LBB0_13:
	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	_i2c_w
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_CX0342,8,3              ; @SENSOR_CX0342
	.comm	_CX0342_EXPO_LINE_L,4,2         ; @CX0342_EXPO_LINE_L
	.comm	_CX0342_EXPO_LINE_H,4,2         ; @CX0342_EXPO_LINE_H
	.comm	_BRIDGE_TP6800,8,3              ; @BRIDGE_TP6800
	.comm	_CX0342_RAW_GBGAIN_H,4,2        ; @CX0342_RAW_GBGAIN_H
	.comm	_CX0342_RAW_GBGAIN_L,4,2        ; @CX0342_RAW_GBGAIN_L
	.comm	_CX0342_RAW_GRGAIN_H,4,2        ; @CX0342_RAW_GRGAIN_H
	.comm	_CX0342_RAW_GRGAIN_L,4,2        ; @CX0342_RAW_GRGAIN_L
	.comm	_CX0342_RAW_BGAIN_H,4,2         ; @CX0342_RAW_BGAIN_H
	.comm	_CX0342_RAW_BGAIN_L,4,2         ; @CX0342_RAW_BGAIN_L
	.comm	_CX0342_RAW_RGAIN_H,4,2         ; @CX0342_RAW_RGAIN_H
	.comm	_CX0342_RAW_RGAIN_L,4,2         ; @CX0342_RAW_RGAIN_L
	.comm	_CX0342_SYS_CTRL_0,4,2          ; @CX0342_SYS_CTRL_0
	.no_dead_strip	_setexposure
.subsections_via_symbols
