	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpl	$0, (%rcx,%rax,4)
	movq	_bridge_start_qvga@GOTPCREL(%rip), %rax
	cmoveq	_bridge_start_vga@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_sensor_start_qvga@GOTPCREL(%rip), %r15
	cmoveq	_sensor_start_vga@GOTPCREL(%rip), %r15
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_reg_w_array
	movl	(%r15), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_sccb_w_array
	movq	%rbx, %rdi
	callq	_set_frame_rate
	movq	%rbx, %rdi
	callq	_setagc
	movq	%rbx, %rdi
	callq	_setawb
	movq	%rbx, %rdi
	callq	_setaec
	movq	%rbx, %rdi
	callq	_setgain
	movq	%rbx, %rdi
	callq	_setexposure
	movq	%rbx, %rdi
	callq	_setbrightness
	movq	%rbx, %rdi
	callq	_setcontrast
	movq	%rbx, %rdi
	callq	_setsharpness
	movq	%rbx, %rdi
	callq	_setvflip
	movq	%rbx, %rdi
	callq	_sethflip
	movq	%rbx, %rdi
	callq	_setfreqfltr
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ov534_set_led
	movq	%rbx, %rdi
	movl	$224, %esi
	xorl	%edx, %edx
	callq	_ov534_reg_write
	movl	8(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bridge_start_qvga,4,2          ## @bridge_start_qvga
	.comm	_sensor_start_qvga,4,2          ## @sensor_start_qvga
	.comm	_bridge_start_vga,4,2           ## @bridge_start_vga
	.comm	_sensor_start_vga,4,2           ## @sensor_start_vga
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh0:
	adrp	x9, _bridge_start_vga@GOTPAGE
Lloh1:
	ldr	x9, [x9, _bridge_start_vga@GOTPAGEOFF]
Lloh2:
	adrp	x10, _bridge_start_qvga@GOTPAGE
Lloh3:
	ldr	x10, [x10, _bridge_start_qvga@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w20, [x8]
Lloh4:
	adrp	x8, _sensor_start_vga@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sensor_start_vga@GOTPAGEOFF]
Lloh6:
	adrp	x9, _sensor_start_qvga@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sensor_start_qvga@GOTPAGEOFF]
	csel	x21, x8, x9, eq
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_reg_w_array
	ldr	w20, [x21]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_sccb_w_array
	mov	x0, x19
	bl	_set_frame_rate
	mov	x0, x19
	bl	_setagc
	mov	x0, x19
	bl	_setawb
	mov	x0, x19
	bl	_setaec
	mov	x0, x19
	bl	_setgain
	mov	x0, x19
	bl	_setexposure
	mov	x0, x19
	bl	_setbrightness
	mov	x0, x19
	bl	_setcontrast
	mov	x0, x19
	bl	_setsharpness
	mov	x0, x19
	bl	_setvflip
	mov	x0, x19
	bl	_sethflip
	mov	x0, x19
	bl	_setfreqfltr
	mov	x0, x19
	mov	w1, #1
	bl	_ov534_set_led
	mov	x0, x19
	mov	w1, #224
	mov	w2, #0
	bl	_ov534_reg_write
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bridge_start_qvga,4,2          ; @bridge_start_qvga
	.comm	_sensor_start_qvga,4,2          ; @sensor_start_qvga
	.comm	_bridge_start_vga,4,2           ; @bridge_start_vga
	.comm	_sensor_start_vga,4,2           ; @sensor_start_vga
	.no_dead_strip	_sd_start
.subsections_via_symbols
