	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_frame
_fill_frame:                            ## @fill_frame
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	24(%rsi), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	je	LBB0_14
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_gspca_err
	movl	$0, 24(%r15)
	jmp	LBB0_12
LBB0_3:
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.4:
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$8, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_D_PACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_gspca_dbg
	movq	_DISCARD_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$12, %r13
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	-8(%rax,%r13), %r12d
	movl	-4(%rax,%r13), %r9d
	testl	%r9d, %r9d
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_D_PACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax,%r13), %r8d
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %ecx
	movl	%r12d, %r9d
	callq	_gspca_dbg
	movq	8(%r15), %rax
	movslq	(%rax,%r13), %rsi
	shlq	$2, %rsi
	addq	16(%r15), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, (%r14)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, (%r14)
	jmp	LBB0_11
LBB0_12:
	cmpl	$0, 4(%r14)
	je	LBB0_14
## %bb.13:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	js	LBB0_15
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"urb status: %d\n"

	.comm	_D_PACK,4,2                     ## @D_PACK
L_.str.1:                               ## @.str.1
	.asciz	"ISOC data error: [%d] len=%d, status=%d\n"

	.comm	_DISCARD_PACKET,4,2             ## @DISCARD_PACKET
L_.str.2:                               ## @.str.2
	.asciz	"packet [%d] o:%d l:%d\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.3:                               ## @.str.3
	.asciz	"usb_submit_urb() ret %d\n"

	.no_dead_strip	_fill_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_frame
_fill_frame:                            ; @fill_frame
	.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, x1
	mov	x20, x0
	ldr	w2, [x1, #24]
	cbz	w2, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ESHUTDOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w2, w8
	b.eq	LBB0_14
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_gspca_err
	str	wzr, [x19, #24]
	b	LBB0_12
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x25, #0
	mov	x21, #0
	ldr	x8, [x20, #16]
	ldr	x26, [x8]
Lloh5:
	adrp	x28, _D_PACK@GOTPAGE
Lloh6:
	ldr	x28, [x28, _D_PACK@GOTPAGEOFF]
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh9:
	adrp	x23, l_.str.1@PAGE
Lloh10:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh11:
	adrp	x27, _DISCARD_PACKET@GOTPAGE
Lloh12:
	ldr	x27, [x27, _DISCARD_PACKET@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x28]
	mov	x0, x20
	mov	x2, x23
	mov	x3, x21
	mov	x4, x24
	bl	_gspca_dbg
	ldr	w8, [x27]
	str	w8, [x20, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x25, x25, #12
	cmp	x21, x8
	b.ge	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x9, x8, x25
	ldp	w24, w5, [x9]
	cbnz	w5, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w24, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x28]
	add	x8, x8, x25
	ldr	w4, [x8, #8]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	mov	x5, x24
	bl	_gspca_dbg
	ldp	x9, x8, [x19, #8]
	add	x9, x9, x25
	ldrsw	x9, [x9, #8]
	add	x1, x8, x9, lsl #2
	mov	x0, x20
	mov	x2, x24
	blr	x26
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
	cbnz	w8, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_6
LBB0_12:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_14
; %bb.13:
Lloh13:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_submit_urb
	tbnz	w0, #31, LBB0_15
LBB0_14:
	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
LBB0_15:
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	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
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"urb status: %d\n"

	.comm	_D_PACK,4,2                     ; @D_PACK
l_.str.1:                               ; @.str.1
	.asciz	"ISOC data error: [%d] len=%d, status=%d\n"

	.comm	_DISCARD_PACKET,4,2             ; @DISCARD_PACKET
l_.str.2:                               ; @.str.2
	.asciz	"packet [%d] o:%d l:%d\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.3:                               ; @.str.3
	.asciz	"usb_submit_urb() ret %d\n"

	.no_dead_strip	_fill_frame
.subsections_via_symbols
