	.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
	movq	24(%rdi), %rax
	movslq	16(%rdi), %rcx
	movl	(%rax,%rcx,4), %r12d
	movl	4(%rdi), %edx
	movl	8(%rdi), %r13d
	movq	128(%rdi), %rdi
	movl	%r13d, %esi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	$33, %ecx
	callq	_jpeg_define
	movq	128(%rbx), %r14
	movq	136(%rbx), %rdi
	callq	_v4l2_ctrl_g_ctrl
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_jpeg_set_qual
	movq	_MODE_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_MODE_JPEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r12d, %ecx
	movl	$47, %ecx
	movl	$36, %edx
	cmovel	%ecx, %edx
	testl	%eax, %eax
	movl	$45, %r15d
	cmovel	%edx, %r15d
	movl	%r15d, (%rbx)
	movq	_SCALE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	andl	%r12d, %eax
	addl	$-128, %eax
	xorl	%r12d, %r12d
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_reltable.sd_start(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdi
	addq	%rcx, %rdi
	leaq	L_switch.table.sd_start.4(%rip), %rcx
	movl	(%rcx,%rax,4), %r12d
	callq	_pr_info
LBB0_2:
	movq	%rbx, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_configure_sensor_output
	movq	_JPEG_QT0_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$2, %rdx
	addq	128(%rbx), %rdx
	movq	%rbx, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$64, %ecx
	callq	_reg_w
	movq	_JPEG_QT1_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$2, %rdx
	addq	128(%rbx), %rdx
	movq	%rbx, %rdi
	movl	$4416, %esi                     ## imm = 0x1140
	movl	$64, %ecx
	callq	_reg_w
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_CLR_WIN
	movq	%rbx, %rdi
	movl	$4347, %esi                     ## imm = 0x10FB
	movq	%rax, %rdx
	movl	$5, %ecx
	callq	_reg_w
	movl	120(%rbx), %edx
	movl	124(%rbx), %esi
	movl	%r14d, %edi
	callq	_HW_WIN
	movq	%rbx, %rdi
	movl	$4480, %esi                     ## imm = 0x1180
	movq	%rax, %rdx
	movl	$6, %ecx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$4489, %esi                     ## imm = 0x1189
	movl	%r12d, %edx
	callq	_reg_w1
	movq	%rbx, %rdi
	movl	$4320, %esi                     ## imm = 0x10E0
	movl	%r15d, %edx
	callq	_reg_w1
	movq	112(%rbx), %rdi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, %r14d
	movq	104(%rbx), %rdi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, %r15d
	movq	96(%rbx), %rdi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, %r12d
	movq	88(%rbx), %rdi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_set_cmatrix
	movq	80(%rbx), %rdi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_set_gamma
	movq	72(%rbx), %rdi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, %r14d
	movq	64(%rbx), %rdi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_set_redblue
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_set_gain
LBB0_4:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_set_exposure
LBB0_6:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, %r14d
	movq	32(%rbx), %rdi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_set_hvflip
LBB0_8:
	movq	%rbx, %rdi
	movl	$4103, %esi                     ## imm = 0x1007
	movl	$32, %edx
	callq	_reg_w1
	movq	%rbx, %rdi
	movl	$4193, %esi                     ## imm = 0x1061
	movl	$3, %edx
	callq	_reg_w1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_MODE_JPEG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	leaq	8(%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	$0, 16(%rax)
LBB0_10:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_RAW,4,2                   ## @MODE_RAW
	.comm	_MODE_JPEG,4,2                  ## @MODE_JPEG
	.comm	_SCALE_MASK,4,2                 ## @SCALE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set 1280x1024\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set 640x480\n"

L_.str.2:                               ## @.str.2
	.asciz	"Set 320x240\n"

L_.str.3:                               ## @.str.3
	.asciz	"Set 160x120\n"

	.comm	_JPEG_QT0_OFFSET,8,3            ## @JPEG_QT0_OFFSET
	.comm	_JPEG_QT1_OFFSET,8,3            ## @JPEG_QT1_OFFSET
	.no_dead_strip	_sd_start
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.sd_start
l_reltable.sd_start:
	.long	L_.str.1-l_reltable.sd_start
	.long	L_.str.2-l_reltable.sd_start
	.long	L_.str.3-l_reltable.sd_start
	.long	L_.str-l_reltable.sd_start

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.sd_start.4
L_switch.table.sd_start.4:
	.long	128                             ## 0x80
	.long	144                             ## 0x90
	.long	160                             ## 0xa0
	.long	192                             ## 0xc0

.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldp	x9, x8, [x0, #16]
	sbfiz	x9, x9, #2, #32
	ldr	w20, [x8, x9]
	ldr	w22, [x0, #4]
	mov	x25, x0
	ldr	w23, [x25, #8]!
	ldr	x0, [x0, #128]
	mov	x1, x23
	mov	x2, x22
	mov	w3, #33
	bl	_jpeg_define
	ldp	x21, x0, [x19, #128]
	bl	_v4l2_ctrl_g_ctrl
	mov	x1, x0
	mov	x0, x21
	bl	_jpeg_set_qual
Lloh0:
	adrp	x8, _MODE_RAW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_RAW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x26, _MODE_JPEG@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MODE_JPEG@GOTPAGEOFF]
	ldr	w9, [x26]
	tst	w9, w20
	mov	w9, #36
	mov	w10, #47
	csel	w9, w10, w9, eq
	tst	w8, w20
	mov	w8, #45
	csel	w21, w9, w8, eq
	str	w21, [x19]
Lloh5:
	adrp	x8, _SCALE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCALE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w20
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh8:
	adrp	x9, l_switch.table.sd_start@PAGE
Lloh9:
	add	x9, x9, l_switch.table.sd_start@PAGEOFF
	ldr	x0, [x9, w8, sxtw #3]
Lloh10:
	adrp	x9, l_switch.table.sd_start.4@PAGE
Lloh11:
	add	x9, x9, l_switch.table.sd_start.4@PAGEOFF
	ldr	w24, [x9, w8, sxtw #2]
	bl	_pr_info
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_configure_sensor_output
	ldr	x8, [x19, #128]
Lloh12:
	adrp	x9, _JPEG_QT0_OFFSET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _JPEG_QT0_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x2, x8, x9, lsl #2
	mov	x0, x19
	mov	w1, #4352
	mov	w3, #64
	bl	_reg_w
	ldr	x8, [x19, #128]
Lloh15:
	adrp	x9, _JPEG_QT1_OFFSET@GOTPAGE
Lloh16:
	ldr	x9, [x9, _JPEG_QT1_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x2, x8, x9, lsl #2
	mov	x0, x19
	mov	w1, #4416
	mov	w3, #64
	bl	_reg_w
	mov	x0, x22
	mov	x1, x23
	bl	_CLR_WIN
	mov	x2, x0
	mov	x0, x19
	mov	w1, #4347
	mov	w3, #5
	bl	_reg_w
	ldp	w2, w1, [x19, #120]
	mov	x0, x20
	bl	_HW_WIN
	mov	x2, x0
	mov	x0, x19
	mov	w1, #4480
	mov	w3, #6
	bl	_reg_w
	mov	x0, x19
	mov	w1, #4489
	mov	x2, x24
	bl	_reg_w1
	mov	x0, x19
	mov	w1, #4320
	mov	x2, x21
	bl	_reg_w1
	ldr	x0, [x19, #112]
	bl	_v4l2_ctrl_g_ctrl
	mov	x21, x0
	ldr	x0, [x19, #104]
	bl	_v4l2_ctrl_g_ctrl
	mov	x22, x0
	ldr	x0, [x19, #96]
	bl	_v4l2_ctrl_g_ctrl
	mov	x23, x0
	ldr	x0, [x19, #88]
	bl	_v4l2_ctrl_g_ctrl
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_set_cmatrix
	ldr	x0, [x19, #80]
	bl	_v4l2_ctrl_g_ctrl
	mov	x1, x0
	mov	x0, x19
	bl	_set_gamma
	ldr	x0, [x19, #72]
	bl	_v4l2_ctrl_g_ctrl
	mov	x21, x0
	ldr	x0, [x19, #64]
	bl	_v4l2_ctrl_g_ctrl
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_set_redblue
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_v4l2_ctrl_g_ctrl
	mov	x1, x0
	mov	x0, x19
	bl	_set_gain
LBB0_5:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_v4l2_ctrl_g_ctrl
	mov	x1, x0
	mov	x0, x19
	bl	_set_exposure
LBB0_7:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_v4l2_ctrl_g_ctrl
	mov	x21, x0
	ldr	x0, [x19, #32]
	bl	_v4l2_ctrl_g_ctrl
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_set_hvflip
LBB0_9:
	mov	x0, x19
	mov	w1, #4103
	mov	w2, #32
	bl	_reg_w1
	mov	x0, x19
	mov	w1, #4193
	mov	w2, #3
	bl	_reg_w1
	ldr	w8, [x26]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	stp	xzr, xzr, [x25]
	str	xzr, [x25, #16]
LBB0_11:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_RAW,4,2                   ; @MODE_RAW
	.comm	_MODE_JPEG,4,2                  ; @MODE_JPEG
	.comm	_SCALE_MASK,4,2                 ; @SCALE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set 1280x1024\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set 640x480\n"

l_.str.2:                               ; @.str.2
	.asciz	"Set 320x240\n"

l_.str.3:                               ; @.str.3
	.asciz	"Set 160x120\n"

	.comm	_JPEG_QT0_OFFSET,8,3            ; @JPEG_QT0_OFFSET
	.comm	_JPEG_QT1_OFFSET,8,3            ; @JPEG_QT1_OFFSET
	.no_dead_strip	_sd_start
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sd_start
l_switch.table.sd_start:
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.sd_start.4
l_switch.table.sd_start.4:
	.long	128                             ; 0x80
	.long	144                             ; 0x90
	.long	160                             ; 0xa0
	.long	192                             ; 0xc0

.subsections_via_symbols
