	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_read_box_trak
_mp4_read_box_trak:                     ## @mp4_read_box_trak
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_MP4_TRACKS_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	movl	$8, %esi
	callq	_vc_container_allocate_track
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	%r15, (%rcx,%rax,8)
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	(%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)
	movq	_MP4_BOX_TYPE_TRAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mp4_read_boxes
	movl	$1, (%r15)
	movq	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%r15), %rdx
	orl	%ecx, (%rdx)
	incl	(%r12)
	incq	(%rbx)
	jmp	LBB0_6
LBB0_3:
	movq	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_MP4_TRACKS_MAX,8,3             ## @MP4_TRACKS_MAX
	.comm	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_RESOURCES
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @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	_MP4_BOX_TYPE_TRAK,4,2          ## @MP4_BOX_TYPE_TRAK
	.comm	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED,4,2 ## @VC_CONTAINER_ES_FORMAT_FLAG_FRAMED
	.no_dead_strip	_mp4_read_box_trak
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_read_box_trak
_mp4_read_box_trak:                     ; @mp4_read_box_trak
	.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	x8, [x0]
Lloh0:
	adrp	x9, _MP4_TRACKS_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MP4_TRACKS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	mov	w23, #8
	mov	w1, #8
	bl	_vc_container_allocate_track
	ldp	x9, x8, [x19]
	str	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MP4_SAMPLE_TABLE_STTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MP4_SAMPLE_TABLE_STTS@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	str	w23, [x8, x9, lsl #2]
Lloh6:
	adrp	x9, _MP4_SAMPLE_TABLE_STSZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MP4_SAMPLE_TABLE_STSZ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	w10, #4
	str	w10, [x8, x9, lsl #2]
Lloh9:
	adrp	x9, _MP4_SAMPLE_TABLE_STSC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MP4_SAMPLE_TABLE_STSC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	mov	w11, #12
	str	w11, [x8, x9, lsl #2]
Lloh12:
	adrp	x9, _MP4_SAMPLE_TABLE_STCO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MP4_SAMPLE_TABLE_STCO@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	str	w10, [x8, x9, lsl #2]
Lloh15:
	adrp	x9, _MP4_SAMPLE_TABLE_STSS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MP4_SAMPLE_TABLE_STSS@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	w10, [x8, x9, lsl #2]
Lloh18:
	adrp	x9, _MP4_SAMPLE_TABLE_CO64@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MP4_SAMPLE_TABLE_CO64@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	str	w23, [x8, x9, lsl #2]
Lloh21:
	adrp	x9, _MP4_SAMPLE_TABLE_CTTS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MP4_SAMPLE_TABLE_CTTS@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	str	w23, [x8, x9, lsl #2]
Lloh24:
	adrp	x8, _MP4_BOX_TYPE_TRAK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MP4_BOX_TYPE_TRAK@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_mp4_read_boxes
	mov	w8, #1
	str	w8, [x21]
Lloh27:
	adrp	x8, _VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_6
LBB0_3:
Lloh30:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh32:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_MP4_TRACKS_MAX,8,3             ; @MP4_TRACKS_MAX
	.comm	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_RESOURCES
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @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	_MP4_BOX_TYPE_TRAK,4,2          ; @MP4_BOX_TYPE_TRAK
	.comm	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED,4,2 ; @VC_CONTAINER_ES_FORMAT_FLAG_FRAMED
	.no_dead_strip	_mp4_read_box_trak
.subsections_via_symbols
