	.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
	subq	$32, %rsp
	.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), %edi
	movl	(%rsi), %ecx
	movl	4(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	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), %edi
	movq	(%rbx), %rax
	movq	24(%rax), %rdx
	movq	112(%rax), %rcx
	movq	120(%rax), %r8
	movq	128(%rax), %r9
	movups	136(%rax), %xmm0
	movq	152(%rax), %rax
	movq	%rax, 16(%rsp)
	movups	%xmm0, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	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
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %r15d
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	movl	%r15d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$32, %rsp
	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)"

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

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

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

	.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, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w0, [x21]
	ldp	w9, w8, [x1]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
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	w0, [x21]
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	ldp	x10, x11, [x8, #112]
	ldp	x12, x13, [x8, #128]
	ldp	x14, x8, [x8, #144]
	stp	x14, x8, [sp, #40]
	stp	x12, x13, [sp, #24]
	stp	x10, x11, [sp, #8]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	str	x9, [sp]
	bl	_PDEBUG
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	x8, _D_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x20, x0
Lloh22:
	adrp	x8, _D_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	bl	_PDEBUG
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	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	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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)"

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

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

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

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