	.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, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movq	_SQ905_CAPTURE_MED@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_5
LBB0_4:
	movq	_SQ905_CAPTURE_LOW@GOTPCREL(%rip), %rbx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_5
LBB0_2:
	movq	_SQ905_CAPTURE_HIGH@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rdx
LBB0_5:
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_gspca_dbg
	leaq	8(%r14), %rdi
	movl	(%rbx), %esi
	callq	_sq905_command
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_create_singlethread_workqueue
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_queue_work
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_gspca_err
LBB0_8:
	movl	%ebx, %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	_SQ905_CAPTURE_HIGH,4,2         ## @SQ905_CAPTURE_HIGH
L_.str.1:                               ## @.str.1
	.asciz	"Start streaming at medium resolution\n"

	.comm	_SQ905_CAPTURE_MED,4,2          ## @SQ905_CAPTURE_MED
L_.str.2:                               ## @.str.2
	.asciz	"Start streaming at low resolution\n"

	.comm	_SQ905_CAPTURE_LOW,4,2          ## @SQ905_CAPTURE_LOW
L_.str.3:                               ## @.str.3
	.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
Lloh0:
	adrp	x8, _SQ905_CAPTURE_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQ905_CAPTURE_HIGH@GOTPAGEOFF]
Lloh2:
	adrp	x9, l_.str@PAGE
Lloh3:
	add	x9, x9, l_.str@PAGEOFF
	ldr	w10, [x0]
Lloh4:
	adrp	x11, _SQ905_CAPTURE_LOW@GOTPAGE
Lloh5:
	ldr	x11, [x11, _SQ905_CAPTURE_LOW@GOTPAGEOFF]
Lloh6:
	adrp	x12, l_.str.2@PAGE
Lloh7:
	add	x12, x12, l_.str.2@PAGEOFF
	cmp	w10, #1
Lloh8:
	adrp	x13, _SQ905_CAPTURE_MED@GOTPAGE
Lloh9:
	ldr	x13, [x13, _SQ905_CAPTURE_MED@GOTPAGEOFF]
Lloh10:
	adrp	x14, l_.str.1@PAGE
Lloh11:
	add	x14, x14, l_.str.1@PAGEOFF
	csel	x9, x9, x14, ne
	csel	x8, x8, x13, ne
	cmp	w10, #0
	csel	x2, x12, x9, eq
	csel	x20, x11, x8, eq
Lloh12:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_gspca_dbg
	add	x0, x19, #8
	ldr	w1, [x20]
	bl	_sq905_command
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _MODULE_NAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MODULE_NAME@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_create_singlethread_workqueue
	str	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x20, x0
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.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	_SQ905_CAPTURE_HIGH,4,2         ; @SQ905_CAPTURE_HIGH
l_.str.1:                               ; @.str.1
	.asciz	"Start streaming at medium resolution\n"

	.comm	_SQ905_CAPTURE_MED,4,2          ; @SQ905_CAPTURE_MED
l_.str.2:                               ; @.str.2
	.asciz	"Start streaming at low resolution\n"

	.comm	_SQ905_CAPTURE_LOW,4,2          ; @SQ905_CAPTURE_LOW
l_.str.3:                               ; @.str.3
	.asciz	"Start streaming command failed\n"

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