	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl860_RTx                      ## -- Begin function gl860_RTx
	.p2align	4, 0x90
_gl860_RTx:                             ## @gl860_RTx
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r12d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	16(%rbp), %rsi
	movq	8(%rdi), %rbx
	cmpb	$64, %r14b
	jne	LBB0_4
## %bb.1:
	testl	%r13d, %r13d
	jle	LBB0_3
## %bb.2:
	movq	(%r15), %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	cmpl	$1, %r13d
	movl	$400, %ecx                      ## imm = 0x190
	movl	$600, %r10d                     ## imm = 0x258
	cmovel	%ecx, %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$64, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %ebx
	movl	%r12d, %r9d
	pushq	%r10
	pushq	%r13
	pushq	(%r15)
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	testl	%r13d, %r13d
	jle	LBB0_6
## %bb.5:
	cmpl	$1, %r13d
	movl	$400, %ecx                      ## imm = 0x190
	movl	$600, %r10d                     ## imm = 0x258
	cmovel	%ecx, %r10d
	subq	$8, %rsp
	movzbl	%r14b, %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %ebx
	movl	%r12d, %r9d
	pushq	%r10
	pushq	%r13
	pushq	(%r15)
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r12d
	movq	(%r15), %rsi
	movq	16(%rbp), %rdi
	movl	%r13d, %edx
	callq	_memcpy
	testl	%r12d, %r12d
	jns	LBB0_11
LBB0_10:
	subq	$8, %rsp
	movzbl	%r14b, %edx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%r13
	callq	_pr_err
	addq	$16, %rsp
	jmp	LBB0_14
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$64, %ecx
	jmp	LBB0_7
LBB0_6:
	subq	$8, %rsp
	movzbl	%r14b, %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_7:
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %ebx
	movl	%r12d, %r9d
	pushq	$400                            ## imm = 0x190
	pushq	%r13
	pushq	$0
LBB0_8:
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r12d
	testl	%r12d, %r12d
	js	LBB0_10
LBB0_11:
	cmpl	$2, %r13d
	jl	LBB0_14
## %bb.12:
	cmpl	%r13d, %r12d
	jge	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_gspca_err
LBB0_14:
	movl	$1, %edi
	callq	_msleep
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ctrl transfer failed %4d [p%02x r%d v%04x i%04x len%d]\n"

L_.str.1:                               ## @.str.1
	.asciz	"short ctrl transfer %d/%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl860_RTx                      ; -- Begin function gl860_RTx
	.p2align	2
_gl860_RTx:                             ; @gl860_RTx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x26, x6
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	ldr	x25, [x0, #8]
	cmp	w1, #64
	b.ne	LBB0_3
; %bb.1:
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	x0, [x21]
	mov	x1, x26
	mov	x2, x19
	bl	_memcpy
	mov	x0, x25
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	x6, [x21]
	mov	w8, #600
	mov	w9, #400
	cmp	w19, #1
	csel	w8, w9, w8, eq
	str	w8, [sp]
	mov	x0, x25
	mov	x2, x23
	mov	w3, #64
	mov	x4, x22
	mov	x5, x20
	b	LBB0_9
LBB0_3:
	mov	x0, x25
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	x6, [x21]
	mov	w8, #600
	mov	w9, #400
	csel	w8, w9, w8, eq
	str	w8, [sp]
	mov	x0, x25
	mov	x2, x23
	mov	x3, x24
	mov	x4, x22
	mov	x5, x20
	mov	x7, x19
	bl	_usb_control_msg
	mov	x25, x0
	ldr	x1, [x21]
	mov	x0, x26
	mov	x2, x19
	bl	_memcpy
	tbz	w25, #31, LBB0_10
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x20
	mov	x6, x19
	bl	_pr_err
	b	LBB0_13
LBB0_6:
	mov	x0, x25
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	mov	w8, #400
	str	w8, [sp]
	mov	x0, x25
	mov	x2, x23
	mov	w3, #64
	b	LBB0_8
LBB0_7:
	mov	w8, #400
	str	w8, [sp]
	mov	x0, x25
	mov	x2, x23
	mov	x3, x24
LBB0_8:
	mov	x4, x22
	mov	x5, x20
	mov	x6, #0
LBB0_9:
	mov	x7, x19
	bl	_usb_control_msg
	mov	x25, x0
	tbnz	w25, #31, LBB0_5
LBB0_10:
	cmp	w19, #2
	b.lt	LBB0_13
; %bb.11:
	cmp	w25, w19
	b.ge	LBB0_13
; %bb.12:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x25
	mov	x3, x19
	bl	_gspca_err
LBB0_13:
	mov	w0, #1
	bl	_msleep
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctrl transfer failed %4d [p%02x r%d v%04x i%04x len%d]\n"

l_.str.1:                               ; @.str.1
	.asciz	"short ctrl transfer %d/%d\n"

.subsections_via_symbols
