	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_format_extradata_alloc ## -- Begin function vc_container_format_extradata_alloc
	.p2align	4, 0x90
_vc_container_format_extradata_alloc:   ## @vc_container_format_extradata_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_VC_CONTAINER_ES_FORMAT_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_vc_container_assert
	movq	_EXTRADATA_SIZE_MAX@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_VC_CONTAINER_ERROR_CORRUPTED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	32(%rbx), %rax
	cmpl	%r14d, 8(%rbx)
	jae	LBB0_8
## %bb.3:
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_free
LBB0_5:
	movl	%r14d, %edi
	callq	_malloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	%r14d, 8(%rbx)
	jmp	LBB0_10
LBB0_8:
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	16(%rbx), %rax
LBB0_10:
	movq	%rax, 24(%rbx)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ES_FORMAT_MAGIC,8,3 ## @VC_CONTAINER_ES_FORMAT_MAGIC
	.comm	_EXTRADATA_SIZE_MAX,4,2         ## @EXTRADATA_SIZE_MAX
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ## @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_format_extradata_alloc ; -- Begin function vc_container_format_extradata_alloc
	.p2align	2
_vc_container_format_extradata_alloc:   ; @vc_container_format_extradata_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VC_CONTAINER_ES_FORMAT_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VC_CONTAINER_ES_FORMAT_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_vc_container_assert
Lloh3:
	adrp	x8, _EXTRADATA_SIZE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXTRADATA_SIZE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.hs	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	ldr	w8, [x19, #8]
	ldr	x0, [x19, #32]
	cmp	w8, w20
	b.hs	LBB0_7
; %bb.3:
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
LBB0_5:
	mov	x0, x20
	bl	_malloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_10
; %bb.6:
	str	w20, [x19, #8]
	b	LBB0_9
LBB0_7:
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
LBB0_9:
	str	x0, [x19, #24]
Lloh8:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ES_FORMAT_MAGIC,8,3 ; @VC_CONTAINER_ES_FORMAT_MAGIC
	.comm	_EXTRADATA_SIZE_MAX,4,2         ; @EXTRADATA_SIZE_MAX
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ; @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
.subsections_via_symbols
