	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_read_frame_flush            ## -- Begin function ff_read_frame_flush
	.p2align	4, 0x90
_ff_read_frame_flush:                   ## @ff_read_frame_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	%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
	movq	%rdi, %r14
	callq	_flush_packet_queue
	cmpl	$0, (%r14)
	jle	LBB0_26
## %bb.1:
	xorl	%r15d, %r15d
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rbx
	movq	_MAX_REORDER_DELAY@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 16(%r12)
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_26
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	movq	24(%r14), %rax
	movq	(%rax,%r15,8), %r12
	movq	64(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_av_parser_close
	movq	$0, 64(%r12)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdx
	movq	%rdx, 56(%r12)
	movq	%rdx, 48(%r12)
	movq	%rdx, %rax
	cmpq	%rdx, (%r12)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RELATIVE_TS_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 40(%r12)
	movl	16(%r14), %eax
	movl	%eax, 32(%r12)
	movl	(%r13), %eax
	testl	%eax, %eax
	js	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rcx
	movq	%rdx, (%rcx)
	testq	%rax, %rax
	je	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	leaq	-1(%rax), %r9
	movl	$1, %edx
	cmpq	$4, %r9
	jb	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rbx, %rcx
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rcx,%rax,8), %rsi
	cmpq	%rbx, %rsi
	ja	LBB0_19
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r9, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, %rsi
	andq	$-2, %rsi
	movq	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, 8(%rcx,%rdi,8)
	movdqu	%xmm0, 24(%rcx,%rdi,8)
	movdqu	%xmm0, 40(%rcx,%rdi,8)
	movdqu	%xmm0, 56(%rcx,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r8b
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	shlq	$3, %rdi
	movq	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	orq	$8, %rdi
	movdqu	%xmm0, (%rcx,%rdi)
	movdqu	%xmm0, 16(%rcx,%rdi)
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, %r9
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	orq	$1, %rdx
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	subl	%edx, %edi
	movq	%rdx, %r8
	notq	%r8
	addq	%rax, %r8
	andq	$3, %rdi
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	incq	%rdx
	decq	%rdi
	jne	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, %r8
	jb	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	movq	(%rbx), %rsi
	movq	%rsi, 8(%rcx,%rdx,8)
	movq	(%rbx), %rsi
	movq	%rsi, 16(%rcx,%rdx,8)
	movq	(%rbx), %rsi
	movq	%rsi, 24(%rcx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_22
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 8(%r12)
	jmp	LBB0_25
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_16
	jmp	LBB0_17
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_RELATIVE_TS_BASE,8,3           ## @RELATIVE_TS_BASE
	.comm	_MAX_REORDER_DELAY,4,2          ## @MAX_REORDER_DELAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_read_frame_flush            ; -- Begin function ff_read_frame_flush
	.p2align	2
_ff_read_frame_flush:                   ; @ff_read_frame_flush
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x19, x0
	bl	_flush_packet_queue
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x21, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _RELATIVE_TS_BASE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RELATIVE_TS_BASE@GOTPAGEOFF]
	mov	w23, #1
Lloh4:
	adrp	x24, _MAX_REORDER_DELAY@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MAX_REORDER_DELAY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x25, #16]
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_17
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x8, [x19, #24]
	ldr	x25, [x8, x20, lsl #3]
	ldr	x0, [x25, #64]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_av_parser_close
	str	xzr, [x25, #64]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21]
	stp	x9, x9, [x25, #48]
	ldr	x8, [x25]
	ldr	x10, [x22]
	cmp	x8, x9
	csel	x8, x10, x9, eq
	str	x8, [x25, #40]
	ldr	w8, [x19, #16]
	str	w8, [x25, #32]
	ldr	w10, [x24]
	tbnz	w10, #31, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #24]
	str	x9, [x8]
	cbz	w10, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x10, #1
	sub	x11, x9, #1
	cmp	x11, #8
	b.lo	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x8, x9, lsl #3
	cmp	x8, x21
	ccmp	x10, x21, #0, lo
	b.hi	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x12, x11, #0xfffffffffffffff8
	orr	x10, x12, #0x1
	ld1r.2d	{ v0 }, [x21]
	add	x13, x8, #40
	mov	x14, x12
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d1, [x21]
	dup.2d	v1, v1[0]
	stp	q0, q0, [x13, #-32]
	stp	q0, q1, [x13], #64
	subs	x14, x14, #8
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x11, x12
	b.ne	LBB0_13
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #1
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x9, x9, x10
	add	x8, x8, x10, lsl #3
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x21]
	str	x10, [x8], #8
	subs	x9, x9, #1
	b.ne	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w23, [x25, #8]
	b	LBB0_2
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_RELATIVE_TS_BASE,8,3           ; @RELATIVE_TS_BASE
	.comm	_MAX_REORDER_DELAY,4,2          ; @MAX_REORDER_DELAY
.subsections_via_symbols
