	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_read_sample_header
_mp4_read_sample_header:                ## @mp4_read_sample_header
	.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, %r14
	movq	(%rdx), %rdi
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rdi
	jne	LBB0_37
## %bb.1:
	movq	%rdx, %rbx
	movq	16(%rdx), %rax
	cmpq	%rax, 8(%rdx)
	jl	LBB0_37
## %bb.2:
	movq	(%r14), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r15
	leaq	8(%rbx), %rcx
	addl	%eax, 104(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
	incq	24(%rbx)
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
LBB0_7:
	decq	%rax
	movq	%rax, 64(%rbx)
	movq	_MP4_SAMPLE_TABLE_STSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	_mp4_read_sample_table
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	cmpq	%rax, (%r13)
	jne	LBB0_37
## %bb.8:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.9:
	imull	$1000000, 40(%rbx), %eax        ## imm = 0xF4240
	cltd
	idivl	%ecx
	movl	%eax, 36(%rbx)
	movl	%eax, 32(%rbx)
LBB0_10:
	movl	80(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_MP4_SAMPLE_TABLE_STTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	_mp4_read_sample_table
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	cmpq	%rax, (%r13)
	jne	LBB0_37
## %bb.12:
	movl	80(%rbx), %eax
LBB0_13:
	decl	%eax
	movl	%eax, 80(%rbx)
	movq	16(%r15), %rax
	movq	_MP4_SAMPLE_TABLE_CTTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_19
## %bb.14:
	cmpl	$0, 96(%rbx)
	jne	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	_mp4_read_sample_table
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	cmpq	%rax, (%r13)
	jne	LBB0_37
LBB0_16:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.17:
	movl	44(%rbx), %eax
	addl	40(%rbx), %eax
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	cltd
	idivl	%ecx
	movl	%eax, 32(%rbx)
LBB0_18:
	decl	96(%rbx)
	movq	16(%r15), %rax
LBB0_19:
	movl	72(%rbx), %ecx
	addl	%ecx, 40(%rbx)
	movq	88(%rbx), %rdx
	movq	_MP4_SAMPLE_TABLE_STSS@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	cmpq	%rax, (%rdx,%rcx,8)
	jge	LBB0_22
## %bb.20:
	cmpq	$0, 48(%rbx)
	jne	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	_mp4_read_sample_table
	movq	(%r13), %rdi
	movq	%rdi, (%rbx)
	movq	16(%r15), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
LBB0_22:
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	movq	24(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	48(%rbx), %rax
	sete	%cl
	movl	%ecx, 56(%rbx)
	movq	_MP4_SAMPLE_TABLE_STSZ@GOTPCREL(%rip), %r12
	jne	LBB0_26
## %bb.24:
	movq	$0, 48(%rbx)
	jmp	LBB0_26
LBB0_3:
	cmpl	$0, 100(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_MP4_SAMPLE_TABLE_STSC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	_mp4_read_sample_table
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	cmpq	%rax, (%r13)
	jne	LBB0_37
LBB0_5:
	movq	_MP4_SAMPLE_TABLE_STCO@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	_mp4_read_sample_table
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	cmpq	%rax, (%r13)
	jne	LBB0_37
## %bb.6:
	decl	100(%rbx)
	movq	64(%rbx), %rax
	jmp	LBB0_7
LBB0_25:
	movl	$0, 56(%rbx)
	movq	_MP4_SAMPLE_TABLE_STSZ@GOTPCREL(%rip), %r12
LBB0_26:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_37
## %bb.27:
	movq	16(%rbx), %r13
	cmpq	$0, 64(%rbx)
	je	LBB0_36
## %bb.28:
	cmpq	%rax, %r13
	jae	LBB0_35
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	_mp4_read_sample_table
	testq	%rax, %rax
	jne	LBB0_35
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	80(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_MP4_SAMPLE_TABLE_STTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	_mp4_read_sample_table
	testq	%rax, %rax
	jne	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	80(%rbx), %eax
LBB0_33:                                ##   in Loop: Header=BB0_29 Depth=1
	decl	%eax
	movl	%eax, 80(%rbx)
	movl	72(%rbx), %eax
	addl	%eax, 40(%rbx)
	addq	16(%rbx), %r13
	incq	24(%rbx)
	decq	64(%rbx)
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpq	8(%r15), %r13
	jb	LBB0_29
LBB0_35:
	movq	(%rbx), %rdi
LBB0_36:
	movq	%r13, 16(%rbx)
LBB0_37:
	movq	%rdi, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.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_STSZ,8,3      ## @MP4_SAMPLE_TABLE_STSZ
	.comm	_MP4_SAMPLE_TABLE_STTS,8,3      ## @MP4_SAMPLE_TABLE_STTS
	.comm	_MP4_SAMPLE_TABLE_CTTS,8,3      ## @MP4_SAMPLE_TABLE_CTTS
	.comm	_MP4_SAMPLE_TABLE_STSS,8,3      ## @MP4_SAMPLE_TABLE_STSS
	.no_dead_strip	_mp4_read_sample_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_read_sample_header
_mp4_read_sample_header:                ; @mp4_read_sample_header
	.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
	mov	x20, x0
	ldr	x0, [x2]
Lloh0:
	adrp	x23, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_38
; %bb.1:
	mov	x19, x2
	mov	x8, x2
	ldp	x10, x9, [x8, #8]!
	cmp	x10, x9
	b.lt	LBB0_38
; %bb.2:
	ldr	x10, [x20]
	ldr	x10, [x10, x1, lsl #3]
	ldr	x10, [x10]
	ldr	x21, [x10]
	ldr	w10, [x19, #104]
	add	w9, w10, w9
	str	w9, [x19, #104]
	stp	xzr, xzr, [x8]
	ldr	x8, [x19, #24]
	add	x8, x8, #1
	str	x8, [x19, #24]
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_21
LBB0_3:
	sub	x8, x8, #1
	str	x8, [x19, #64]
Lloh2:
	adrp	x22, _MP4_SAMPLE_TABLE_STSZ@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MP4_SAMPLE_TABLE_STSZ@GOTPAGEOFF]
	ldr	x3, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_mp4_read_sample_table
	str	x0, [x19]
	ldr	x8, [x23]
	cmp	x8, x0
	b.ne	LBB0_38
; %bb.4:
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w9, [x19, #40]
	mov	w10, #16960
	movk	w10, #15, lsl #16
	mul	w9, w9, w10
	sdiv	w8, w9, w8
	stp	w8, w8, [x19, #32]
LBB0_6:
	ldr	w8, [x19, #80]
	cbnz	w8, LBB0_9
; %bb.7:
Lloh4:
	adrp	x8, _MP4_SAMPLE_TABLE_STTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MP4_SAMPLE_TABLE_STTS@GOTPAGEOFF]
Lloh6:
	ldr	x3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_mp4_read_sample_table
	str	x0, [x19]
	ldr	x8, [x23]
	cmp	x8, x0
	b.ne	LBB0_38
; %bb.8:
	ldr	w8, [x19, #80]
LBB0_9:
	sub	w8, w8, #1
	str	w8, [x19, #80]
	ldr	x8, [x21, #16]
Lloh7:
	adrp	x9, _MP4_SAMPLE_TABLE_CTTS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MP4_SAMPLE_TABLE_CTTS@GOTPAGEOFF]
Lloh9:
	ldr	x3, [x9]
	ldr	x9, [x8, x3, lsl #3]
	cbz	x9, LBB0_15
; %bb.10:
	ldr	w8, [x19, #96]
	cbnz	w8, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_mp4_read_sample_table
	str	x0, [x19]
	ldr	x8, [x23]
	cmp	x8, x0
	b.ne	LBB0_38
LBB0_12:
	ldr	w8, [x21]
	cbz	w8, LBB0_14
; %bb.13:
	ldp	w9, w10, [x19, #40]
	add	w9, w10, w9
	mov	w10, #16960
	movk	w10, #15, lsl #16
	mul	w9, w9, w10
	sdiv	w8, w9, w8
	str	w8, [x19, #32]
LBB0_14:
	ldr	w8, [x19, #96]
	sub	w8, w8, #1
	str	w8, [x19, #96]
	ldr	x8, [x21, #16]
LBB0_15:
	ldr	w9, [x19, #72]
	ldr	w10, [x19, #40]
	add	w9, w10, w9
	str	w9, [x19, #40]
	ldr	x9, [x19, #88]
Lloh10:
	adrp	x24, _MP4_SAMPLE_TABLE_STSS@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MP4_SAMPLE_TABLE_STSS@GOTPAGEOFF]
	ldr	x3, [x24]
	lsl	x10, x3, #3
	ldr	x9, [x9, x10]
	ldr	x8, [x8, x10]
	cmp	x9, x8
	b.ge	LBB0_18
; %bb.16:
	ldr	x9, [x19, #48]
	cbnz	x9, LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_mp4_read_sample_table
	ldr	x0, [x23]
	str	x0, [x19]
	ldr	x8, [x21, #16]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
LBB0_18:
	cbz	x8, LBB0_25
; %bb.19:
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #48]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19, #56]
	b.ne	LBB0_26
; %bb.20:
	str	xzr, [x19, #48]
	b	LBB0_26
LBB0_21:
	ldr	w8, [x19, #100]
	cbnz	w8, LBB0_23
; %bb.22:
Lloh12:
	adrp	x8, _MP4_SAMPLE_TABLE_STSC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MP4_SAMPLE_TABLE_STSC@GOTPAGEOFF]
Lloh14:
	ldr	x3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_mp4_read_sample_table
	str	x0, [x19]
	ldr	x8, [x23]
	cmp	x8, x0
	b.ne	LBB0_38
LBB0_23:
Lloh15:
	adrp	x8, _MP4_SAMPLE_TABLE_STCO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MP4_SAMPLE_TABLE_STCO@GOTPAGEOFF]
Lloh17:
	ldr	x3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_mp4_read_sample_table
	str	x0, [x19]
	ldr	x8, [x23]
	cmp	x8, x0
	b.ne	LBB0_38
; %bb.24:
	ldr	w8, [x19, #100]
	sub	w8, w8, #1
	str	w8, [x19, #100]
	ldr	x8, [x19, #64]
	b	LBB0_3
LBB0_25:
	str	wzr, [x19, #56]
LBB0_26:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_38
; %bb.27:
	ldr	x23, [x19, #16]
	ldr	x9, [x19, #64]
	cbz	x9, LBB0_37
; %bb.28:
	cmp	x23, x8
	b.hs	LBB0_36
; %bb.29:
Lloh18:
	adrp	x24, _MP4_SAMPLE_TABLE_STTS@GOTPAGE
Lloh19:
	ldr	x24, [x24, _MP4_SAMPLE_TABLE_STTS@GOTPAGEOFF]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_mp4_read_sample_table
	cbnz	x0, LBB0_36
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	w8, [x19, #80]
	cbnz	w8, LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x3, [x24]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_mp4_read_sample_table
	cbnz	x0, LBB0_36
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	w8, [x19, #80]
LBB0_34:                                ;   in Loop: Header=BB0_30 Depth=1
	sub	w8, w8, #1
	str	w8, [x19, #80]
	ldr	w8, [x19, #72]
	ldr	w9, [x19, #40]
	add	w8, w9, w8
	str	w8, [x19, #40]
	ldp	x8, x9, [x19, #16]
	add	x23, x8, x23
	ldr	x8, [x19, #64]
	add	x9, x9, #1
	str	x9, [x19, #24]
	subs	x8, x8, #1
	str	x8, [x19, #64]
	b.eq	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x8, [x21, #8]
	cmp	x23, x8
	b.lo	LBB0_30
LBB0_36:
	ldr	x0, [x19]
LBB0_37:
	str	x23, [x19, #16]
LBB0_38:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.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_STSZ,8,3      ; @MP4_SAMPLE_TABLE_STSZ
	.comm	_MP4_SAMPLE_TABLE_STTS,8,3      ; @MP4_SAMPLE_TABLE_STTS
	.comm	_MP4_SAMPLE_TABLE_CTTS,8,3      ; @MP4_SAMPLE_TABLE_CTTS
	.comm	_MP4_SAMPLE_TABLE_STSS,8,3      ; @MP4_SAMPLE_TABLE_STSS
	.no_dead_strip	_mp4_read_sample_header
.subsections_via_symbols
