	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_video_decode_isoc
_uvc_video_decode_isoc:                 ## @uvc_video_decode_isoc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_20
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%r13d, %r13d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%r12), %rax
	leaq	(,%r13,2), %r14
	addq	%r13, %r14
	movq	(%rax,%r14,8), %rdx
	testq	%rdx, %rdx
	js	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movslq	8(%rax,%r14,8), %r15
	shlq	$2, %r15
	addq	16(%r12), %r15
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rax,%r14,8), %rcx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_uvc_video_decode_start
	movl	%eax, %r12d
	xorl	%eax, %eax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cmpl	%eax, %r12d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_uvc_queue_next_buffer
	movq	%rax, %rbx
	xorl	%eax, %eax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	cmpl	%eax, %r12d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	js	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %eax
	movq	%r15, %r13
	leaq	(%r15,%rax,4), %rdx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	(,%rsi,8), %rsi
	leaq	(%rsi,%rsi,2), %r14
	movq	16(%rcx,%r14), %rcx
	subq	%rax, %rcx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_uvc_video_decode_data
	movq	8(%r12), %rax
	movq	16(%rax,%r14), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_uvc_video_decode_end
	movq	8(%rbx), %rax
	movq	_UVC_BUF_STATE_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	cmpq	24(%rbx), %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	_UVC_FMT_FLAG_COMPRESSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_uvc_queue_next_buffer
	movq	%rax, %rbx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_UVC_TRACE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_uvc_trace
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rbx)
	jmp	LBB0_19
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_TRACE_FRAME,4,2            ## @UVC_TRACE_FRAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB isochronous frame lost (%d).\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_UVC_BUF_STATE_READY,8,3        ## @UVC_BUF_STATE_READY
	.comm	_UVC_FMT_FLAG_COMPRESSED,4,2    ## @UVC_FMT_FLAG_COMPRESSED
	.no_dead_strip	_uvc_video_decode_isoc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_video_decode_isoc
_uvc_video_decode_isoc:                 ; @uvc_video_decode_isoc
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x25, #0
	mov	w26, #24
Lloh0:
	adrp	x28, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x28, [x28, _EAGAIN@GOTPAGEOFF]
Lloh2:
	adrp	x27, _UVC_BUF_STATE_READY@GOTPAGE
Lloh3:
	ldr	x27, [x27, _UVC_BUF_STATE_READY@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_uvc_queue_next_buffer
	mov	x21, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x20]
	cmp	x25, x8
	b.ge	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x20, #8]
	mul	x9, x25, x26
	ldr	x2, [x8, x9]
	tbnz	x2, #63, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20, #16]
	madd	x10, x25, x26, x8
	ldrsw	x10, [x10, #8]
	add	x23, x9, x10, lsl #2
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	x8, x25, x26, x8
	ldr	x3, [x8, #16]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_uvc_video_decode_start
	mov	x24, x0
	ldr	w8, [x28]
	cmn	w0, w8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	mov	x1, x21
	bl	_uvc_queue_next_buffer
	mov	x21, x0
	ldr	w8, [x28]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	neg	w8, w8
	cmp	w24, w8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x20, #8]
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w24, #31, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, w24
	add	x2, x23, w24, uxtw #2
	ldr	x9, [x20, #8]
	add	x10, x25, x25, lsl #1
	lsl	x24, x10, #3
	add	x9, x9, x24
	ldr	x9, [x9, #16]
	sub	x3, x9, x8
	mov	x0, x19
	mov	x1, x21
	bl	_uvc_video_decode_data
	ldr	x8, [x20, #8]
	add	x8, x8, x24
	ldr	x3, [x8, #16]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_uvc_video_decode_end
	ldr	x8, [x21, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [x21, #16]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _UVC_FMT_FLAG_COMPRESSED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UVC_FMT_FLAG_COMPRESSED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _UVC_TRACE_FRAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UVC_TRACE_FRAME@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_uvc_trace
	cbz	x21, LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_3
LBB0_17:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_TRACE_FRAME,4,2            ; @UVC_TRACE_FRAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB isochronous frame lost (%d).\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_UVC_BUF_STATE_READY,8,3        ; @UVC_BUF_STATE_READY
	.comm	_UVC_FMT_FLAG_COMPRESSED,4,2    ; @UVC_FMT_FLAG_COMPRESSED
	.no_dead_strip	_uvc_video_decode_isoc
.subsections_via_symbols
