	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frame_copy_video
_frame_copy_video:                      ## @frame_copy_video
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	4(%rdi), %eax
	cmpl	4(%rsi), %eax
	jl	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %eax
	cmpl	(%rsi), %eax
	jge	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movl	8(%r14), %edi
	callq	_av_pix_fmt_count_planes
	testl	%eax, %eax
	jle	LBB0_5
## %bb.8:
	movq	16(%r14), %rcx
	movl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%rbx), %rsi
	cmpl	$0, (%rsi,%rdx,4)
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_10
	jmp	LBB0_6
LBB0_5:
	movq	16(%rbx), %rsi
LBB0_6:
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$32, %edx
	callq	_memcpy
	movq	16(%r14), %rdi
	movl	8(%r14), %r8d
	movl	12(%r14), %esi
	movl	12(%rbx), %ecx
	movl	(%rbx), %eax
	movl	4(%rbx), %r9d
	movl	%eax, (%rsp)
	movq	%r15, %rdx
	callq	_av_image_copy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.7:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_frame_copy_video
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frame_copy_video
_frame_copy_video:                      ; @frame_copy_video
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	w8, [x0, #4]
	ldr	w9, [x1, #4]
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	w9, [x1]
	cmp	w8, w9
	b.ge	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_4:
	ldr	w0, [x20, #8]
	bl	_av_pix_fmt_count_planes
	cmp	w0, #0
	b.le	LBB0_9
; %bb.5:
	mov	x8, #0
	ldr	x9, [x20, #16]
	mov	w10, w0
	lsl	x10, x10, #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x8]
	cbz	w11, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #16]
	ldr	w11, [x1, x8]
	cbz	w11, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #4
	cmp	x10, x8
	b.ne	LBB0_6
	b	LBB0_10
LBB0_9:
	ldr	x1, [x19, #16]
LBB0_10:
	add	x0, sp, #8
	mov	w2, #32
	bl	_memcpy
	ldr	x0, [x20, #16]
	ldr	w3, [x19, #12]
	ldp	w4, w1, [x20, #8]
	ldp	w6, w5, [x19]
	add	x2, sp, #8
	bl	_av_image_copy
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_frame_copy_video
.subsections_via_symbols
