	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_w_var
_reg_w_var:                             ## @reg_w_var
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_reg_w_page
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r13, %rax
	addq	$8, %r13
	movl	4(%rax), %ebx
	cmpq	$128, %rbx
	je	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %ebx
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_USB_BUF_SZ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jg	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %r14d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	cmpl	$7, %ebx
	jbe	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	$8, %ecx
	callq	_reg_w_buf
	addq	$32, %r13
	addl	$8, %r14d
	addq	$-8, %rbx
	testl	%ebx, %ebx
	jne	LBB0_6
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_reg_w_buf
	leaq	(%r13,%rbx,4), %r13
	jmp	LBB0_1
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gspca_err                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_BUF_SZ,4,2                 ## @USB_BUF_SZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incorrect variable sequence\n"

	.no_dead_strip	_reg_w_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_w_var
_reg_w_var:                             ; @reg_w_var
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _USB_BUF_SZ@GOTPAGE
Lloh1:
	ldr	x25, [x25, _USB_BUF_SZ@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_reg_w_page
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x8, x22
	add	x22, x22, #8
	ldr	w23, [x8, #4]
	cmp	w23, #128
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #129
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x25]
	cmp	w23, w9
	b.gt	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w24, [x8]
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	cmp	w23, #7
	b.ls	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x1, x24
	mov	x2, x22
	mov	w3, #8
	bl	_reg_w_buf
	add	x22, x22, #32
	add	w24, w24, #8
	sub	x23, x23, #8
	cbnz	w23, LBB0_7
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	bl	_reg_w_buf
	add	x22, x22, x23, lsl #2
	b	LBB0_2
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_gspca_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_BUF_SZ,4,2                 ; @USB_BUF_SZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incorrect variable sequence\n"

	.no_dead_strip	_reg_w_var
.subsections_via_symbols
