	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_video_decode_isight        ## -- Begin function uvc_video_decode_isight
	.p2align	4, 0x90
_uvc_video_decode_isight:               ## @uvc_video_decode_isight
	.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	8(%rdi), %r13
	cmpl	$0, (%r13)
	jle	LBB0_11
## %bb.1:
	movq	%rsi, %r12
	movq	(%rdi), %r14
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movslq	(%r13), %rax
	cmpq	%rax, %rcx
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	8(%r13), %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %r15
	movq	(%rax,%r15,8), %rdx
	testq	%rdx, %rdx
	jns	LBB0_4
## %bb.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
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_uvc_queue_next_buffer
	movq	%rax, %r12
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	jne	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rax
	movq	16(%rax,%r15,8), %rdx
	addq	16(%r13), %rdx
	movl	8(%rax,%r15,8), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_isight_decode
	testq	%r12, %r12
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	_UVC_BUF_STATE_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_UVC_BUF_STATE_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_11:
	addq	$8, %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	_UVC_BUF_STATE_DONE,8,3         ## @UVC_BUF_STATE_DONE
	.comm	_UVC_BUF_STATE_ERROR,8,3        ## @UVC_BUF_STATE_ERROR
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_video_decode_isight        ; -- Begin function uvc_video_decode_isight
	.p2align	2
_uvc_video_decode_isight:               ; @uvc_video_decode_isight
	.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	x23, [x0, #8]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x24, #0
	ldr	x20, [x0]
	mov	w25, #24
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x27, _UVC_BUF_STATE_DONE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _UVC_BUF_STATE_DONE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _UVC_BUF_STATE_ERROR@GOTPAGE
Lloh5:
	ldr	x28, [x28, _UVC_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh6:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x23, #8]
	mul	x9, x24, x25
	ldr	x2, [x8, x9]
	tbz	x2, #63, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x8, _UVC_TRACE_FRAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UVC_TRACE_FRAME@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_uvc_trace
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x26]
	cmn	w22, w8
	b.ne	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [x23, #8]
	madd	x9, x24, x25, x9
	ldr	x10, [x9, #16]
	add	x2, x10, x8
	ldr	w3, [x9, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_isight_decode
	cbz	x19, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	mov	x1, x19
	bl	_uvc_queue_next_buffer
	mov	x19, x0
	b	LBB0_5
LBB0_9:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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	_UVC_BUF_STATE_DONE,8,3         ; @UVC_BUF_STATE_DONE
	.comm	_UVC_BUF_STATE_ERROR,8,3        ; @UVC_BUF_STATE_ERROR
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
