	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_reader_read
_mp4_reader_read:                       ## @mp4_reader_read
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_VC_CONTAINER_READ_FLAG_FORCE_TRACK@GOTPCREL(%rip), %rax
	testq	%rdx, (%rax)
	je	LBB0_1
## %bb.9:
	movq	(%r14), %r15
	movq	(%r12), %rax
	cmpq	%rax, %r15
	jb	LBB0_12
	jmp	LBB0_11
LBB0_1:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rbx, %r10
	movq	8(%r12), %r8
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movl	$-1, %ebx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %r15
	movl	%esi, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	cmpq	%rdi, %rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8,%rdi,8), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	cmpq	%r9, (%rcx)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	sets	%dl
	movl	8(%rcx), %esi
	cmpl	%ebx, %esi
	setl	%cl
	orb	%dl, %cl
	movq	%rdi, %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rcx
	movl	%ebx, %esi
	jmp	LBB0_6
LBB0_8:
	movq	%r10, %rbx
	cmpq	%rax, %r15
	jae	LBB0_11
LBB0_12:
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_mp4_read_sample_header
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_25
## %bb.13:
	testq	%r14, %r14
	je	LBB0_26
## %bb.14:
	movl	36(%r13), %eax
	movl	%eax, 36(%r14)
	movl	32(%r13), %eax
	movl	%eax, 32(%r14)
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	cmpq	$0, 24(%r13)
	je	LBB0_16
## %bb.15:
	movq	_VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 20(%r14)
LBB0_16:
	movl	12(%r13), %ecx
	testl	%ecx, %ecx
	jne	LBB0_18
## %bb.17:
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 20(%r14)
LBB0_18:
	movq	%r15, (%r14)
	movl	16(%r13), %eax
	movl	%eax, 8(%r14)
	subl	%ecx, %eax
	movl	%eax, 12(%r14)
	movq	_VC_CONTAINER_READ_FLAG_SKIP@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_19
LBB0_26:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mp4_read_sample_data           ## TAILCALL
LBB0_11:
	movq	_VC_CONTAINER_ERROR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_20
LBB0_21:
	movq	(%rsi), %rax
	jmp	LBB0_25
LBB0_20:
	movq	24(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.22:
	movl	16(%r14), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%rsi, %rbx
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_mp4_read_sample_data
	cmpq	(%rbx), %rax
	jne	LBB0_25
## %bb.23:
	movl	-44(%rbp), %ecx
	movl	%ecx, 12(%r14)
	cmpl	$0, 12(%r13)
	je	LBB0_25
## %bb.24:
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 20(%r14)
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_READ_FLAG_FORCE_TRACK,8,3 ## @VC_CONTAINER_READ_FLAG_FORCE_TRACK
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_INVALID_ARGUMENT,8,3 ## @VC_CONTAINER_ERROR_INVALID_ARGUMENT
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_PACKET_FLAG_KEYFRAME,4,2 ## @VC_CONTAINER_PACKET_FLAG_KEYFRAME
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,8,3 ## @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_READ_FLAG_INFO,8,3 ## @VC_CONTAINER_READ_FLAG_INFO
	.no_dead_strip	_mp4_reader_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_reader_read
_mp4_reader_read:                       ; @mp4_reader_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _VC_CONTAINER_READ_FLAG_FORCE_TRACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_FORCE_TRACK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x2
	b.eq	LBB0_11
; %bb.1:
	ldr	x21, [x19]
	ldr	x8, [x20]
LBB0_2:
	cmp	x21, x8
	b.hs	LBB0_16
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8]
	ldr	x23, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_mp4_read_sample_header
Lloh3:
	adrp	x24, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.4:
	cbz	x19, LBB0_10
; %bb.5:
	ldr	d0, [x23, #32]
	str	d0, [x19, #32]
Lloh5:
	adrp	x25, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGE
Lloh6:
	ldr	x25, [x25, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [x19, #20]
	ldr	x9, [x23, #24]
	cbz	x9, LBB0_7
; %bb.6:
Lloh7:
	adrp	x9, _VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_7:
	ldr	w9, [x23, #12]
	cbnz	w9, LBB0_9
; %bb.8:
Lloh10:
	adrp	x10, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGE
Lloh11:
	ldr	x10, [x10, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x19, #20]
LBB0_9:
	str	x21, [x19]
	ldr	w8, [x23, #16]
	sub	w9, w8, w9
	stp	w8, w9, [x19, #8]
Lloh13:
	adrp	x8, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	tst	x8, x22
	b.eq	LBB0_18
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, #0
	mov	x4, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_mp4_read_sample_data
LBB0_11:
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.12:
	mov	x21, #0
	mov	x9, #0
	ldr	x10, [x20, #8]
Lloh16:
	adrp	x11, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh17:
	ldr	x11, [x11, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	mov	w12, #-1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x9, lsl #3]
	ldr	x13, [x13]
	ldr	x13, [x13]
	ldr	x14, [x13]
	cmp	x14, x11
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w12, #0
	ldr	w13, [x13, #8]
	ccmp	w13, w12, #8, ge
	cset	w14, lt
	cmp	w14, #0
	csel	w12, w13, w12, ne
	csel	x21, x9, x21, ne
	b	LBB0_13
LBB0_16:
Lloh19:
	adrp	x8, _VC_CONTAINER_ERROR_INVALID_ARGUMENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
Lloh22:
	adrp	x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	tst	x8, x22
	b.eq	LBB0_20
LBB0_19:
	ldr	x0, [x24]
	b	LBB0_17
LBB0_20:
	ldr	x3, [x19, #24]
	cbz	x3, LBB0_19
; %bb.21:
	ldr	w8, [x19, #16]
	str	w8, [sp, #12]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_mp4_read_sample_data
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.22:
	ldr	w8, [sp, #12]
	str	w8, [x19, #12]
	ldr	w8, [x23, #12]
	cbz	w8, LBB0_17
; %bb.23:
	ldr	w8, [x25]
	ldr	w9, [x19, #20]
	bic	w8, w9, w8
	str	w8, [x19, #20]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_READ_FLAG_FORCE_TRACK,8,3 ; @VC_CONTAINER_READ_FLAG_FORCE_TRACK
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_INVALID_ARGUMENT,8,3 ; @VC_CONTAINER_ERROR_INVALID_ARGUMENT
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_PACKET_FLAG_KEYFRAME,4,2 ; @VC_CONTAINER_PACKET_FLAG_KEYFRAME
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,8,3 ; @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_READ_FLAG_INFO,8,3 ; @VC_CONTAINER_READ_FLAG_INFO
	.no_dead_strip	_mp4_reader_read
.subsections_via_symbols
