	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_read_seek
_mpc_read_seek:                         ## @mpc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_DELAY_FRAMES@GOTPCREL(%rip), %r13
	movq	%rdx, %rdi
	subq	(%r13), %rdi
	xorl	%esi, %esi
	callq	_FFMAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_av_index_search_timestamp
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	shlq	$4, %rdx
	movq	%r12, %rsi
	subq	(%r13), %rsi
	cmpq	%rsi, -16(%rdx,%rcx)
	jge	LBB0_2
LBB0_3:
	movl	$-1, %r15d
	testq	%r12, %r12
	js	LBB0_12
## %bb.4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%r12, 8(%rbx)
	jle	LBB0_12
## %bb.5:
	subq	(%r13), %r12
	movq	(%rbx), %rdx
	movq	16(%rbx), %rax
	movq	%rdx, %rcx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	decq	%rax
	movq	%rax, (%rbx)
	movq	%rax, %rcx
LBB0_7:
	xorl	%r15d, %r15d
	cmpq	%r12, %rcx
	jge	LBB0_12
## %bb.8:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	-60(%rbp), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_av_read_frame
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	callq	_av_packet_unref
	cmpq	%r12, (%rbx)
	jl	LBB0_9
	jmp	LBB0_12
LBB0_2:
	movl	%eax, %eax
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r15d, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rbx)
	movl	%eax, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DELAY_FRAMES,8,3               ## @DELAY_FRAMES
	.no_dead_strip	_mpc_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_read_seek
_mpc_read_seek:                         ; @mpc_read_seek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x19, x0
	ldp	x23, x8, [x0]
	ldr	x21, [x8, w1, sxtw #3]
Lloh0:
	adrp	x24, _DELAY_FRAMES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DELAY_FRAMES@GOTPAGEOFF]
	ldr	x8, [x24]
	sub	x0, x2, x8
	mov	w1, #0
	bl	_FFMAX
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_av_index_search_timestamp
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x9, [x21, #8]
	ldrsw	x10, [x21]
	add	x10, x9, x10, lsl #4
	ldur	x10, [x10, #-16]
	ldr	x11, [x24]
	sub	x11, x20, x11
	cmp	x10, x11
	b.ge	LBB0_11
LBB0_2:
	tbnz	x20, #63, LBB0_10
; %bb.3:
	ldr	x8, [x23, #8]
	cmp	x8, x20
	b.le	LBB0_10
; %bb.4:
	ldr	x8, [x24]
	sub	x21, x20, x8
	ldr	x20, [x23]
	ldr	x9, [x23, #16]
	mov	x8, x20
	cbz	x9, LBB0_8
; %bb.5:
	sub	x8, x9, #1
	str	x8, [x23]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x1, sp, #12
	mov	x0, x19
	bl	_av_read_frame
	tbnz	w0, #31, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #12
	bl	_av_packet_unref
	ldr	x8, [x23]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x21
	b.lt	LBB0_6
; %bb.9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	mov	w0, #-1
	b	LBB0_12
LBB0_11:
	mov	x8, x0
	mov	w0, #0
	add	x8, x9, w8, uxtw #4
	ldr	x8, [x8, #8]
	str	x8, [x23]
LBB0_12:
	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
	add	sp, sp, #80
	ret
LBB0_13:
	str	x20, [x23]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DELAY_FRAMES,8,3               ; @DELAY_FRAMES
	.no_dead_strip	_mpc_read_seek
.subsections_via_symbols
