	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finish_frame
_finish_frame:                          ## @finish_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	leaq	48(%rbx), %rdi
	callq	_ff_er_frame_end
	movq	%rbx, %rdi
	callq	_ff_mpv_frame_end
	movq	$0, 40(%rbx)
	movq	_HAVE_THREADS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	32(%rbx), %rax
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ff_thread_report_progress
LBB0_3:
	movq	(%rbx), %rax
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	cmpq	$0, 24(%rbx)
	je	LBB0_7
LBB0_5:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	leaq	16(%rbx), %r15
LBB0_11:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ff_print_debug_info
	movq	(%r15), %rdx
	movq	_FF_QSCALE_TYPE_MPEG1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ff_mpv_export_qp_table
	movl	$1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	leaq	8(%rbx), %r15
	jmp	LBB0_11
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_HAVE_THREADS,8,3               ## @HAVE_THREADS
	.comm	_FF_THREAD_FRAME,4,2            ## @FF_THREAD_FRAME
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
	.comm	_FF_QSCALE_TYPE_MPEG1,4,2       ## @FF_QSCALE_TYPE_MPEG1
	.no_dead_strip	_finish_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finish_frame
_finish_frame:                          ; @finish_frame
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x20, [x0]
	add	x0, x20, #48
	bl	_ff_er_frame_end
	mov	x0, x20
	bl	_ff_mpv_frame_end
	str	xzr, [x20, #40]
Lloh0:
	adrp	x8, _HAVE_THREADS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HAVE_THREADS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FF_THREAD_FRAME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FF_THREAD_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
	add	x0, x8, #4
Lloh6:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ff_thread_report_progress
LBB0_3:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
LBB0_5:
	mov	x21, x20
	ldr	x8, [x21, #16]!
LBB0_6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	x1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_ff_print_debug_info
	ldr	x2, [x21]
Lloh12:
	adrp	x8, _FF_QSCALE_TYPE_MPEG1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FF_QSCALE_TYPE_MPEG1@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_ff_mpv_export_qp_table
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x21, x20
	ldr	x8, [x21, #8]!
	cbnz	x8, LBB0_6
; %bb.10:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HAVE_THREADS,8,3               ; @HAVE_THREADS
	.comm	_FF_THREAD_FRAME,4,2            ; @FF_THREAD_FRAME
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
	.comm	_FF_QSCALE_TYPE_MPEG1,4,2       ; @FF_QSCALE_TYPE_MPEG1
	.no_dead_strip	_finish_frame
.subsections_via_symbols
