	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv06xx_start
_stv06xx_start:                         ## @stv06xx_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	12(%rdi), %esi
	movl	16(%rdi), %edi
	callq	_usb_ifnum_to_if
	movl	8(%rbx), %esi
	movq	%rax, %rdi
	callq	_usb_altnum_to_altsetting
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_STV_ISO_SIZE_L@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_stv06xx_write_bridge
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_STV_ISO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_stv06xx_write_bridge
	movl	%eax, %r14d
	testl	%eax, %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmovsq	%rax, %rdx
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gspca_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdx
LBB0_6:
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gspca_dbg
	movl	%r14d, %eax
	sarl	$31, %eax
	andl	%r14d, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't get altsetting\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_STV_ISO_SIZE_L,4,2             ## @STV_ISO_SIZE_L
	.comm	_STV_ISO_ENABLE,4,2             ## @STV_ISO_ENABLE
	.comm	_D_STREAM,4,2                   ## @D_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"Starting stream failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Started streaming\n"

	.no_dead_strip	_stv06xx_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv06xx_start
_stv06xx_start:                         ; @stv06xx_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x19, #12]
	bl	_usb_ifnum_to_if
	ldr	w1, [x19, #8]
	bl	_usb_altnum_to_altsetting
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	x2, x0
Lloh0:
	adrp	x8, _STV_ISO_SIZE_L@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STV_ISO_SIZE_L@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv06xx_write_bridge
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
Lloh3:
	adrp	x20, l_.str.1@PAGE
Lloh4:
	add	x20, x20, l_.str.1@PAGEOFF
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _STV_ISO_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STV_ISO_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_stv06xx_write_bridge
	mov	x21, x0
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x20, x20, x8, lt
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	x21, x0
LBB0_6:
Lloh15:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_gspca_dbg
	cmp	w21, #0
	csel	w0, w21, wzr, lt
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't get altsetting\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_STV_ISO_SIZE_L,4,2             ; @STV_ISO_SIZE_L
	.comm	_STV_ISO_ENABLE,4,2             ; @STV_ISO_ENABLE
	.comm	_D_STREAM,4,2                   ; @D_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"Starting stream failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Started streaming\n"

	.no_dead_strip	_stv06xx_start
.subsections_via_symbols
