	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_read_sample_data
_mp4_read_sample_data:                  ## @mp4_read_sample_data
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdx), %r15
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_11
## %bb.1:
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	(%rdx), %r13d
	movl	4(%rdx), %esi
	subl	%esi, %r13d
	testq	%r8, %r8
	je	LBB0_3
## %bb.2:
	movl	(%r12), %eax
	cmpl	%r13d, %eax
	cmovbl	%eax, %r13d
LBB0_3:
	testq	%r14, %r14
	je	LBB0_6
## %bb.4:
	addl	16(%rbx), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_SEEK
	movq	%rax, %r15
	movq	%rax, 8(%rbx)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_11
## %bb.5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_READ_BYTES
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r13d
	movl	4(%rbx), %esi
LBB0_6:
	addl	%r13d, %esi
	movl	%esi, 4(%rbx)
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movl	%r13d, (%r12)
LBB0_8:
	movq	%rdi, %r14
	callq	_STREAM_STATUS
	movq	%rax, %r15
	movq	%rax, 8(%rbx)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_11
## %bb.9:
	movl	4(%rbx), %eax
	cmpl	(%rbx), %eax
	jb	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	callq	_mp4_read_sample_header
LBB0_11:
	movq	%r15, %rax
	addq	$24, %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
	.no_dead_strip	_mp4_read_sample_data
.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_data
_mp4_read_sample_data:                  ; @mp4_read_sample_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x25, [x2, #8]
Lloh0:
	adrp	x26, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x25, x8
	b.ne	LBB0_11
; %bb.1:
	mov	x22, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	w9, w8, [x2]
	sub	w23, w9, w8
	cbz	x4, LBB0_3
; %bb.2:
	ldr	w9, [x22]
	cmp	w9, w23
	csel	w23, w9, w23, lo
LBB0_3:
	cbz	x24, LBB0_6
; %bb.4:
	ldr	w9, [x19, #16]
	add	w1, w9, w8
	mov	x0, x21
	bl	_SEEK
	mov	x25, x0
	str	x0, [x19, #8]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.5:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_READ_BYTES
	mov	x23, x0
	ldr	w8, [x19, #4]
LBB0_6:
	add	w8, w8, w23
	str	w8, [x19, #4]
	cbz	x22, LBB0_8
; %bb.7:
	str	w23, [x22]
LBB0_8:
	mov	x0, x21
	bl	_STREAM_STATUS
	mov	x25, x0
	str	x0, [x19, #8]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.9:
	ldp	w9, w8, [x19]
	cmp	w8, w9
	b.lo	LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_mp4_read_sample_header
LBB0_11:
	mov	x0, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_mp4_read_sample_data
.subsections_via_symbols
