	.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	20(%rdi), %esi
	movl	(%rdi), %edi
	movl	16(%rbx), %edx
	movl	$34, %ecx
	callq	_jpeg_define
	movl	(%rbx), %edi
	movq	_QUALITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_jpeg_set_qual
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	$1, %edx
	callq	_usb_set_interface
	movq	%rbx, %rdi
	movl	$268435456, %esi                ## imm = 0x10000000
	callq	_set_par
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_set_par
	movl	$-2147295231, %r14d             ## imm = 0x8002E001
	movq	%rbx, %rdi
	movl	$-2147295231, %esi              ## imm = 0x8002E001
	callq	_set_par
	movq	%rbx, %rdi
	movl	$335544320, %esi                ## imm = 0x14000000
	callq	_set_par
	cmpl	$321, 16(%rbx)                  ## imm = 0x141
	movl	$1073868800, %esi               ## imm = 0x4001F000
	cmovgel	%r14d, %esi
	movq	%rbx, %rdi
	callq	_set_par
	movl	12(%rbx), %edi
	movl	(%rbx), %edx
	movl	8(%rbx), %esi
	callq	_usb_set_interface
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$1584, %esi                     ## imm = 0x630
	callq	_reg_r
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_rcv_val
	movq	%rbx, %rdi
	movl	$1616, %esi                     ## imm = 0x650
	callq	_reg_r
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$-1, %edx
	callq	_snd_val
	movq	%rbx, %rdi
	movl	$1568, %esi                     ## imm = 0x620
	xorl	%edx, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$1584, %esi                     ## imm = 0x630
	xorl	%edx, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$1600, %esi                     ## imm = 0x640
	xorl	%edx, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$1616, %esi                     ## imm = 0x650
	xorl	%edx, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$1632, %esi                     ## imm = 0x660
	xorl	%edx, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$159383552, %esi                ## imm = 0x9800000
	callq	_set_par
	movq	%rbx, %rdi
	movl	$176160768, %esi                ## imm = 0xA800000
	callq	_set_par
	movq	%rbx, %rdi
	movl	$192937984, %esi                ## imm = 0xB800000
	callq	_set_par
	movq	%rbx, %rdi
	movl	$218300416, %esi                ## imm = 0xD030000
	callq	_set_par
	movq	%rbx, %rdi
	movl	$16777216, %esi                 ## imm = 0x1000000
	callq	_set_par
	movq	%rbx, %rdi
	movl	$16777216, %esi                 ## imm = 0x1000000
	callq	_set_par
	movl	4(%rbx), %r14d
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.3:
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gspca_dbg
	movl	4(%rbx), %r14d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r14d
	movl	(%rbx), %edx
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	%r14d, 4(%rbx)
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUALITY,4,2                    ## @QUALITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set intf %d %d failed\n"

	.comm	_D_STREAM,4,2                   ## @D_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"camera started alt: 0x%02x\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
	ldr	w0, [x0]
	ldp	w2, w1, [x19, #16]
	mov	w3, #34
	bl	_jpeg_define
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _QUALITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUALITY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_jpeg_set_qual
	ldp	w1, w0, [x19, #8]
	mov	w2, #1
	bl	_usb_set_interface
	mov	x0, x19
	mov	w1, #268435456
	bl	_set_par
	mov	x0, x19
	mov	w1, #0
	bl	_set_par
	mov	w20, #57345
	movk	w20, #32770, lsl #16
	mov	x0, x19
	mov	w1, #57345
	movk	w1, #32770, lsl #16
	bl	_set_par
	mov	x0, x19
	mov	w1, #335544320
	bl	_set_par
	ldr	w8, [x19, #16]
	mov	w9, #61440
	movk	w9, #16385, lsl #16
	cmp	w8, #320
	csel	w1, w20, w9, gt
	mov	x0, x19
	bl	_set_par
	ldp	w1, w0, [x19, #8]
	ldr	w2, [x19]
	bl	_usb_set_interface
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #1584
	bl	_reg_r
	mov	x0, x19
	mov	w1, #32
	bl	_rcv_val
	mov	x0, x19
	mov	w1, #1616
	bl	_reg_r
	mov	x0, x19
	mov	w1, #32
	mov	w2, #-1
	bl	_snd_val
	mov	x0, x19
	mov	w1, #1568
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1584
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1600
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1616
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1632
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #159383552
	bl	_set_par
	mov	x0, x19
	mov	w1, #176160768
	bl	_set_par
	mov	x0, x19
	mov	w1, #192937984
	bl	_set_par
	mov	x0, x19
	mov	w1, #218300416
	bl	_set_par
	mov	x0, x19
	mov	w1, #16777216
	bl	_set_par
	mov	x0, x19
	mov	w1, #16777216
	bl	_set_par
	ldr	w20, [x19, #4]
	tbnz	w20, #31, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x19]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	ldr	w20, [x19, #4]
	b	LBB0_4
LBB0_3:
	mov	x20, x0
	ldr	w1, [x19, #8]
	ldr	w2, [x19]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	str	w20, [x19, #4]
LBB0_4:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QUALITY,4,2                    ; @QUALITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set intf %d %d failed\n"

	.comm	_D_STREAM,4,2                   ; @D_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"camera started alt: 0x%02x\n"

	.no_dead_strip	_sd_start
.subsections_via_symbols
