	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_reqs
_reg_reqs:                              ## @reg_reqs
	.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
	movq	%rdi, %r14
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movl	%edx, %r15d
	xorl	%r12d, %r12d
	movq	_USB_DIR_IN@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_gspca_err
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	addq	$20, %rbx
	cmpq	%r12, %r15
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	js	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edx
	movl	12(%rbx), %ecx
	movl	8(%rbx), %r8d
	movl	(%rbx), %esi
	movl	4(%rbx), %r9d
	movq	%r14, %rdi
	callq	_reg_rw
	cmpq	$0, (%r14)
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %r8d
	movl	8(%r14), %r9d
	cmpl	$4, %r8d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmovgeq	%rcx, %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %ecx
	callq	_gspca_dbg
	jmp	LBB0_7
LBB0_8:
	movl	(%r14), %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	"usb error request no: %d / %d\n"

	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_D_STREAM,4,2                   ## @D_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"USB IN (%d) returned[%d] %3ph %s"

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

L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.no_dead_strip	_reg_reqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_reqs
_reg_reqs:                              ; @reg_reqs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, #0
	mov	w21, w2
	add	x24, x1, #8
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x25, _USB_DIR_IN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _USB_DIR_IN@GOTPAGEOFF]
Lloh4:
	adrp	x26, _D_STREAM@GOTPAGE
Lloh5:
	ldr	x26, [x26, _D_STREAM@GOTPAGEOFF]
Lloh6:
	adrp	x27, l_.str.3@PAGE
Lloh7:
	add	x27, x27, l_.str.3@PAGEOFF
Lloh8:
	adrp	x28, l_.str.2@PAGE
Lloh9:
	add	x28, x28, l_.str.2@PAGEOFF
Lloh10:
	adrp	x23, l_.str.1@PAGE
Lloh11:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_gspca_err
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	add	x24, x24, #20
	cmp	x21, x20
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w3, w2, [x24, #4]
	ldp	w5, w4, [x24, #-4]
	ldur	w1, [x24, #-8]
	mov	x0, x19
	bl	_reg_rw
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w8, [x24, #-8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	ldur	w4, [x24, #-4]
	ldr	w5, [x19, #8]
	cmp	w4, #3
	csel	x6, x28, x27, gt
	mov	x0, x19
	mov	x2, x23
	mov	x3, x20
	bl	_gspca_dbg
	b	LBB0_3
LBB0_8:
	ldr	w0, [x19]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb error request no: %d / %d\n"

	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_D_STREAM,4,2                   ; @D_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"USB IN (%d) returned[%d] %3ph %s"

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

l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.no_dead_strip	_reg_reqs
.subsections_via_symbols
