	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_config
_sd_config:                             ## @sd_config
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_D_PROBE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movslq	4(%rsi), %rcx
	movl	(%rsi), %r8d
	leaq	L_.str(%rip), %rdx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_gspca_dbg
	movq	_SQ905C_GET_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_sq905c_command
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$245, %esi
	xorl	%edx, %edx
	movl	$20, %ecx
	callq	_sq905c_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%r12), %esi
	movq	(%rbx), %r9
	movq	24(%r9), %rcx
	addq	$112, %r9
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	$6, %r8d
	xorl	%eax, %eax
	callq	_gspca_dbg
	movq	_sq905c_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	(%rbx), %rax
	cmpq	$1, 120(%rax)
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, 8(%rbx)
	movabsq	$4294967328, %rax               ## imm = 0x100000020
	movq	%rax, 12(%rbx)
	movq	_sq905c_dostream@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gspca_err
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gspca_err
	movl	%r15d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SQ9050 camera detected (vid/pid 0x%04X:0x%04X)\n"

	.comm	_SQ905C_GET_ID,4,2              ## @SQ905C_GET_ID
L_.str.1:                               ## @.str.1
	.asciz	"Get version command failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Reading version command failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"SQ9050 ID string: %02x - %*ph\n"

	.comm	_sq905c_mode,4,2                ## @sq905c_mode
	.comm	_sq905c_dostream,4,2            ## @sq905c_dostream
	.no_dead_strip	_sd_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sd_config
lCPI0_0:
	.long	32                              ; 0x20
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sd_config:                             ; @sd_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _D_PROBE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _D_PROBE@GOTPAGEOFF]
	ldr	w8, [x21]
	ldp	w4, w3, [x1]
                                        ; kill: def $w3 killed $w3 def $x3
	sxtw	x3, w3
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x8
	bl	_gspca_dbg
Lloh4:
	adrp	x8, _SQ905C_GET_ID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQ905C_GET_ID@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_sq905c_command
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #245
	mov	w2, #0
	mov	w3, #20
	bl	_sq905c_read
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w1, [x21]
	ldr	x8, [x19]
	ldr	x3, [x8, #24]
	add	x8, x8, #112
Lloh7:
	adrp	x2, l_.str.3@PAGE
Lloh8:
	add	x2, x2, l_.str.3@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	mov	w4, #6
	bl	_gspca_dbg
Lloh9:
	adrp	x8, _sq905c_mode@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sq905c_mode@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	x8, [x19]
	ldr	x8, [x8, #120]
	cmp	x8, #0
	mov	w8, #1
	cinc	w8, w8, ne
	str	w8, [x19, #8]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #12]
Lloh14:
	adrp	x8, _sq905c_dostream@GOTPAGE
Lloh15:
	ldr	x8, [x8, _sq905c_dostream@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
	mov	w20, #0
	b	LBB0_6
LBB0_3:
	mov	x20, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x20, x0
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_gspca_err
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SQ9050 camera detected (vid/pid 0x%04X:0x%04X)\n"

	.comm	_SQ905C_GET_ID,4,2              ; @SQ905C_GET_ID
l_.str.1:                               ; @.str.1
	.asciz	"Get version command failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Reading version command failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"SQ9050 ID string: %02x - %*ph\n"

	.comm	_sq905c_mode,4,2                ; @sq905c_mode
	.comm	_sq905c_dostream,4,2            ; @sq905c_dostream
	.no_dead_strip	_sd_config
.subsections_via_symbols
