	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$15, %esi
	movl	$16, %edx
	callq	_pac207_write_reg
	movq	_pac207_sensor_init@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$8, %ecx
	callq	_pac207_write_regs
	movq	(%r14), %rax
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	movl	$10, %esi
	movl	$8, %ecx
	callq	_pac207_write_regs
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	movl	$18, %esi
	movl	$8, %ecx
	callq	_pac207_write_regs
	movq	(%r14), %rax
	movl	12(%rax), %edx
	movq	%rbx, %rdi
	movl	$66, %esi
	movl	$8, %ecx
	callq	_pac207_write_regs
	cmpl	$176, 4(%rbx)
	movl	$255, %eax
	movl	$48, %edx
	cmovel	%eax, %edx
	movq	%rbx, %rdi
	movl	$74, %esi
	callq	_pac207_write_reg
	movq	%rbx, %rdi
	movl	$75, %esi
	xorl	%edx, %edx
	callq	_pac207_write_reg
	movl	24(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	%eax, %edx
	callq	_pac207_write_reg
	movl	12(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	$14, %esi
	movl	%eax, %edx
	callq	_pac207_write_reg
	movl	8(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	%eax, %edx
	callq	_pac207_write_reg
	movq	_led_invert@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	sete	%cl
	xorl	%eax, %eax
	cmpl	$176, 4(%rbx)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rsi, %rdx
	sete	%al
	leal	(%rax,%rcx,2), %r14d
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gspca_dbg
	movq	%rbx, %rdi
	movl	$65, %esi
	movl	%r14d, %edx
	callq	_pac207_write_reg
	movq	%rbx, %rdi
	movl	$19, %esi
	movl	$1, %edx
	callq	_pac207_write_reg
	movq	%rbx, %rdi
	movl	$28, %esi
	movl	$1, %edx
	callq	_pac207_write_reg
	movl	$10, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_pac207_write_reg
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_atomic_set
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pac207_sensor_init,8,3         ## @pac207_sensor_init
	.comm	_led_invert,8,3                 ## @led_invert
	.comm	_D_STREAM,4,2                   ## @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pac207_start mode 176x144\n"

L_.str.1:                               ## @.str.1
	.asciz	"pac207_start mode 352x288\n"

	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #15
	mov	w2, #16
	bl	_pac207_write_reg
Lloh0:
	adrp	x20, _pac207_sensor_init@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pac207_sensor_init@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	mov	w3, #8
	bl	_pac207_write_regs
	ldr	x8, [x20]
	ldr	w2, [x8, #4]
	mov	x0, x19
	mov	w1, #10
	mov	w3, #8
	bl	_pac207_write_regs
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
	mov	x0, x19
	mov	w1, #18
	mov	w3, #8
	bl	_pac207_write_regs
	ldr	x8, [x20]
	ldr	w2, [x8, #12]
	mov	x0, x19
	mov	w1, #66
	mov	w3, #8
	bl	_pac207_write_regs
	ldr	w8, [x19, #4]
	mov	w9, #48
	mov	w10, #255
	cmp	w8, #176
	csel	w2, w10, w9, eq
	mov	x0, x19
	mov	w1, #74
	bl	_pac207_write_reg
	mov	x0, x19
	mov	w1, #75
	mov	w2, #0
	bl	_pac207_write_reg
	ldr	w0, [x19, #24]
	bl	_v4l2_ctrl_g_ctrl
	mov	x2, x0
	mov	x0, x19
	mov	w1, #8
	bl	_pac207_write_reg
	ldr	w0, [x19, #12]
	bl	_v4l2_ctrl_g_ctrl
	mov	x2, x0
	mov	x0, x19
	mov	w1, #14
	bl	_pac207_write_reg
	ldr	w0, [x19, #8]
	bl	_v4l2_ctrl_g_ctrl
	mov	x2, x0
	mov	x0, x19
	mov	w1, #2
	bl	_pac207_write_reg
Lloh2:
	adrp	x8, _led_invert@GOTPAGE
Lloh3:
	ldr	x8, [x8, _led_invert@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, eq
	ldr	w9, [x19, #4]
	cmp	w9, #176
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh7:
	adrp	x10, l_.str@PAGE
Lloh8:
	add	x10, x10, l_.str@PAGEOFF
	cset	w20, eq
	csel	x2, x10, x9, eq
	bfi	w20, w8, #1, #1
Lloh9:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gspca_dbg
	mov	x0, x19
	mov	w1, #65
	mov	x2, x20
	bl	_pac207_write_reg
	mov	x0, x19
	mov	w1, #19
	mov	w2, #1
	bl	_pac207_write_reg
	mov	x0, x19
	mov	w1, #28
	mov	w2, #1
	bl	_pac207_write_reg
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_pac207_write_reg
	stp	xzr, xzr, [x19, #8]
	mov	x0, x19
	mov	w1, #-1
	bl	_atomic_set
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pac207_sensor_init,8,3         ; @pac207_sensor_init
	.comm	_led_invert,8,3                 ; @led_invert
	.comm	_D_STREAM,4,2                   ; @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pac207_start mode 176x144\n"

l_.str.1:                               ; @.str.1
	.asciz	"pac207_start mode 352x288\n"

	.no_dead_strip	_sd_start
.subsections_via_symbols
