	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_writer_add_track
_mp4_writer_add_track:                  ## @mp4_writer_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	%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	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	movl	4(%rsi), %eax
	addl	$-128, %eax
	cmpl	$14, %eax
	ja	LBB0_25
## %bb.2:
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movl	$109, %edi
	movl	$112, %esi
	movl	$52, %edx
	movl	$97, %ecx
	jmp	LBB0_19
LBB0_4:
	movq	_VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_5:
	movl	$109, %edi
	jmp	LBB0_15
LBB0_6:
	movl	$109, %edi
	movl	$112, %esi
	movl	$52, %edx
	movl	$118, %ecx
	jmp	LBB0_19
LBB0_7:
	movl	$109, %edi
	movl	$106, %esi
	movl	$112, %edx
	jmp	LBB0_18
LBB0_8:
	movq	16(%r15), %rbx
	movl	$97, %edi
	movl	$118, %esi
	movl	$99, %edx
	movl	$67, %ecx
	callq	_VC_FOURCC
	cmpq	%rax, %rbx
	jne	LBB0_25
## %bb.9:
	movl	$97, %edi
	movl	$118, %esi
	movl	$99, %edx
	movl	$49, %ecx
	jmp	LBB0_19
LBB0_10:
	movl	$115, %edi
	movl	$101, %esi
	movl	$118, %edx
	movl	$99, %ecx
	jmp	LBB0_19
LBB0_11:
	movl	$115, %edi
	movl	$97, %esi
	movl	$119, %edx
	movl	$112, %ecx
	jmp	LBB0_19
LBB0_12:
	movl	$115, %edi
	movl	$97, %esi
	movl	$109, %edx
	movl	$114, %ecx
	jmp	LBB0_19
LBB0_13:
	movl	$109, %edi
	movl	$106, %esi
	movl	$112, %edx
	movl	$97, %ecx
	jmp	LBB0_19
LBB0_14:
	movl	$106, %edi
LBB0_15:
	movl	$112, %esi
	movl	$101, %edx
	movl	$103, %ecx
	jmp	LBB0_19
LBB0_16:
	movl	$115, %edi
	movl	$50, %esi
	movl	$54, %edx
	movl	$51, %ecx
	jmp	LBB0_19
LBB0_17:
	movl	$115, %edi
	movl	$97, %esi
	movl	$119, %edx
LBB0_18:
	movl	$98, %ecx
LBB0_19:
	callq	_VC_FOURCC
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	movq	(%r14), %rax
	movq	_MP4_TRACKS_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_26
## %bb.21:
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_vc_container_allocate_track
	movq	%rax, %r13
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	%r13, (%rcx,%rax,8)
	testq	%r13, %r13
	je	LBB0_27
## %bb.22:
	movl	8(%r15), %edx
	testl	%edx, %edx
	je	LBB0_28
## %bb.23:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vc_container_track_allocate_extradata
	testq	%rax, %rax
	je	LBB0_29
## %bb.24:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vc_container_free_track
	jmp	LBB0_32
LBB0_25:
	movq	_VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_26:
	movq	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_27:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_28:
	xorl	%edx, %edx
	jmp	LBB0_30
LBB0_29:
	movl	8(%r15), %edx
LBB0_30:
	movl	8(%r13), %edi
	movq	%r15, %rsi
	callq	_vc_container_format_copy
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	%r12, 16(%rax)
	movl	$-1, (%rax)
	movq	8(%rax), %rax
	movq	_MP4_SAMPLE_TABLE_STTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$8, (%rax,%rcx,4)
	movq	_MP4_SAMPLE_TABLE_STSZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$4, (%rax,%rcx,4)
	movq	_MP4_SAMPLE_TABLE_STSC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$12, (%rax,%rcx,4)
	movq	_MP4_SAMPLE_TABLE_STCO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$4, (%rax,%rcx,4)
	movq	_MP4_SAMPLE_TABLE_STSS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$4, (%rax,%rcx,4)
	movq	_MP4_SAMPLE_TABLE_CO64@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$8, (%rax,%rcx,4)
	movq	_MP4_SAMPLE_TABLE_CTTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$8, (%rax,%rcx,4)
	incq	(%r14)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
LBB0_31:
	movq	(%rax), %rbx
LBB0_32:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_16
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_17
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED,4,2 ## @VC_CONTAINER_ES_FORMAT_FLAG_FRAMED
	.comm	_VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION,8,3 ## @VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION
	.comm	_VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED,8,3 ## @VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED
	.comm	_MP4_TRACKS_MAX,8,3             ## @MP4_TRACKS_MAX
	.comm	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_RESOURCES
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_MP4_SAMPLE_TABLE_STTS,8,3      ## @MP4_SAMPLE_TABLE_STTS
	.comm	_MP4_SAMPLE_TABLE_STSZ,8,3      ## @MP4_SAMPLE_TABLE_STSZ
	.comm	_MP4_SAMPLE_TABLE_STSC,8,3      ## @MP4_SAMPLE_TABLE_STSC
	.comm	_MP4_SAMPLE_TABLE_STCO,8,3      ## @MP4_SAMPLE_TABLE_STCO
	.comm	_MP4_SAMPLE_TABLE_STSS,8,3      ## @MP4_SAMPLE_TABLE_STSS
	.comm	_MP4_SAMPLE_TABLE_CO64,8,3      ## @MP4_SAMPLE_TABLE_CO64
	.comm	_MP4_SAMPLE_TABLE_CTTS,8,3      ## @MP4_SAMPLE_TABLE_CTTS
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_mp4_writer_add_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_writer_add_track
_mp4_writer_add_track:                  ; @mp4_writer_add_track
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #4]
	sub	w8, w8, #128
	cmp	w8, #14
	b.hi	LBB0_25
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	w0, #109
	mov	w1, #112
	mov	w2, #52
	mov	w3, #97
	b	LBB0_19
LBB0_4:
Lloh5:
	adrp	x8, _VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION@GOTPAGEOFF]
	b	LBB0_30
LBB0_5:
	mov	w0, #109
	b	LBB0_15
LBB0_6:
	mov	w0, #109
	mov	w1, #112
	mov	w2, #52
	mov	w3, #118
	b	LBB0_19
LBB0_7:
	mov	w0, #109
	mov	w1, #106
	mov	w2, #112
	b	LBB0_18
LBB0_8:
	ldr	x21, [x20, #16]
	mov	w0, #97
	mov	w1, #118
	mov	w2, #99
	mov	w3, #67
	bl	_VC_FOURCC
	cmp	x21, x0
	b.ne	LBB0_25
; %bb.9:
	mov	w0, #97
	mov	w1, #118
	mov	w2, #99
	mov	w3, #49
	b	LBB0_19
LBB0_10:
	mov	w0, #115
	mov	w1, #101
	mov	w2, #118
	mov	w3, #99
	b	LBB0_19
LBB0_11:
	mov	w0, #115
	mov	w1, #97
	mov	w2, #119
	mov	w3, #112
	b	LBB0_19
LBB0_12:
	mov	w0, #115
	mov	w1, #97
	mov	w2, #109
	mov	w3, #114
	b	LBB0_19
LBB0_13:
	mov	w0, #109
	mov	w1, #106
	mov	w2, #112
	mov	w3, #97
	b	LBB0_19
LBB0_14:
	mov	w0, #106
LBB0_15:
	mov	w1, #112
	mov	w2, #101
	mov	w3, #103
	b	LBB0_19
LBB0_16:
	mov	w0, #115
	mov	w1, #50
	mov	w2, #54
	mov	w3, #51
	b	LBB0_19
LBB0_17:
	mov	w0, #115
	mov	w1, #97
	mov	w2, #119
LBB0_18:
	mov	w3, #98
LBB0_19:
	bl	_VC_FOURCC
	mov	x21, x0
	cbz	x0, LBB0_25
; %bb.20:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _MP4_TRACKS_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MP4_TRACKS_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_26
; %bb.21:
	mov	x0, x19
	mov	w1, #24
	bl	_vc_container_allocate_track
	ldp	x9, x8, [x19]
	str	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_27
; %bb.22:
	mov	x22, x0
	ldr	w2, [x20, #8]
	cbz	w2, LBB0_29
; %bb.23:
	mov	x0, x19
	mov	x1, x22
	bl	_vc_container_track_allocate_extradata
	cbz	x0, LBB0_28
; %bb.24:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_vc_container_free_track
	b	LBB0_31
LBB0_25:
Lloh10:
	adrp	x8, _VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_30
LBB0_26:
Lloh12:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPAGEOFF]
	b	LBB0_30
LBB0_27:
Lloh14:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_30
LBB0_28:
	ldr	w2, [x20, #8]
LBB0_29:
	ldr	w0, [x22, #8]
	mov	x1, x20
	bl	_vc_container_format_copy
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
Lloh16:
	adrp	x10, _MP4_SAMPLE_TABLE_STTS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MP4_SAMPLE_TABLE_STTS@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	mov	w11, #8
	str	w11, [x9, x10, lsl #2]
Lloh19:
	adrp	x10, _MP4_SAMPLE_TABLE_STSZ@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MP4_SAMPLE_TABLE_STSZ@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	mov	w12, #4
	str	w12, [x9, x10, lsl #2]
Lloh22:
	adrp	x10, _MP4_SAMPLE_TABLE_STSC@GOTPAGE
Lloh23:
	ldr	x10, [x10, _MP4_SAMPLE_TABLE_STSC@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	mov	w13, #12
	str	w13, [x9, x10, lsl #2]
Lloh25:
	adrp	x10, _MP4_SAMPLE_TABLE_STCO@GOTPAGE
Lloh26:
	ldr	x10, [x10, _MP4_SAMPLE_TABLE_STCO@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	str	w12, [x9, x10, lsl #2]
	str	x21, [x8, #16]
Lloh28:
	adrp	x10, _MP4_SAMPLE_TABLE_STSS@GOTPAGE
Lloh29:
	ldr	x10, [x10, _MP4_SAMPLE_TABLE_STSS@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	str	w12, [x9, x10, lsl #2]
	mov	w10, #-1
Lloh31:
	adrp	x12, _MP4_SAMPLE_TABLE_CO64@GOTPAGE
Lloh32:
	ldr	x12, [x12, _MP4_SAMPLE_TABLE_CO64@GOTPAGEOFF]
Lloh33:
	ldr	x12, [x12]
	str	w11, [x9, x12, lsl #2]
	str	w10, [x8]
Lloh34:
	adrp	x8, _MP4_SAMPLE_TABLE_CTTS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MP4_SAMPLE_TABLE_CTTS@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	w11, [x9, x8, lsl #2]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh37:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_30:
	ldr	x23, [x8]
LBB0_31:
	mov	x0, x23
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED,4,2 ; @VC_CONTAINER_ES_FORMAT_FLAG_FRAMED
	.comm	_VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION,8,3 ; @VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION
	.comm	_VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED,8,3 ; @VC_CONTAINER_ERROR_TRACK_FORMAT_NOT_SUPPORTED
	.comm	_MP4_TRACKS_MAX,8,3             ; @MP4_TRACKS_MAX
	.comm	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_RESOURCES
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_MP4_SAMPLE_TABLE_STTS,8,3      ; @MP4_SAMPLE_TABLE_STTS
	.comm	_MP4_SAMPLE_TABLE_STSZ,8,3      ; @MP4_SAMPLE_TABLE_STSZ
	.comm	_MP4_SAMPLE_TABLE_STSC,8,3      ; @MP4_SAMPLE_TABLE_STSC
	.comm	_MP4_SAMPLE_TABLE_STCO,8,3      ; @MP4_SAMPLE_TABLE_STCO
	.comm	_MP4_SAMPLE_TABLE_STSS,8,3      ; @MP4_SAMPLE_TABLE_STSS
	.comm	_MP4_SAMPLE_TABLE_CO64,8,3      ; @MP4_SAMPLE_TABLE_CO64
	.comm	_MP4_SAMPLE_TABLE_CTTS,8,3      ; @MP4_SAMPLE_TABLE_CTTS
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_mp4_writer_add_track
.subsections_via_symbols
