	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_fragment
_add_fragment:                          ## @add_fragment
	.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
	testq	%rcx, %rcx
	movl	$1, %r13d
	cmovneq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	4(%rdi), %eax
	cmpl	%eax, (%rdi)
	jl	LBB0_3
## %bb.1:
	leal	(%rax,%rax), %esi
	addl	$2, %esi
	movl	%esi, 4(%r12)
	leaq	16(%r12), %rdi
	movl	$8, %edx
	callq	_av_reallocp_array
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	movl	$32, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	movl	24(%rax), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_av_strlcpy
	movq	%r14, 16(%rbx)
	movq	%r13, 8(%rbx)
	movl	8(%r12), %eax
	movl	%eax, (%rbx)
	movq	16(%r12), %rcx
	movslq	(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r12)
	movq	%rbx, (%rcx,%rdx,8)
	incl	%eax
	movl	%eax, 8(%r12)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movq	$0, (%r12)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_add_fragment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_fragment
_add_fragment:                          ; @add_fragment
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x19, x0
	cmp	x3, #0
	csinc	x23, x3, xzr, ne
	ldp	w9, w8, [x0]
	cmp	w9, w8
	b.lt	LBB0_2
; %bb.1:
	lsl	w8, w8, #1
	add	w1, w8, #2
	str	w1, [x19, #4]
	add	x0, x19, #16
	mov	w2, #8
	bl	_av_reallocp_array
	tbnz	w0, #31, LBB0_5
LBB0_2:
	mov	w0, #32
	bl	_av_mallocz
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
	ldr	w0, [x0, #24]
	mov	x1, x21
	mov	w2, #4
	bl	_av_strlcpy
	mov	w0, #0
	stp	x23, x20, [x22, #8]
	ldr	w8, [x19, #8]
	str	w8, [x22]
	ldr	x9, [x19, #16]
	ldrsw	x10, [x19]
	add	w11, w10, #1
	str	w11, [x19]
	str	x22, [x9, x10, lsl #3]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_5:
	str	xzr, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_add_fragment
.subsections_via_symbols
