	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg_flush                  ## -- Begin function ff_mpeg_flush
	.p2align	4, 0x90
_ff_mpeg_flush:                         ## @ff_mpeg_flush
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	movq	120(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	movq	_MAX_PICTURE_COUNT@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.3:
	movl	92(%r15), %edi
	callq	_ff_mpeg_unref_picture
	cmpl	$2, (%r14)
	jl	LBB0_6
## %bb.4:
	movl	$1, %r12d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	92(%r15), %edi
	movq	120(%r15), %rsi
	addq	%rbx, %rsi
	callq	_ff_mpeg_unref_picture
	incq	%r12
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_5
LBB0_6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 104(%r15)
	movl	92(%r15), %edi
	leaq	100(%r15), %rsi
	callq	_ff_mpeg_unref_picture
	movl	92(%r15), %edi
	leaq	96(%r15), %rsi
	callq	_ff_mpeg_unref_picture
	movl	92(%r15), %edi
	leaq	88(%r15), %rsi
	callq	_ff_mpeg_unref_picture
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r15)
	movq	$0, 80(%r15)
	movl	$-1, 16(%r15)
	movups	%xmm0, (%r15)
	movups	%xmm0, 24(%r15)
	movups	%xmm0, 40(%r15)
	movq	$0, 56(%r15)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PICTURE_COUNT,4,2          ## @MAX_PICTURE_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg_flush                  ; -- Begin function ff_mpeg_flush
	.p2align	2
_ff_mpeg_flush:                         ; @ff_mpeg_flush
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_7
; %bb.1:
	ldr	x1, [x19, #120]
	cbz	x1, LBB0_7
; %bb.2:
Lloh0:
	adrp	x20, _MAX_PICTURE_COUNT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_PICTURE_COUNT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	w0, [x19, #92]
	bl	_ff_mpeg_unref_picture
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.4:
	mov	w21, #1
	mov	w22, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #120]
	ldr	w0, [x19, #92]
	add	x1, x8, x22
	bl	_ff_mpeg_unref_picture
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #4
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	stp	xzr, xzr, [x19, #104]
	add	x1, x19, #100
	ldr	w0, [x19, #92]
	bl	_ff_mpeg_unref_picture
	ldr	w0, [x19, #92]
	add	x1, x19, #96
	bl	_ff_mpeg_unref_picture
	ldr	w0, [x19, #92]
	add	x1, x19, #88
	bl	_ff_mpeg_unref_picture
	stp	xzr, xzr, [x19, #72]
	mov	w8, #-1
	str	w8, [x19, #16]
	stp	xzr, xzr, [x19]
	stp	xzr, xzr, [x19, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
	stur	q0, [x19, #40]
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PICTURE_COUNT,4,2          ; @MAX_PICTURE_COUNT
.subsections_via_symbols
