	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_reader_seek
_mp4_reader_seek:                       ## @mp4_reader_seek
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	(%rax), %rdi
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_VC_CONTAINER_PARAM_UNUSED
	movq	%rbx, %rdi
	callq	_VC_CONTAINER_PARAM_UNUSED
	cmpq	$0, (%r13)
	je	LBB0_37
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	incq	%rbx
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jb	LBB0_2
## %bb.3:
	cmpl	$0, (%r14)
	je	LBB0_11
## %bb.4:
	testq	%rax, %rax
	je	LBB0_5
## %bb.14:
	movq	8(%r13), %rcx
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	je	LBB0_27
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rsi
	cmpq	$0, 16(%rsi)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%rsi), %rsi
	cmpq	%rdx, (%rsi)
	jne	LBB0_17
## %bb.6:
	cmpq	%rax, %rbx
	jne	LBB0_7
	jmp	LBB0_27
LBB0_37:
	cmpl	$0, (%r14)
	jne	LBB0_34
	jmp	LBB0_35
LBB0_11:
	testq	%rax, %rax
	je	LBB0_35
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mp4_read_sample_header
	incq	%rbx
	cmpq	(%r13), %rbx
	jb	LBB0_13
	jmp	LBB0_35
LBB0_5:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	cmpq	%rax, %rbx
	je	LBB0_27
LBB0_7:
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	leaq	-56(%rbp), %r8
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_mp4_find_sample
	movq	-56(%rbp), %rdx
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_27
## %bb.8:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_MP4_SAMPLE_TABLE_STSS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_mp4_seek_sample_table
	movq	%rax, -56(%rbp)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.9:
	movq	16(%r15), %rax
	movq	_MP4_SAMPLE_TABLE_STSS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_10
## %bb.18:
	movq	%r13, %rdi
	callq	__READ_U32
	decq	%rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jbe	LBB0_20
## %bb.19:
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_10:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_20:
	xorl	%r14d, %r14d
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	incq	%r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	_MP4_SAMPLE_TABLE_STSS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rax,%rdx,8), %r14
	jae	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%r13, %rdi
	callq	__READ_U32
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	decq	%rax
	cmpq	%rcx, %rax
	jbe	LBB0_21
LBB0_23:
	movq	_VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	cmovneq	%rax, %r15
	movq	%r15, %rcx
LBB0_24:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_25:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mp4_seek_track
	movq	%rax, -56(%rbp)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.26:
	movl	8(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_27:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.28:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r12
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r15
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_33
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r14
	cmpq	$0, (%r14)
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	callq	_mp4_find_sample
	movq	-56(%rbp), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_36
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_mp4_seek_track
	movq	%rax, -56(%rbp)
	movq	(%r13), %rax
	jmp	LBB0_32
LBB0_33:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_34:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
LBB0_35:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_36:
	movq	%rcx, %rax
	addq	$40, %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	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ## @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_MP4_SAMPLE_TABLE_STSS,8,3      ## @MP4_SAMPLE_TABLE_STSS
	.comm	_VC_CONTAINER_SEEK_FLAG_FORWARD,4,2 ## @VC_CONTAINER_SEEK_FLAG_FORWARD
	.no_dead_strip	_mp4_reader_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_reader_seek
_mp4_reader_seek:                       ; @mp4_reader_seek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x0, [x8]
	ldr	w21, [x1]
	bl	_VC_CONTAINER_PARAM_UNUSED
	mov	x0, x23
	bl	_VC_CONTAINER_PARAM_UNUSED
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x23, x23, #1
	ldr	x8, [x19]
	cmp	x23, x8
	b.lo	LBB0_2
; %bb.3:
	ldr	w9, [x20]
	cbz	w9, LBB0_16
; %bb.4:
	mov	x23, #0
	cbz	x8, LBB0_9
; %bb.5:
	ldr	x9, [x19, #8]
Lloh0:
	adrp	x10, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	cmp	x8, x23
	b.eq	LBB0_26
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x23, lsl #3]
	ldr	x12, [x11, #16]
	cbz	x12, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x11, [x11, #8]
	ldr	x11, [x11]
	cmp	x11, x10
	b.ne	LBB0_6
LBB0_9:
	cmp	x23, x8
	b.eq	LBB0_26
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8]
	ldr	x24, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x21
	bl	_mp4_find_sample
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x26, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.11:
	mov	x25, x0
Lloh5:
	adrp	x27, _MP4_SAMPLE_TABLE_STSS@GOTPAGE
Lloh6:
	ldr	x27, [x27, _MP4_SAMPLE_TABLE_STSS@GOTPAGEOFF]
	ldr	x3, [x27]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x24
	bl	_mp4_seek_sample_table
	str	x0, [sp, #8]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.12:
	ldr	x8, [x24, #16]
	ldr	x9, [x27]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_24
; %bb.13:
	mov	x0, x19
	bl	__READ_U32
	sub	x8, x0, #1
	cmp	x8, x25
	b.ls	LBB0_19
; %bb.14:
	mov	x28, #0
	b	LBB0_22
LBB0_15:
	ldr	w8, [x20]
	cbnz	w8, LBB0_32
	b	LBB0_33
LBB0_16:
	cbz	x8, LBB0_33
; %bb.17:
	mov	x20, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x8, [x8]
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_mp4_read_sample_header
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lo	LBB0_18
	b	LBB0_33
LBB0_19:
	mov	x26, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	add	x26, x26, #1
	ldr	x8, [x24, #16]
	ldr	x9, [x27]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x26, x8
	b.hs	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x19
	bl	__READ_U32
	sub	x8, x0, #1
	cmp	x8, x25
	b.ls	LBB0_20
LBB0_22:
Lloh7:
	adrp	x9, _VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w22
	csel	x25, x28, x8, eq
LBB0_23:
Lloh10:
	adrp	x26, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh11:
	ldr	x26, [x26, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_24:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_mp4_seek_track
	str	x0, [sp, #8]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.25:
	ldr	w21, [x24, #8]
LBB0_26:
	ldr	x8, [x19]
	cbz	x8, LBB0_32
; %bb.27:
	mov	x22, #0
Lloh12:
	adrp	x24, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh13:
	ldr	x24, [x24, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_32
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x9, [x9]
	ldr	x23, [x9]
	ldr	x9, [x23]
	cbnz	x9, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_mp4_find_sample
	mov	x3, x0
	ldr	x0, [sp, #8]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_mp4_seek_track
	str	x0, [sp, #8]
	ldr	x8, [x19]
	b	LBB0_28
LBB0_32:
	str	w21, [x20]
LBB0_33:
Lloh14:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
LBB0_34:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ; @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_MP4_SAMPLE_TABLE_STSS,8,3      ; @MP4_SAMPLE_TABLE_STSS
	.comm	_VC_CONTAINER_SEEK_FLAG_FORWARD,4,2 ; @VC_CONTAINER_SEEK_FLAG_FORWARD
	.no_dead_strip	_mp4_reader_seek
.subsections_via_symbols
