	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_find_sample
_mp4_find_sample:                       ## @mp4_find_sample
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	(%rax,%rsi,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	%rdx, %rdi
	callq	_VC_CONTAINER_PARAM_UNUSED
	movl	(%r12), %r15d
	movq	8(%r12), %rax
	movq	_MP4_SAMPLE_TABLE_STTS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	4(%rax,%rcx,8), %esi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_SEEK
	movq	%rax, %r13
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_7
## %bb.1:
	movq	8(%r12), %rax
	movq	(%rbx), %rcx
	xorl	%esi, %esi
	cmpl	$0, (%rax,%rcx,8)
	je	LBB0_7
## %bb.2:
	movl	%r15d, %eax
	imull	%r14d, %eax
	cltq
	imulq	$1125899907, %rax, %rbx         ## imm = 0x431BDE83
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$50, %rbx
	addl	%eax, %ebx
	incl	%r14d
	imull	%r15d, %r14d
	movslq	%r14d, %rax
	imulq	$1125899907, %rax, %r14         ## imm = 0x431BDE83
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$50, %r14
	addl	%eax, %r14d
	xorl	%edx, %edx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	__READ_U32
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	__READ_U32
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_STREAM_STATUS
	movq	%rax, %r13
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %rax
	imulq	%r15, %rax
	movslq	%ebx, %rcx
	cmpq	%rcx, %rax
	ja	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%eax, %ebx
	subl	%eax, %r14d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	%r15, %rdx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	incl	%esi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rax
	movq	_MP4_SAMPLE_TABLE_STTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rax,%rcx,8), %esi
	jb	LBB0_3
	jmp	LBB0_12
LBB0_7:
	xorl	%edx, %edx
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r13, (%rax)
LBB0_14:
	movq	%rdx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	cltd
	idivl	%r12d
	movl	%eax, %edi
	movl	%r14d, %eax
	cltd
	idivl	%r12d
	movl	%eax, %esi
	callq	_MAX
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	%rax, %rdx
	jmp	LBB0_12
LBB0_11:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_MP4_SAMPLE_TABLE_STTS,8,3      ## @MP4_SAMPLE_TABLE_STTS
	.no_dead_strip	_mp4_find_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_find_sample
_mp4_find_sample:                       ; @mp4_find_sample
	.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
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	mov	x23, x3
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8, x1, lsl #3]
	ldr	x8, [x8]
	ldr	x25, [x8]
	mov	x0, x2
	bl	_VC_CONTAINER_PARAM_UNUSED
	ldr	w24, [x25]
	ldr	x8, [x25, #8]
Lloh0:
	adrp	x19, _MP4_SAMPLE_TABLE_STTS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MP4_SAMPLE_TABLE_STTS@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_SEEK
	mov	x22, x0
Lloh2:
	adrp	x27, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x25, #8]
	ldr	x9, [x19]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	cbz	w8, LBB0_6
; %bb.2:
	mov	w28, #0
	mov	x20, #0
	mul	w8, w24, w23
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	smull	x10, w8, w9
	lsr	x11, x10, #63
	asr	x10, x10, #50
	add	w19, w10, w11
	add	w8, w24, w8
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w26, w8, w9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	__READ_U32
	mov	x23, x0
	mov	x0, x21
	bl	__READ_U32
	mov	x24, x0
	mov	x0, x21
	bl	_STREAM_STATUS
	mov	x22, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w24
	mul	x8, x8, x23
	cmp	x8, w19, sxtw
	b.hi	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w19, w19, w8
	sub	w26, w26, w8
	add	x20, x20, x23
	add	w28, w28, #1
	ldr	x8, [x25, #8]
Lloh4:
	adrp	x9, _MP4_SAMPLE_TABLE_STTS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MP4_SAMPLE_TABLE_STTS@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	cmp	w28, w8
	b.lo	LBB0_3
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x8, LBB0_9
; %bb.8:
	str	x22, [x8]
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
	cbz	w24, LBB0_7
; %bb.11:
	sdiv	w0, w19, w24
	sdiv	w1, w26, w24
	bl	_MAX
	add	x20, x0, x20
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_MP4_SAMPLE_TABLE_STTS,8,3      ; @MP4_SAMPLE_TABLE_STTS
	.no_dead_strip	_mp4_find_sample
.subsections_via_symbols
