	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function matroska_read_seek
_matroska_read_seek:                    ## @matroska_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	(%rdi), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r14
	cmpq	$0, (%rbx)
	jle	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_matroska_parse_cues
LBB0_2:
	cmpl	$0, (%r14)
	je	LBB0_22
## %bb.3:
	movq	8(%r14), %rax
	movl	4(%rax), %esi
	movl	%r15d, %edi
	callq	_FFMAX
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_av_index_search_timestamp
	movl	%eax, %r15d
	movslq	(%r14), %rax
	testl	%r15d, %r15d
	js	LBB0_5
## %bb.4:
	leal	-1(%rax), %ecx
	cmpl	%ecx, %r15d
	jne	LBB0_24
LBB0_5:
	movq	8(%r14), %rcx
	movl	-8(%rcx,%rax,8), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_matroska_reset_status
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_matroska_clear_queue
	movq	%rbx, %rdi
	callq	_matroska_parse_cluster
	testq	%rax, %rax
	js	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_av_index_search_timestamp
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %eax
	decl	%eax
	cmpl	%eax, %r15d
	je	LBB0_8
LBB0_24:
	movq	%rbx, %rdi
	callq	_matroska_clear_queue
	jmp	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	callq	_matroska_clear_queue
	testl	%r15d, %r15d
	js	LBB0_22
LBB0_10:
	cmpq	$0, (%rbx)
	jns	LBB0_12
## %bb.11:
	movl	(%r14), %eax
	decl	%eax
	cmpl	%eax, %r15d
	jne	LBB0_12
LBB0_22:
	movl	$-1, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_matroska_reset_status
	movl	$-1, 12(%rbx)
	movq	%rbx, %rdi
	callq	_matroska_clear_queue
	movl	$0, 8(%rbx)
	movl	$0, 4(%r14)
	movq	$0, 16(%rbx)
	jmp	LBB0_23
LBB0_12:
	movl	32(%rbx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_19
## %bb.13:
	movq	40(%rbx), %r8
	cmpl	$1, %r9d
	jne	LBB0_15
## %bb.14:
	xorl	%edx, %edx
	jmp	LBB0_17
LBB0_15:
	movl	%r9d, %esi
	andl	$-2, %esi
	leaq	48(%r8), %rdi
	xorl	%edx, %edx
	xorps	%xmm0, %xmm0
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, -32(%rdi)
	movl	(%rax), %ecx
	movl	%ecx, -40(%rdi)
	movq	$0, -48(%rdi)
	movups	%xmm0, (%rdi)
	movl	(%rax), %ecx
	movl	%ecx, -8(%rdi)
	movq	$0, -16(%rdi)
	addq	$2, %rdx
	addq	$64, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_16
LBB0_17:
	testb	$1, %r9b
	je	LBB0_19
## %bb.18:
	shlq	$5, %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r8,%rdx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r8,%rdx)
	movq	$0, (%r8,%rdx)
LBB0_19:
	movq	8(%r14), %rax
	movslq	%r15d, %r15
	movl	(%rax,%r15,8), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_matroska_reset_status
	movq	_AVSEEK_FLAG_ANY@GOTPCREL(%rip), %rcx
	movl	$0, %eax
	testl	%r12d, (%rcx)
	jne	LBB0_21
## %bb.20:
	movq	8(%r14), %rax
	movl	4(%rax,%r15,8), %r13d
	movl	$1, %eax
LBB0_21:
	movl	%eax, 4(%r14)
	movl	%r13d, 24(%rbx)
	movl	$1, 8(%rbx)
	movq	$0, 16(%rbx)
	movq	8(%r14), %rax
	movl	4(%rax,%r15,8), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ff_update_cur_dts
	xorl	%r15d, %r15d
LBB0_23:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_AVSEEK_FLAG_ANY,4,2            ## @AVSEEK_FLAG_ANY
	.no_dead_strip	_matroska_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function matroska_read_seek
_matroska_read_seek:                    ; @matroska_read_seek
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x21, x0
	ldp	x8, x20, [x0]
	ldr	x19, [x8, w1, sxtw #3]
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	str	xzr, [x20]
	mov	x0, x20
	bl	_matroska_parse_cues
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_19
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	mov	x0, x23
	bl	_FFMAX
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_av_index_search_timestamp
	ldrsw	x8, [x19]
	sub	x8, x8, #1
	tbnz	w0, #31, LBB0_5
; %bb.4:
	mov	x24, x0
	cmp	w0, w8
	b.ne	LBB0_9
LBB0_5:
	ldr	x9, [x19, #8]
	lsl	x8, x8, #3
	ldr	w2, [x9, x8]
	mov	x0, x20
	mov	w1, #0
	bl	_matroska_reset_status
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_matroska_clear_queue
	mov	x0, x20
	bl	_matroska_parse_cluster
	tbnz	x0, #63, LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_av_index_search_timestamp
	mov	x24, x0
	tbnz	w0, #31, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	sub	w8, w8, #1
	cmp	w24, w8
	b.eq	LBB0_6
LBB0_9:
	mov	x0, x20
	bl	_matroska_clear_queue
LBB0_10:
	ldr	x8, [x20]
	tbz	x8, #63, LBB0_12
; %bb.11:
	ldr	w8, [x19]
	sub	w8, w8, #1
	cmp	w24, w8
	b.eq	LBB0_19
LBB0_12:
	ldr	w8, [x20, #32]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	ldr	x9, [x20, #40]
	add	x9, x9, #16
Lloh0:
	adrp	x10, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_NOPTS_VALUE@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [x9]
	ldr	w11, [x10]
	stur	w11, [x9, #-8]
	stur	xzr, [x9, #-16]
	add	x9, x9, #32
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_15:
	ldr	x8, [x19, #8]
	sxtw	x25, w24
	sbfiz	x9, x24, #3, #32
	ldr	w2, [x8, x9]
	mov	x0, x20
	mov	w1, #0
	bl	_matroska_reset_status
	mov	w8, #0
Lloh2:
	adrp	x9, _AVSEEK_FLAG_ANY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVSEEK_FLAG_ANY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w22
	b.ne	LBB0_17
; %bb.16:
	ldr	x8, [x19, #8]
	add	x8, x8, x25, lsl #3
	ldr	w23, [x8, #4]
	mov	w8, #1
LBB0_17:
	str	w8, [x19, #4]
	str	w23, [x20, #24]
	mov	w8, #1
	str	w8, [x20, #8]
	str	xzr, [x20, #16]
	ldr	x8, [x19, #8]
	add	x8, x8, x25, lsl #3
	ldr	w2, [x8, #4]
	mov	x0, x21
	mov	x1, x19
	bl	_ff_update_cur_dts
	mov	w21, #0
	b	LBB0_20
LBB0_18:
	mov	x0, x20
	bl	_matroska_clear_queue
	tbz	w24, #31, LBB0_10
LBB0_19:
	mov	w21, #-1
	mov	x0, x20
	mov	w1, #0
	mov	w2, #-1
	bl	_matroska_reset_status
	str	w21, [x20, #12]
	mov	x0, x20
	bl	_matroska_clear_queue
	str	wzr, [x20, #8]
	str	wzr, [x19, #4]
	str	xzr, [x20, #16]
LBB0_20:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_AVSEEK_FLAG_ANY,4,2            ; @AVSEEK_FLAG_ANY
	.no_dead_strip	_matroska_read_seek
.subsections_via_symbols
