	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp3_seek
_mp3_seek:                              ## @mp3_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, %r15d
	movq	%rdx, %rsi
	movq	%rdi, %r12
	movq	32(%rdi), %r14
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_AVFMT_FLAG_FAST_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%rdi), %ebx
	movq	(%r14), %r13
	testq	%r13, %r13
	jle	LBB0_5
## %bb.1:
	cmpq	$0, 32(%r14)
	je	LBB0_8
LBB0_2:
	cmpq	$0, 24(%r14)
	je	LBB0_10
LBB0_3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, %edx
	callq	_av_index_search_timestamp
	movq	%rax, %r15
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	testq	%r15, %r15
	js	LBB0_24
## %bb.4:
	movq	8(%rbx), %rax
	shlq	$4, %r15
	leaq	(%rax,%r15), %r13
	movq	8(%rax,%r15), %rsi
	jmp	LBB0_17
LBB0_5:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r12), %edi
	callq	_avio_size
	testq	%rax, %rax
	jle	LBB0_7
## %bb.6:
	movq	8(%r12), %rcx
	subq	(%rcx), %rax
	cmovgq	%rax, %r13
LBB0_7:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	$0, 32(%r14)
	jne	LBB0_2
LBB0_8:
	testl	%ebx, %ebx
	jne	LBB0_12
	jmp	LBB0_23
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_23
## %bb.11:
	cmpq	$0, 16(%r14)
	je	LBB0_3
LBB0_12:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdx
	movl	$-1, %r15d
	testq	%rdx, %rdx
	jle	LBB0_24
## %bb.13:
	testq	%r13, %r13
	jle	LBB0_24
## %bb.14:
	cmpq	$0, 16(%r14)
	jne	LBB0_16
## %bb.15:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movq	%rsi, %r15
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	%r15, %rsi
	movq	(%rbx), %rdx
LBB0_16:
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_av_clip64
	movl	%eax, -72(%rbp)
	movq	(%rbx), %rdx
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_av_rescale
	movslq	%eax, %rsi
	movq	8(%r12), %rax
	addq	(%rax), %rsi
	movq	%rsi, -64(%rbp)
	leaq	-72(%rbp), %r13
LBB0_17:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rdi
	callq	_mp3_sync
	movq	%rax, %r15
	testq	%rax, %rax
	js	LBB0_24
## %bb.18:
	leaq	-72(%rbp), %rax
	cmpq	%rax, %r13
	sete	%al
	cmpq	$0, 16(%r14)
	je	LBB0_22
## %bb.19:
	testb	%al, %al
	je	LBB0_22
## %bb.20:
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.21:
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_av_rescale
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movq	(%rax), %rax
	subq	%rax, %r15
	movl	8(%r14), %esi
	movq	(%r14), %rdx
	movq	%r15, %rdi
	callq	_av_rescale
	imull	%ebx, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, -72(%rbp)
LBB0_22:
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ff_update_cur_dts
	xorl	%r15d, %r15d
	jmp	LBB0_24
LBB0_23:
	movl	$-1, %r15d
LBB0_24:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVFMT_FLAG_FAST_SEEK,4,2       ## @AVFMT_FLAG_FAST_SEEK
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using MP3 TOC to seek; may be imprecise.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Using scaling to seek VBR MP3; may be imprecise.\n"

	.no_dead_strip	_mp3_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp3_seek
_mp3_seek:                              ; @mp3_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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	ldp	x8, x24, [x0, #24]
	ldr	x20, [x8]
	ldr	w25, [x0]
Lloh0:
	adrp	x8, _AVFMT_FLAG_FAST_SEEK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVFMT_FLAG_FAST_SEEK@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	ldr	x23, [x24]
	cmp	x23, #0
	b.gt	LBB0_3
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_avio_size
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	subs	x8, x0, x8
	csel	x23, x8, x23, gt
LBB0_3:
	and	w8, w26, w25
	ldr	x9, [x24, #32]
	cbz	x9, LBB0_7
; %bb.4:
	ldr	x9, [x24, #24]
	cbz	x9, LBB0_8
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_av_index_search_timestamp
	mov	x22, x0
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	tbnz	x22, #63, LBB0_22
; %bb.6:
	ldr	x8, [x20, #8]
	add	x23, x8, x22, lsl #4
	ldr	x1, [x23, #8]
	b	LBB0_15
LBB0_7:
	cbnz	w8, LBB0_10
	b	LBB0_11
LBB0_8:
	cbz	w8, LBB0_11
; %bb.9:
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_5
LBB0_10:
	ldr	x2, [x20]
	cmp	x2, #1
	ccmp	x23, #1, #8, ge
	b.ge	LBB0_12
LBB0_11:
	mov	w22, #-1
	b	LBB0_22
LBB0_12:
	ldr	x8, [x24, #16]
	cbnz	x8, LBB0_14
; %bb.13:
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	x2, [x20]
LBB0_14:
	mov	x0, x22
	mov	w1, #0
	bl	_av_clip64
	str	w0, [sp]
	ldr	x2, [x20]
	mov	x1, x23
	bl	_av_rescale
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x1, x8, w0, sxtw
	str	x1, [sp, #8]
	mov	x23, sp
LBB0_15:
	mov	x0, x19
	mov	x2, x21
	bl	_mp3_sync
	mov	x22, x0
	tbnz	x0, #63, LBB0_21
; %bb.16:
	ldr	x9, [x24, #16]
	mov	x8, sp
	cmp	x23, x8
	cset	w8, eq
	cbz	x9, LBB0_20
; %bb.17:
	cbz	w8, LBB0_20
; %bb.18:
	ldr	x2, [x24, #8]
	cbz	x2, LBB0_20
; %bb.19:
	ldr	x0, [x20]
	mov	w1, #1
	bl	_av_rescale
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	sub	x0, x22, x8
	ldr	w1, [x24, #8]
	ldr	x2, [x24]
	bl	_av_rescale
	mul	w8, w0, w21
	str	w8, [sp]
LBB0_20:
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_ff_update_cur_dts
	mov	w22, #0
	b	LBB0_22
LBB0_21:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_22:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AVFMT_FLAG_FAST_SEEK,4,2       ; @AVFMT_FLAG_FAST_SEEK
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using MP3 TOC to seek; may be imprecise.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Using scaling to seek VBR MP3; may be imprecise.\n"

	.no_dead_strip	_mp3_seek
.subsections_via_symbols
