	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_seek
_mov_read_seek:                         ## @mov_read_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
	cmpl	%esi, (%rdi)
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movslq	%esi, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rdx,8), %rbx
	movq	%rbx, -48(%rbp)
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	callq	_mov_seek_stream
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_20
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.12:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.13:
	movq	16(%rbx), %rcx
	movl	%r15d, %edx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	(%rcx,%r15,8), %rbx
	movl	$0, %edx
	testl	%r13d, %r13d
	jg	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rbx), %rdx
	movl	8(%rdx), %edx
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%edx, 12(%rbx)
	cmpq	%r15, %r14
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movl	8(%rax), %esi
	movl	8(%rbx), %edx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_av_rescale_q
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_mov_seek_stream
	movl	(%r12), %eax
	jmp	LBB0_18
LBB0_4:
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -48(%rbp)
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_mov_current_sample_set
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mov_find_next_sample
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	leaq	-48(%rbp), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_mov_current_sample_inc
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mov_find_next_sample
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	cmpl	%r14d, (%rdi)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r15d, 4(%rdi)
	jne	LBB0_11
LBB0_19:
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_mov_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_seek
_mov_read_seek:                         ; @mov_read_seek
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_19
; %bb.1:
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x8, x25, [x0, #8]
	ldr	x24, [x8, w1, sxtw #3]
	str	x24, [sp, #8]
	mov	x1, x24
	bl	_mov_seek_stream
	mov	x21, x0
	tbnz	w0, #31, LBB0_20
; %bb.2:
	ldr	x8, [x25]
	cbz	x8, LBB0_11
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.4:
	mov	x25, #0
	sxtw	x26, w20
	ldr	x9, [x24, #16]
	ldr	w21, [x9, w21, uxtw #2]
	mov	w24, w20
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_18
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x20, [x9, x25, lsl #3]
	cmp	w23, #0
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w10, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x20]
	ldr	w10, [x10, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w10, [x20, #12]
	cmp	x24, x25
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x9, x26, lsl #3]
	ldr	w1, [x8, #8]
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_av_rescale_q
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	bl	_mov_seek_stream
	ldr	w8, [x19]
	b	LBB0_5
LBB0_11:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x22, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x22, lsl #3]
	str	x8, [sp, #8]
	ldr	x0, [x8]
	mov	w1, #0
	bl	_mov_current_sample_set
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_13
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_mov_current_sample_inc
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_mov_find_next_sample
	cbz	x0, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	ldr	w8, [x0]
	cmp	w8, w20
	b.ne	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x0, #4]
	cmp	w8, w21
	b.ne	LBB0_14
LBB0_18:
	mov	w21, #0
	b	LBB0_20
LBB0_19:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
LBB0_20:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_mov_read_seek
.subsections_via_symbols
