	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbs_h2645_fragment_add_nals
_cbs_h2645_fragment_add_nals:           ## @cbs_h2645_fragment_add_nals
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdx)
	jle	LBB0_8
## %bb.1:
	leaq	8(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	16(%rdx), %r13
	movq	%r14, %r15
	shlq	$5, %r15
	movq	(%r13,%r15), %rax
	leaq	(%r15,%r13), %r12
	addq	$8, %r12
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rbx
	subq	$1, %rax
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r12), %rcx
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_av_assert0
	movq	(%r12), %r8
	cmpq	16(%r13,%r15), %r8
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	cmoveq	%rsi, %rax
	movq	(%rax), %rax
	movl	24(%r13,%r15), %ecx
	movq	%rax, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$-1, %edx
	movq	%rbx, %r9
	callq	_ff_cbs_insert_unit_data
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movslq	(%rdx), %rax
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cbs_h2645_fragment_add_nals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbs_h2645_fragment_add_nals
_cbs_h2645_fragment_add_nals:           ; @cbs_h2645_fragment_add_nals
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x2]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x23, #0
	add	x24, x2, #8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	x25, [x19, #16]
	add	x26, x25, x23, lsl #5
	ldr	x8, [x26], #8
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x8
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x9, [x26]
	sub	x8, x22, #1
	add	x9, x9, x22, lsl #3
	ldur	x9, [x9, #-8]
	cbz	x9, LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x22, #0
	cset	w0, ne
	bl	_av_assert0
	ldr	x4, [x26]
	add	x8, x25, x23, lsl #5
	ldr	x9, [x8, #16]
	cmp	x4, x9
	csel	x9, x20, x24, eq
	ldr	x6, [x9]
	ldr	w3, [x8, #24]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #-1
	mov	x5, x22
	bl	_ff_cbs_insert_unit_data
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cbs_h2645_fragment_add_nals
.subsections_via_symbols
