	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nut_add_sp                  ## -- Begin function ff_nut_add_sp
	.p2align	4, 0x90
_ff_nut_add_sp:                         ## @ff_nut_add_sp
	.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, %r12
	movq	%rdi, %r13
	movl	$24, %edi
	callq	_av_mallocz
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	callq	_av_tree_node_alloc
	movq	%rax, -48(%rbp)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	incl	4(%r13)
	movq	%r12, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	%r14, (%rbx)
	movq	-56(%rbp), %r14
	movq	_ff_nut_sp_pos_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_av_tree_insert
	xorl	%ebx, %ebx
	cmpq	$0, -48(%rbp)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_av_free
	movq	-48(%rbp), %rdi
	callq	_av_free
	jmp	LBB0_5
LBB0_2:
	leaq	-56(%rbp), %rdi
	callq	_av_freep
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ff_nut_sp_pos_cmp,4,2          ## @ff_nut_sp_pos_cmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nut_add_sp                  ; -- Begin function ff_nut_add_sp
	.p2align	2
_ff_nut_add_sp:                         ; @ff_nut_add_sp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w0, #24
	bl	_av_mallocz
	mov	x23, x0
	str	x0, [sp, #8]
	bl	_av_tree_node_alloc
	str	x0, [sp]
	cbz	x23, LBB0_5
; %bb.1:
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	stp	x21, x22, [x23, #8]
	str	x20, [x23]
	ldr	x20, [sp, #8]
Lloh0:
	adrp	x8, _ff_nut_sp_pos_cmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_nut_sp_pos_cmp@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	bl	_av_tree_insert
	ldr	x8, [sp]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_av_free
	ldr	x0, [sp]
	bl	_av_free
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	add	x0, sp, #8
	bl	_av_freep
	mov	x0, sp
	bl	_av_freep
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ff_nut_sp_pos_cmp,4,2          ; @ff_nut_sp_pos_cmp
.subsections_via_symbols
