	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_cbs_insert_unit_data        ## -- Begin function ff_cbs_insert_unit_data
	.p2align	4, 0x90
_ff_cbs_insert_unit_data:               ## @ff_cbs_insert_unit_data
	.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, %rbx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	cmpl	$-1, %edx
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %r12d
LBB0_2:
	movq	16(%rbp), %r14
	testl	%r12d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	js	LBB0_3
## %bb.4:
	xorl	%edi, %edi
	cmpl	(%r13), %r12d
	setle	%dil
	jmp	LBB0_5
LBB0_3:
	xorl	%edi, %edi
LBB0_5:
	callq	_av_assert0
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_av_buffer_ref
	jmp	LBB0_8
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_av_buffer_create
LBB0_8:
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%rbx, %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_cbs_insert_unit
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	8(%r13), %rax
	movslq	%r12d, %rcx
	shlq	$5, %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 24(%rax,%rcx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 16(%rax,%rcx)
	movq	%r14, (%rax,%rcx)
	movq	-64(%rbp), %rdx
	movq	%rdx, 8(%rax,%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_13:
	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_10:
	movl	%eax, %ebx
	leaq	-64(%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_data        ; -- Begin function ff_cbs_insert_unit_data
	.p2align	2
_ff_cbs_insert_unit_data:               ; @ff_cbs_insert_unit_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x25, x6
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	cmn	w2, #1
	b.eq	LBB0_6
; %bb.1:
	tbnz	w22, #31, LBB0_7
LBB0_2:
	ldr	w8, [x23]
	cmp	w22, w8
	cset	w0, le
	bl	_av_assert0
	cbz	x25, LBB0_8
LBB0_3:
	mov	x0, x25
	bl	_av_buffer_ref
	str	x0, [sp, #8]
	cbz	x0, LBB0_9
LBB0_4:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_cbs_insert_unit
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	w24, #0
	ldr	x8, [x23, #8]
	sxtw	x9, w22
	add	x8, x8, x9, lsl #5
	str	w21, [x8, #24]
	str	x20, [x8, #16]
	ldr	x9, [sp, #8]
	stp	x19, x9, [x8]
	b	LBB0_11
LBB0_6:
	ldr	w22, [x23]
	tbz	w22, #31, LBB0_2
LBB0_7:
	mov	w0, #0
	bl	_av_assert0
	cbnz	x25, LBB0_3
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_av_buffer_create
	str	x0, [sp, #8]
	cbnz	x0, LBB0_4
LBB0_9:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_AVERROR
LBB0_10:
	mov	x24, x0
	add	x0, sp, #8
	bl	_av_buffer_unref
LBB0_11:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
