	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function return_stored_frame
_return_stored_frame:                   ## @return_stored_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	40(%rsi), %r12
	cmpl	$0, 8(%rsi)
	je	LBB0_3
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	36(%rbx), %eax
	movl	%eax, (%r8)
	movl	32(%rbx), %r9d
	movq	16(%rbx), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_store_packet
	movq	$0, 16(%rbx)
	jmp	LBB0_17
LBB0_3:
	leaq	(%rax,%rax,2), %r13
	movq	(%r12,%r13,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	8(%r12,%r13,8), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_7
## %bb.8:
	movq	16(%r12,%r13,8), %rax
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_frame_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_7
## %bb.9:
	leaq	(%r12,%r13,8), %r13
	movq	_frame_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r13), %rcx
	movq	8(%r13), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movslq	(%rax,%rcx,4), %r12
	addq	%r12, %rdx
	cmpq	(%r13), %rdx
	jbe	LBB0_10
LBB0_7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_4:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_17
## %bb.5:
	movq	8(%r14), %rax
	movq	$0, (%rax)
LBB0_12:
	movl	(%r15), %eax
	movl	%eax, (%r14)
	movq	(%rbx), %rax
	cmpq	24(%rbx), %rax
	jne	LBB0_15
## %bb.13:
	movq	$0, (%rbx)
	cmpl	$0, 8(%rbx)
	je	LBB0_16
## %bb.14:
	xorl	%eax, %eax
	cmpq	$0, 16(%rbx)
	setg	%al
	jmp	LBB0_17
LBB0_15:
	incq	%rax
	movq	%rax, (%rbx)
LBB0_16:
	movl	$1, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:
	movq	8(%r14), %rdi
	movq	8(%r13), %rsi
	shlq	$3, %rsi
	addq	16(%r13), %rsi
	movl	%r12d, %edx
	callq	_memcpy
	addq	8(%r13), %r12
	movq	%r12, 8(%r13)
	xorl	%eax, %eax
	cmpq	(%r13), %r12
	setae	%al
	movl	%eax, 8(%rbx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_frame_sizes,8,3                ## @frame_sizes
	.no_dead_strip	_return_stored_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function return_stored_frame
_return_stored_frame:                   ; @return_stored_frame
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	ldr	x8, [x1]
	ldr	w9, [x1, #8]
	cmp	w9, #0
	ccmp	x8, #0, #0, ne
	b.eq	LBB0_6
; %bb.1:
	ldr	x9, [x19, #40]
	mov	w10, #24
	madd	x23, x8, x10, x9
	ldr	x11, [x23]
	cbz	x11, LBB0_8
; %bb.2:
	mov	w10, #24
	madd	x24, x8, x10, x9
	ldr	x10, [x24, #8]!
	cmp	x10, x11
	b.hs	LBB0_5
; %bb.3:
	mov	w11, #24
	madd	x25, x8, x11, x9
	ldr	x8, [x25, #16]!
	ldr	x26, [x8, x10, lsl #3]
Lloh0:
	adrp	x22, _frame_sizes@GOTPAGE
Lloh1:
	ldr	x22, [x22, _frame_sizes@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_FF_ARRAY_ELEMS
	cmp	x26, x0
	b.hs	LBB0_5
; %bb.4:
	ldr	x8, [x25]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x10, [x22]
	ldrsw	x22, [x10, x8, lsl #2]
	ldr	x8, [x23]
	add	x9, x9, x22
	cmp	x9, x8
	b.ls	LBB0_15
LBB0_5:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19, #36]
	str	w8, [x4]
	ldr	w5, [x19, #32]
	ldr	x6, [x19, #16]
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_store_packet
	str	xzr, [x19, #16]
LBB0_7:
	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
LBB0_8:
	mov	x0, x20
	mov	w1, #1
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_7
; %bb.9:
	ldr	x8, [x20, #8]
	str	xzr, [x8]
LBB0_10:
	ldr	w8, [x21]
	str	w8, [x20]
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	str	xzr, [x19]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_14
; %bb.12:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, gt
	b	LBB0_7
LBB0_13:
	add	x8, x8, #1
	str	x8, [x19]
LBB0_14:
	mov	w0, #1
	b	LBB0_7
LBB0_15:
	mov	x0, x20
	mov	x1, x22
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_7
; %bb.16:
	ldr	x0, [x20, #8]
	ldr	x8, [x25]
	ldr	x9, [x24]
	add	x1, x8, x9, lsl #3
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x24]
	ldr	x9, [x23]
	add	x8, x8, x22
	cmp	x8, x9
	str	x8, [x24]
	cset	w8, hs
	str	w8, [x19, #8]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_frame_sizes,8,3                ; @frame_sizes
	.no_dead_strip	_return_stored_frame
.subsections_via_symbols
