	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv06xx_isoc_nego
_stv06xx_isoc_nego:                     ## @stv06xx_isoc_nego
	.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, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	(%r14), %rcx
	movq	(%rcx), %rdx
	movl	(%rdx,%rcx,4), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_1
## %bb.2:
	addl	$-100, %eax
	cmpl	%ecx, %eax
	cmovlel	%ecx, %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	16(%r14), %rdi
	movl	8(%r14), %esi
	movl	$1, %edx
	callq	_usb_set_interface
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_gspca_err
	jmp	LBB0_4
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set alt 1 err %d\n"

	.no_dead_strip	_stv06xx_isoc_nego
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv06xx_isoc_nego
_stv06xx_isoc_nego:                     ; @stv06xx_isoc_nego
	.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	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w0, w8
	b.le	LBB0_3
; %bb.1:
	sub	w9, w0, #100
	cmp	w9, w8
	csel	w0, w9, w8, gt
	bl	_cpu_to_le16
	ldr	x8, [x20, #8]
	str	w0, [x8]
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #8]
	mov	w2, #1
	bl	_usb_set_interface
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_gspca_err
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set alt 1 err %d\n"

	.no_dead_strip	_stv06xx_isoc_nego
.subsections_via_symbols
