	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple_write_add_track
_simple_write_add_track:                ## @simple_write_add_track
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	%rsi, %r14
	movq	(%rsi), %rax
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_vc_container_allocate_track
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	callq	_vc_container_track_allocate_extradata
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_9
## %bb.5:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	movq	%r14, %rsi
	callq	_vc_container_format_copy
	incq	(%rbx)
	movq	(%r15), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION,8,3 ## @VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ## @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED,8,3 ## @VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_simple_write_add_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple_write_add_track
_simple_write_add_track:                ; @simple_write_add_track
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x20, x1
	ldr	x8, [x1]
Lloh2:
	adrp	x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x19, x0
	mov	w1, #0
	bl	_vc_container_allocate_track
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
	cbz	x1, LBB0_7
; %bb.4:
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_vc_container_track_allocate_extradata
Lloh5:
	adrp	x21, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w2, [x20, #8]
	mov	x1, x20
	bl	_vc_container_format_copy
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x0, [x21]
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x8, _VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION,8,3 ; @VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ; @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED,8,3 ; @VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_simple_write_add_track
.subsections_via_symbols
