	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finalize_frame
_finalize_frame:                        ## @finalize_frame
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rdi
	movq	_AV_CODEC_FLAG_OUTPUT_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_3
## %bb.1:
	movq	_AV_CODEC_FLAG2_SHOW_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 32(%r15)
	je	LBB0_11
LBB0_3:
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	cmpl	$0, 8(%rdi)
	jne	LBB0_7
## %bb.4:
	movq	(%r15), %rax
	movq	(%rax), %rdx
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	cmpq	%r14, %rdx
	je	LBB0_6
## %bb.5:
	cmpq	%r14, 8(%rax)
	jne	LBB0_7
LBB0_6:
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	cmpq	%r14, %rdx
	setne	%r12b
	sete	%cl
	movq	24(%r15), %rbx
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	(%rbx), %rcx
	movq	24(%rbx), %rax
	movslq	(%rcx), %rdx
	imulq	%r12, %rdx
	shlq	$2, %rdx
	addq	(%rax), %rdx
	xorl	%r8d, %r8d
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	cmpq	%r14, %rcx
	movq	%rdx, -80(%rbp)
	movq	(%rbx), %rdx
	movslq	(%rdx), %rdx
	cmovneq	%r8, %rdx
	shlq	$2, %rdx
	addq	(%rax), %rdx
	movq	%rdx, -112(%rbp)
	movq	(%rbx), %r9
	movslq	4(%r9), %rsi
	imulq	%r12, %rsi
	shlq	$2, %rsi
	addq	8(%rax), %rsi
	cmpq	%r14, %rcx
	movq	%rcx, %rdx
	movq	%rsi, -72(%rbp)
	movq	(%rbx), %rsi
	movslq	4(%rsi), %rsi
	cmovneq	%r8, %rsi
	shlq	$2, %rsi
	addq	8(%rax), %rsi
	movq	%rsi, -104(%rbp)
	movq	(%rbx), %rsi
	movslq	8(%rsi), %rdi
	imulq	%r12, %rdi
	shlq	$2, %rdi
	addq	16(%rax), %rdi
	cmpq	%r14, %rcx
	movq	%rdi, -64(%rbp)
	movq	(%rbx), %rdi
	movslq	8(%rdi), %rdi
	cmovneq	%r8, %rdi
	shlq	$2, %rdi
	addq	16(%rax), %rdi
	movq	%rdi, -96(%rbp)
	movq	(%rbx), %rdi
	movslq	12(%rdi), %rcx
	imulq	%r12, %rcx
	movq	-128(%rbp), %r12                ## 8-byte Reload
	shlq	$2, %rcx
	addq	24(%rax), %rcx
	cmpq	%r14, %rdx
	movq	%rcx, -56(%rbp)
	movq	(%rbx), %rax
	movslq	12(%rax), %rax
	cmovneq	%r8, %rax
	movq	24(%rbx), %rcx
	shlq	$2, %rax
	addq	24(%rcx), %rax
	movq	%rax, -88(%rbp)
	movq	(%rbx), %rax
	movd	(%r9), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, 4(%rsi), %xmm0
	pinsrd	$2, 8(%rdi), %xmm0
	pinsrd	$3, 12(%rax), %xmm0
	paddd	%xmm0, %xmm0
	movdqa	%xmm0, -160(%rbp)
	movl	16(%rbx), %r8d
	movl	8(%rbx), %eax
	movl	12(%rbx), %r9d
	sarl	%eax
	subq	$8, %rsp
	leaq	-80(%rbp), %rdi
	leaq	-112(%rbp), %rdx
	leaq	-160(%rbp), %rcx
	movq	%rcx, %rsi
	pushq	%rax
	callq	_av_image_copy
	addq	$16, %rsp
LBB0_7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_output_frame
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	_CONFIG_MPEGVIDEO@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.9:
	movq	16(%r13), %rdi
	movl	16(%r15), %ecx
	movl	8(%r15), %r9d
	movl	12(%r15), %r8d
	movl	8(%r13), %r10d
	movl	(%r13), %eax
	movl	4(%r13), %r11d
	subq	$8, %rsp
	xorl	%ebx, %ebx
	movq	%r12, %rsi
	xorl	%edx, %edx
	pushq	$1
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	$0
	callq	_ff_print_debug_info2
	addq	$48, %rsp
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.13:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_FLAG_OUTPUT_CORRUPT,4,2 ## @AV_CODEC_FLAG_OUTPUT_CORRUPT
	.comm	_AV_CODEC_FLAG2_SHOW_ALL,4,2    ## @AV_CODEC_FLAG2_SHOW_ALL
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Duplicating field %d to fill missing\n"

	.comm	_CONFIG_MPEGVIDEO,8,3           ## @CONFIG_MPEGVIDEO
	.no_dead_strip	_finalize_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finalize_frame
_finalize_frame:                        ; @finalize_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x0, [x0, #16]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _AV_CODEC_FLAG_OUTPUT_CORRUPT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_FLAG_OUTPUT_CORRUPT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x0, #4]
Lloh6:
	adrp	x9, _AV_CODEC_FLAG2_SHOW_ALL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_CODEC_FLAG2_SHOW_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_10
LBB0_3:
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_7
; %bb.4:
	ldr	x8, [x21]
	ldr	x24, [x8]
Lloh9:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x25, [x9]
	cmp	x24, x25
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x8, #8]
	cmp	x8, x25
	b.ne	LBB0_7
LBB0_6:
	cmp	x24, x25
	cset	w3, eq
	ldr	x23, [x21, #24]
Lloh12:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	cmp	x24, x25
	cset	w8, ne
	ldr	x9, [x23, #24]
	ldr	x10, [x23]
	ldr	w10, [x10]
	mul	w10, w10, w8
	ldp	x11, x12, [x9]
	add	x10, x11, w10, sxtw #2
	str	x10, [sp, #72]
	ldr	x10, [x9]
	ldr	x11, [x23]
	ldrsw	x11, [x11]
	csel	x11, x11, xzr, eq
	add	x10, x10, x11, lsl #2
	str	x10, [sp, #24]
	ldr	x10, [x23]
	ldp	w11, w10, [x10]
	lsl	w11, w11, #1
	str	w11, [sp, #56]
	mul	w10, w10, w8
	add	x10, x12, w10, sxtw #2
	str	x10, [sp, #80]
	ldr	x10, [x23]
	ldrsw	x10, [x10, #4]
	csel	x10, x10, xzr, eq
	ldp	x11, x12, [x9, #8]
	add	x10, x11, x10, lsl #2
	str	x10, [sp, #32]
	ldr	x10, [x23]
	ldp	w11, w10, [x10, #4]
	lsl	w11, w11, #1
	str	w11, [sp, #60]
	mul	w10, w10, w8
	add	x10, x12, w10, sxtw #2
	str	x10, [sp, #88]
	ldr	x10, [x23]
	ldrsw	x10, [x10, #8]
	csel	x10, x10, xzr, eq
	ldp	x11, x9, [x9, #16]
	add	x10, x11, x10, lsl #2
	str	x10, [sp, #40]
	ldr	x10, [x23]
	ldp	w11, w10, [x10, #8]
	lsl	w11, w11, #1
	str	w11, [sp, #64]
	mul	w8, w10, w8
	add	x8, x9, w8, sxtw #2
	str	x8, [sp, #96]
	ldr	x8, [x23, #24]
	ldr	x8, [x8, #24]
	ldr	x9, [x23]
	ldrsw	x9, [x9, #12]
	csel	x9, x9, xzr, eq
	add	x8, x8, x9, lsl #2
	str	x8, [sp, #48]
	ldr	x8, [x23]
	ldr	w8, [x8, #12]
	lsl	w8, w8, #1
	str	w8, [sp, #68]
	ldp	w5, w4, [x23, #12]
	ldr	w8, [x23, #8]
	asr	w6, w8, #1
	add	x0, sp, #72
	add	x1, sp, #56
	add	x2, sp, #24
	add	x3, sp, #56
	bl	_av_image_copy
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_output_frame
	tbnz	w0, #31, LBB0_11
; %bb.8:
	mov	w8, #1
	str	w8, [x22]
Lloh17:
	adrp	x9, _CONFIG_MPEGVIDEO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CONFIG_MPEGVIDEO@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cbz	x9, LBB0_10
; %bb.9:
	ldr	x0, [x20, #16]
	ldp	w4, w3, [x21, #12]
	ldr	w5, [x21, #8]
	ldp	w9, w7, [x20, #4]
	ldr	w10, [x20]
	stp	w10, w8, [sp, #4]
	str	w9, [sp]
	mov	x1, x19
	mov	x2, #0
	mov	x6, #0
	bl	_ff_print_debug_info2
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_FLAG_OUTPUT_CORRUPT,4,2 ; @AV_CODEC_FLAG_OUTPUT_CORRUPT
	.comm	_AV_CODEC_FLAG2_SHOW_ALL,4,2    ; @AV_CODEC_FLAG2_SHOW_ALL
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Duplicating field %d to fill missing\n"

	.comm	_CONFIG_MPEGVIDEO,8,3           ; @CONFIG_MPEGVIDEO
	.no_dead_strip	_finalize_frame
.subsections_via_symbols
