	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_videotoolbox_avcc_extradata_create ## -- Begin function ff_videotoolbox_avcc_extradata_create
	.p2align	4, 0x90
_ff_videotoolbox_avcc_extradata_create: ## @ff_videotoolbox_avcc_extradata_create
	.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
	movq	(%rdi), %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movslq	(%rax), %rax
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx), %r12
	addq	$11, %r12
	movl	%r12d, %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_AV_W8
	leaq	4(%r13), %rdi
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	callq	_AV_W8
	leaq	8(%r13), %rdi
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	8(%rax), %esi
	callq	_AV_W8
	leaq	12(%r13), %rdi
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	12(%rax), %esi
	callq	_AV_W8
	leaq	16(%r13), %rdi
	movl	$255, %esi
	callq	_AV_W8
	leaq	20(%r13), %rdi
	movl	$225, %esi
	callq	_AV_W8
	leaq	24(%r13), %rdi
	movq	(%r15), %rax
	movl	(%rax), %esi
	callq	_AV_WB16
	leaq	32(%r13), %rdi
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	callq	_memcpy
	movq	(%r15), %rax
	movslq	(%rax), %rbx
	leaq	(,%rbx,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	32(,%rbx,4), %rdi
	addq	%r13, %rdi
	movl	$1, %esi
	callq	_AV_W8
	leaq	36(,%rbx,4), %rdi
	addq	%r13, %rdi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	callq	_AV_WB16
	leaq	44(,%rbx,4), %rdi
	addq	%r13, %rdi
	movq	%r14, %rbx
	movq	8(%r15), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	callq	_memcpy
	movq	8(%r15), %rax
	movslq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	addq	$44, %rax
	sarq	$2, %rax
	xorl	%edi, %edi
	cmpq	%r12, %rax
	sete	%dil
	callq	_av_assert0
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	addq	$4, %rsi
	movl	$3, %edx
	callq	_memcpy
LBB0_3:
	movq	_kCFAllocatorDefault@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_CFDataCreate
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_av_free
	movq	%r14, %rax
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kCFAllocatorDefault,4,2        ## @kCFAllocatorDefault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_videotoolbox_avcc_extradata_create ; -- Begin function ff_videotoolbox_avcc_extradata_create
	.p2align	2
_ff_videotoolbox_avcc_extradata_create: ; @ff_videotoolbox_avcc_extradata_create
	.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
	ldp	x22, x8, [x0]
	ldr	x23, [x8]
	ldp	x8, x9, [x22]
	ldrsw	x8, [x8]
	ldrsw	x9, [x9]
	add	x8, x8, x9
	add	x19, x8, #11
	mov	x0, x19
	bl	_av_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w1, #1
	bl	_AV_W8
	add	x0, x20, #4
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #4]
	bl	_AV_W8
	add	x0, x20, #8
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #8]
	bl	_AV_W8
	add	x0, x20, #12
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #12]
	bl	_AV_W8
	add	x0, x20, #16
	mov	w1, #255
	bl	_AV_W8
	add	x0, x20, #20
	mov	w1, #225
	bl	_AV_W8
	add	x0, x20, #24
	ldr	x8, [x22]
	ldr	w1, [x8]
	bl	_AV_WB16
	add	x0, x20, #32
	ldr	x8, [x22]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x8, [x22]
	ldrsw	x8, [x8]
	lsl	x8, x8, #2
	add	x24, x8, #32
	add	x21, x20, x24
	mov	x0, x21
	mov	w1, #1
	bl	_AV_W8
	add	x0, x21, #4
	ldr	x8, [x22, #8]
	ldr	w1, [x8]
	bl	_AV_WB16
	add	x0, x21, #12
	ldr	x8, [x22, #8]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8]
	add	x8, x24, x8, lsl #2
	add	x8, x8, #12
	cmp	x19, x8, asr #2
	cset	w0, eq
	bl	_av_assert0
	cbz	x23, LBB0_3
; %bb.2:
	ldr	x0, [x23]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	add	x1, x8, #4
	mov	w2, #3
	bl	_memcpy
LBB0_3:
Lloh0:
	adrp	x8, _kCFAllocatorDefault@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kCFAllocatorDefault@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_CFDataCreate
	mov	x19, x0
	mov	x0, x20
	bl	_av_free
	mov	x0, x19
LBB0_4:
	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	_kCFAllocatorDefault,4,2        ; @kCFAllocatorDefault
.subsections_via_symbols
