	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_start
_sd_start:                              ## @sd_start
	.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, %rbx
	movl	32(%rdi), %edi
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	callq	_jpeg_define
	movl	28(%rbx), %esi
	movq	%rbx, %rdi
	callq	_set_dqt
	movq	_BRIDGE_TP6800@GOTPCREL(%rip), %rdx
	movq	(%rbx), %rsi
	movq	8(%rbx), %rax
	movq	_SENSOR_CX0342@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	(%rdx), %rsi
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.2:
	callq	_cx0342_6800_start
	jmp	LBB0_14
LBB0_4:
	movq	%rbx, %rdi
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:
	callq	_cx0342_6810_start
	jmp	LBB0_7
LBB0_3:
	callq	_soi763a_6800_start
	jmp	LBB0_14
LBB0_6:
	callq	_soi763a_6810_start
LBB0_7:
	movq	_tp6810_late_start@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_reg_w_buf
	movq	%rbx, %rdi
	movl	$128, %esi
	movl	$3, %edx
	callq	_reg_w
	xorl	%eax, %eax
	cmpq	$0, 16(%rbx)
	sete	%al
	leal	10(,%rax,4), %edx
	movq	%rbx, %rdi
	movl	$130, %esi
	callq	_reg_w
	movq	8(%rbx), %r12
	movq	(%r15), %r13
	movl	4(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, %r15d
	cmpq	%r13, %r12
	jne	LBB0_9
## %bb.8:
	movl	24(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, %r12d
	movl	20(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	jmp	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_10:
	callq	_setexposure
	movq	8(%rbx), %rax
	movq	_SENSOR_SOI763A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	16(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_setquality
LBB0_12:
	movq	(%rbx), %rax
	movq	_BRIDGE_TP6810@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movl	8(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_setautogain
LBB0_14:
	movl	4(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_setframerate
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRIDGE_TP6800,8,3              ## @BRIDGE_TP6800
	.comm	_SENSOR_CX0342,8,3              ## @SENSOR_CX0342
	.comm	_tp6810_late_start,4,2          ## @tp6810_late_start
	.comm	_SENSOR_SOI763A,8,3             ## @SENSOR_SOI763A
	.comm	_BRIDGE_TP6810,8,3              ## @BRIDGE_TP6810
	.no_dead_strip	_sd_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_start
_sd_start:                              ; @sd_start
	.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
	ldr	w0, [x0, #32]
	ldp	w2, w1, [x19, #24]
	bl	_jpeg_define
	ldr	w1, [x19, #28]
	mov	x0, x19
	bl	_set_dqt
Lloh0:
	adrp	x8, _BRIDGE_TP6800@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRIDGE_TP6800@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldp	x11, x8, [x19]
Lloh3:
	adrp	x21, _SENSOR_CX0342@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SENSOR_CX0342@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	x0, x19
	cmp	x11, x10
	b.ne	LBB0_3
; %bb.1:
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	bl	_cx0342_6800_start
	b	LBB0_14
LBB0_3:
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	bl	_cx0342_6810_start
	b	LBB0_7
LBB0_5:
	bl	_soi763a_6800_start
	b	LBB0_14
LBB0_6:
	bl	_soi763a_6810_start
LBB0_7:
Lloh5:
	adrp	x8, _tp6810_late_start@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tp6810_late_start@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_reg_w_buf
	mov	x0, x19
	mov	w1, #128
	mov	w2, #3
	bl	_reg_w
	ldr	x8, [x19, #16]
	cmp	x8, #0
	mov	w8, #10
	mov	w9, #14
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #130
	bl	_reg_w
	ldr	x22, [x19, #8]
	ldr	x23, [x21]
	ldr	w0, [x19, #4]
	bl	_v4l2_ctrl_g_ctrl
	mov	x20, x0
	ldr	w0, [x19, #12]
	bl	_v4l2_ctrl_g_ctrl
	mov	x21, x0
	cmp	x22, x23
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19, #24]
	bl	_v4l2_ctrl_g_ctrl
	mov	x22, x0
	ldr	w0, [x19, #20]
	bl	_v4l2_ctrl_g_ctrl
	mov	x4, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
LBB0_10:
	bl	_setexposure
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _SENSOR_SOI763A@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SENSOR_SOI763A@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x19, #16]
	bl	_v4l2_ctrl_g_ctrl
	mov	x1, x0
	mov	x0, x19
	bl	_setquality
LBB0_12:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _BRIDGE_TP6810@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BRIDGE_TP6810@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	w0, [x19, #8]
	bl	_v4l2_ctrl_g_ctrl
	mov	x1, x0
	mov	x0, x19
	bl	_setautogain
LBB0_14:
	ldr	w0, [x19, #4]
	bl	_v4l2_ctrl_g_ctrl
	mov	x1, x0
	mov	x0, x19
	bl	_setframerate
	ldr	w0, [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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BRIDGE_TP6800,8,3              ; @BRIDGE_TP6800
	.comm	_SENSOR_CX0342,8,3              ; @SENSOR_CX0342
	.comm	_tp6810_late_start,4,2          ; @tp6810_late_start
	.comm	_SENSOR_SOI763A,8,3             ; @SENSOR_SOI763A
	.comm	_BRIDGE_TP6810,8,3              ; @BRIDGE_TP6810
	.no_dead_strip	_sd_start
.subsections_via_symbols
