	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_video_decode_bulk
_uvc_video_decode_bulk:                 ## @uvc_video_decode_bulk
	.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
	movslq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_22
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	%r12, (%rsi)
	cmpl	$0, 8(%rsi)
	jne	LBB0_12
## %bb.2:
	cmpl	$0, 12(%r13)
	jne	LBB0_12
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	32(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_EAGAIN@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, %r15d
	jne	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_uvc_video_decode_start
	movl	%eax, %r15d
	xorl	%eax, %eax
	subl	(%rbx), %eax
	cmpl	%eax, %r15d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_uvc_queue_next_buffer
	movq	%rax, %r14
	xorl	%eax, %eax
	subl	(%rbx), %eax
	jmp	LBB0_6
LBB0_7:
	testl	%r15d, %r15d
	js	LBB0_9
## %bb.8:
	testq	%r14, %r14
	je	LBB0_9
## %bb.10:
	movl	24(%r13), %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r15d, 8(%r13)
	movl	%r15d, %eax
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	subl	%r15d, %r12d
	jmp	LBB0_11
LBB0_9:
	movl	$1, 12(%r13)
LBB0_11:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	cmpl	$0, 12(%r13)
	jne	LBB0_15
## %bb.13:
	testq	%r14, %r14
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_uvc_video_decode_data
LBB0_15:
	movl	(%rbx), %eax
	cmpl	4(%rbx), %eax
	jl	LBB0_17
## %bb.16:
	movq	(%r13), %rax
	cmpq	16(%r13), %rax
	jl	LBB0_22
LBB0_17:
	cmpl	$0, 12(%r13)
	jne	LBB0_21
## %bb.18:
	testq	%r14, %r14
	je	LBB0_21
## %bb.19:
	movl	24(%r13), %edx
	movq	(%r13), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_uvc_video_decode_end
	movq	(%r14), %rax
	movq	_UVC_BUF_STATE_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	leaq	32(%r13), %rdi
	movq	%r14, %rsi
	callq	_uvc_queue_next_buffer
LBB0_21:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_UVC_BUF_STATE_READY,8,3        ## @UVC_BUF_STATE_READY
	.no_dead_strip	_uvc_video_decode_bulk
.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_bulk
_uvc_video_decode_bulk:                 ; @uvc_video_decode_bulk
	.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
	ldr	w22, [x0]
	cbz	w22, LBB0_20
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	sxtw	x8, w22
	ldr	x23, [x0, #8]
	ldr	x9, [x1]
	add	x8, x9, x8
	str	x8, [x1]
	ldr	w8, [x1, #8]
	cbnz	w8, LBB0_11
; %bb.2:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_11
; %bb.3:
	add	x25, x19, #32
Lloh0:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	neg	w8, w8
	cmp	w24, w8
	b.ne	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	bl	_uvc_video_decode_start
	mov	x24, x0
	ldr	w8, [x26]
	cmn	w0, w8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, x20
	bl	_uvc_queue_next_buffer
	mov	x20, x0
	ldr	w8, [x26]
	b	LBB0_4
LBB0_7:
	tbnz	w24, #31, LBB0_10
; %bb.8:
	cbz	x20, LBB0_10
; %bb.9:
	ldr	w0, [x19, #24]
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	str	w24, [x19, #8]
	add	x23, x23, w24, uxtw #2
	sub	w22, w22, w24
	b	LBB0_11
LBB0_10:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_11:
	ldr	w8, [x19, #12]
	cmp	w8, #0
	ccmp	x20, #0, #4, eq
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	bl	_uvc_video_decode_data
LBB0_13:
	ldp	w8, w9, [x21]
	cmp	w8, w9
	b.lt	LBB0_15
; %bb.14:
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.lt	LBB0_20
LBB0_15:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_19
; %bb.16:
	cbz	x20, LBB0_19
; %bb.17:
	ldr	w2, [x19, #24]
	ldr	x3, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_uvc_video_decode_end
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _UVC_BUF_STATE_READY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UVC_BUF_STATE_READY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	add	x0, x19, #32
	mov	x1, x20
	bl	_uvc_queue_next_buffer
LBB0_19:
	stp	xzr, xzr, [x19]
LBB0_20:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_UVC_BUF_STATE_READY,8,3        ; @UVC_BUF_STATE_READY
	.no_dead_strip	_uvc_video_decode_bulk
.subsections_via_symbols
