	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_cbs_insert_unit_content     ## -- Begin function ff_cbs_insert_unit_content
	.p2align	4, 0x90
_ff_cbs_insert_unit_content:            ## @ff_cbs_insert_unit_content
	.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	%r9, %r14
	movq	%r8, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	cmpl	$-1, %edx
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %r15d
LBB0_2:
	testl	%r15d, %r15d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	js	LBB0_3
## %bb.4:
	xorl	%edi, %edi
	cmpl	(%r12), %r15d
	setle	%dil
	jmp	LBB0_5
LBB0_3:
	xorl	%edi, %edi
LBB0_5:
	callq	_av_assert0
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_av_buffer_ref
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_8:
	movq	$0, -48(%rbp)
LBB0_9:
	movq	%rbx, %r14
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_cbs_insert_unit
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	8(%r12), %rax
	movslq	%r15d, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 16(%rax,%rcx,8)
	movq	%r14, 8(%rax,%rcx,8)
	movq	-48(%rbp), %rdx
	movq	%rdx, (%rax,%rcx,8)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_av_buffer_unref
LBB0_12:
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_cbs_insert_unit_content     ; -- Begin function ff_cbs_insert_unit_content
	.p2align	2
_ff_cbs_insert_unit_content:            ; @ff_cbs_insert_unit_content
	.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	x24, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	cmn	w2, #1
	b.eq	LBB0_5
; %bb.1:
	tbnz	w21, #31, LBB0_6
LBB0_2:
	ldr	w8, [x22]
	cmp	w21, w8
	cset	w0, le
	bl	_av_assert0
	cbz	x24, LBB0_7
LBB0_3:
	mov	x0, x24
	bl	_av_buffer_ref
	str	x0, [sp, #8]
	cbnz	x0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_5:
	ldr	w21, [x22]
	tbz	w21, #31, LBB0_2
LBB0_6:
	mov	w0, #0
	bl	_av_assert0
	cbnz	x24, LBB0_3
LBB0_7:
	str	xzr, [sp, #8]
LBB0_8:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_cbs_insert_unit
	tbnz	w0, #31, LBB0_10
; %bb.9:
	mov	w23, #0
	ldr	x8, [x22, #8]
	mov	w9, #24
	smaddl	x8, w21, w9, x8
	str	w20, [x8, #16]
	str	x19, [x8, #8]
	ldr	x9, [sp, #8]
	str	x9, [x8]
	b	LBB0_11
LBB0_10:
	mov	x23, x0
	add	x0, sp, #8
	bl	_av_buffer_unref
LBB0_11:
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
