	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorl	%esi, %esi
	callq	_command
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	8(%r14), %edi
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movq	_FPIX_MAX_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FPIX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-20(%rbp), %r8
	callq	_usb_bulk_msg
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_command
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	8(%r14), %edi
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_usb_clear_halt
	movq	%r14, %rdi
	callq	_schedule_work
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	movl	%ebx, %esi
	callq	_pr_err
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init failed %d\n"

	.comm	_FPIX_MAX_TRANSFER,4,2          ## @FPIX_MAX_TRANSFER
	.comm	_FPIX_TIMEOUT,4,2               ## @FPIX_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"usb_bulk_msg failed %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"frame request failed %d\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:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #0
	bl	_command
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldp	w1, w2, [x8]
Lloh0:
	adrp	x8, _FPIX_MAX_TRANSFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FPIX_MAX_TRANSFER@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _FPIX_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FPIX_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	add	x4, sp, #12
	bl	_usb_bulk_msg
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_command
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_usb_clear_halt
	mov	x0, x19
	bl	_schedule_work
	mov	w20, #0
	b	LBB0_8
LBB0_4:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	mov	x1, x20
	bl	_pr_err
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init failed %d\n"

	.comm	_FPIX_MAX_TRANSFER,4,2          ; @FPIX_MAX_TRANSFER
	.comm	_FPIX_TIMEOUT,4,2               ; @FPIX_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"usb_bulk_msg failed %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"frame request failed %d\n"

	.no_dead_strip	_sd_start
.subsections_via_symbols
