	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_framequeue_add              ## -- Begin function ff_framequeue_add
	.p2align	4, 0x90
_ff_framequeue_add:                     ## @ff_framequeue_add
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_check_consistency
	movl	(%rbx), %r12d
	cmpl	4(%rbx), %r12d
	jne	LBB0_9
## %bb.1:
	cmpl	$1, %r12d
	jne	LBB0_4
## %bb.2:
	movl	$8, %r12d
	movl	$8, %esi
	xorl	%edi, %edi
	movl	$8, %edx
	callq	_av_realloc_array
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	24(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	%rax, 24(%rbx)
	jmp	LBB0_8
LBB0_4:
	addl	%r12d, %r12d
	movslq	%r12d, %rsi
	movq	24(%rbx), %rdi
	movl	$8, %edx
	callq	_av_realloc_array
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r15
	movl	(%rbx), %edx
	addl	8(%rbx), %edx
	movslq	4(%rbx), %rax
	cmpl	%eax, %edx
	jle	LBB0_7
## %bb.6:
	leaq	(%r15,%rax,8), %rdi
	subl	%eax, %edx
	shll	$3, %edx
	movq	%r15, %rsi
	callq	_memmove
LBB0_7:
	movq	%r15, 24(%rbx)
LBB0_8:
	movl	%r12d, 4(%rbx)
LBB0_9:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_bucket
	movq	%r14, (%rax)
	incl	(%rbx)
	incl	16(%rbx)
	movl	(%r14), %eax
	addl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_check_consistency
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_framequeue_add              ; -- Begin function ff_framequeue_add
	.p2align	2
_ff_framequeue_add:                     ; @ff_framequeue_add
	.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	x20, x1
	mov	x19, x0
	bl	_check_consistency
	ldp	w8, w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
	mov	x0, #0
	mov	w1, #8
	mov	w2, #8
	bl	_av_realloc_array
	cbz	x0, LBB0_10
; %bb.3:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	str	x8, [x0]
	str	x0, [x19, #24]
	mov	w22, #8
	b	LBB0_8
LBB0_4:
	lsl	w22, w8, #1
	sxtw	x1, w22
	ldr	x0, [x19, #24]
	mov	w2, #8
	bl	_av_realloc_array
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	ldp	w8, w9, [x19, #4]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	ldr	w10, [x19]
	add	w9, w10, w9
	cmp	w9, w8
	b.le	LBB0_7
; %bb.6:
	add	x0, x21, x8, lsl #3
	sub	w8, w9, w8
	lsl	w2, w8, #3
	mov	x1, x21
	bl	_memmove
LBB0_7:
	str	x21, [x19, #24]
LBB0_8:
	str	w22, [x19, #4]
LBB0_9:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_bucket
	str	x20, [x0]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldur	d0, [x19, #12]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x20]
	add.2s	v0, v0, v1
	stur	d0, [x19, #12]
	mov	x0, x19
	bl	_check_consistency
	mov	w0, #0
	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_10:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
