	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_video_decode_data
_uvc_video_decode_data:                 ## @uvc_video_decode_data
	.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
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movl	%ecx, %r12d
	movq	%rsi, %r14
	movl	4(%rsi), %r13d
	movl	8(%rsi), %eax
	subl	%eax, %r13d
	movslq	12(%rsi), %rbx
	addq	(%rdi), %rbx
	addq	%rax, %rbx
	movl	%ecx, %edi
	movl	%r13d, %esi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_min
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	addl	%r15d, 8(%r14)
	cmpl	%r12d, %r13d
	jae	LBB0_3
## %bb.2:
	movq	_UVC_TRACE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_uvc_trace
	movq	_UVC_BUF_STATE_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_3:
	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	"Frame complete (overflow).\n"

	.comm	_UVC_BUF_STATE_READY,4,2        ## @UVC_BUF_STATE_READY
	.no_dead_strip	_uvc_video_decode_data
.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_data
_uvc_video_decode_data:                 ; @uvc_video_decode_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w3, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	ldp	w8, w9, [x1, #4]
	sub	w22, w8, w9
	ldr	x8, [x0]
	ldrsw	x10, [x1, #12]
	add	x8, x8, x10
	add	x23, x8, x9
	mov	x0, x3
	mov	x1, x22
	bl	_min
	mov	x24, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	bl	_memcpy
	ldr	w8, [x19, #8]
	add	w8, w8, w24
	str	w8, [x19, #8]
	cmp	w22, w20
	b.hs	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _UVC_TRACE_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UVC_TRACE_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_uvc_trace
Lloh5:
	adrp	x8, _UVC_BUF_STATE_READY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UVC_BUF_STATE_READY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_TRACE_FRAME,4,2            ; @UVC_TRACE_FRAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Frame complete (overflow).\n"

	.comm	_UVC_BUF_STATE_READY,4,2        ; @UVC_BUF_STATE_READY
	.no_dead_strip	_uvc_video_decode_data
.subsections_via_symbols
