	.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	(%rdi), %eax
	movl	4(%rdi), %ecx
	movl	%ecx, 8(%rdi)
	movq	_D_STREAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	$640, %eax                      ## imm = 0x280
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gspca_dbg
	incl	8(%rbx)
	movq	_SQ905C_CAPTURE_HI@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gspca_dbg
	movq	_SQ905C_CAPTURE_MED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_SQ905C_CAPTURE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sq905c_command
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_create_singlethread_workqueue
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_queue_work
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gspca_err
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_STREAM,4,2                   ## @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Start streaming at high resolution\n"

	.comm	_SQ905C_CAPTURE_HI,4,2          ## @SQ905C_CAPTURE_HI
	.comm	_SQ905C_CAPTURE_INDEX,4,2       ## @SQ905C_CAPTURE_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"Start streaming at medium resolution\n"

	.comm	_SQ905C_CAPTURE_MED,4,2         ## @SQ905C_CAPTURE_MED
L_.str.2:                               ## @.str.2
	.asciz	"Start streaming command failed\n"

	.comm	_MODULE_NAME,4,2                ## @MODULE_NAME
	.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
	ldp	w9, w8, [x0]
	str	w8, [x0, #8]
Lloh0:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cmp	w9, #640
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
Lloh5:
	adrp	x8, _SQ905C_CAPTURE_HI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQ905C_CAPTURE_HI@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
Lloh9:
	adrp	x8, _SQ905C_CAPTURE_MED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SQ905C_CAPTURE_MED@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SQ905C_CAPTURE_INDEX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SQ905C_CAPTURE_INDEX@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sq905c_command
	tbnz	w0, #31, LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _MODULE_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MODULE_NAME@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_create_singlethread_workqueue
	str	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	mov	x20, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_D_STREAM,4,2                   ; @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Start streaming at high resolution\n"

	.comm	_SQ905C_CAPTURE_HI,4,2          ; @SQ905C_CAPTURE_HI
	.comm	_SQ905C_CAPTURE_INDEX,4,2       ; @SQ905C_CAPTURE_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"Start streaming at medium resolution\n"

	.comm	_SQ905C_CAPTURE_MED,4,2         ; @SQ905C_CAPTURE_MED
l_.str.2:                               ; @.str.2
	.asciz	"Start streaming command failed\n"

	.comm	_MODULE_NAME,4,2                ; @MODULE_NAME
	.no_dead_strip	_sd_start
.subsections_via_symbols
