	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc_demux_seek_sample          ## -- Begin function mpc_demux_seek_sample
	.p2align	4, 0x90
_mpc_demux_seek_sample:                 ## @mpc_demux_seek_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	%rdi, %r12
	movq	_MPC_FRAME_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	32(%rdi), %ecx
	movl	%ebx, %edi
	shll	%cl, %edi
	addl	48(%r12), %esi
	movl	36(%r12), %eax
	cmpl	%eax, %esi
	cmovll	%esi, %eax
	cltd
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	idivl	%edi
	movl	%eax, %r15d
	movq	_MPC_DECODER_SYNTH_DELAY@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	movl	40(%r12), %r8d
	cmpl	$7, %r8d
	jne	LBB0_3
## %bb.1:
	cmpl	$33, %r15d
	jl	LBB0_4
## %bb.2:
	addl	$-32, %r15d
	shll	$5, %ebx
	addl	%ebx, %edx
LBB0_3:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_4:
	imull	%ebx, %r15d
	addl	%r15d, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
LBB0_5:
	movl	(%r12), %eax
	subl	%ecx, %eax
	movl	%r15d, %esi
	movl	%eax, %ecx
	sarl	%cl, %esi
	movl	4(%r12), %ecx
	leal	-1(%rcx), %edi
	cmpl	%ecx, %esi
	cmovll	%esi, %edi
	movq	8(%r12), %rcx
	movslq	%edi, %r13
	movl	(%rcx,%r13,4), %ebx
	movl	%eax, %ecx
	shll	%cl, %r13d
	movl	%r13d, %eax
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movq	16(%r12), %rdi
	movl	%eax, (%rdi)
	cmpl	$8, %r8d
	jl	LBB0_13
## %bb.6:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$11, %edx
	callq	_mpc_demux_seek
	leaq	24(%r12), %rdi
	leaq	-72(%rbp), %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	addl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, (%rax)
	incl	%r13d
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	addl	-72(%rbp), %r14d
	leal	(%rbx,%r14,8), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$11, %edx
	callq	_mpc_demux_seek
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-72(%rbp), %rsi
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	callq	_mpc_bits_get_block
	movl	%eax, %r14d
	cmpl	%r15d, %r13d
	jge	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-64(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r12), %rax
	movl	4(%r12), %edx
	movzbl	(%r12), %ecx
	shll	%cl, %edx
	movl	(%rax), %ecx
	movq	_MPC_FRAME_LENGTH@GOTPCREL(%rip), %rsi
	imull	(%rsi), %edx
	cmpl	%edx, %ecx
	jne	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_mpc_demux_pos
	leal	(,%r14,8), %ecx
	subl	%ecx, %eax
	movq	8(%r12), %rcx
	movslq	4(%r12), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incl	4(%r12)
	movq	16(%r12), %rax
	movl	(%rax), %ecx
	jmp	LBB0_7
LBB0_13:
	xorl	%esi, %esi
	testl	%r15d, %r15d
	setne	%sil
	callq	_mpc_decoder_reset_scf
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_mpc_demux_seek
	cmpl	%r15d, %r13d
	jge	LBB0_19
## %bb.14:
	leaq	24(%r12), %r14
	subl	%r13d, %r15d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	addl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	movl	$20, %esi
	callq	_mpc_bits_read
	addl	%eax, %ebx
	addl	$20, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_mpc_demux_seek
	decl	%r15d
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	4(%r12), %edx
	movzbl	(%r12), %ecx
	shll	%cl, %edx
	movl	(%rax), %ecx
	movq	_MPC_FRAME_LENGTH@GOTPCREL(%rip), %rsi
	imull	(%rsi), %edx
	cmpl	%edx, %ecx
	jne	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	callq	_mpc_demux_pos
	movq	8(%r12), %rcx
	movslq	4(%r12), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incl	4(%r12)
	movq	16(%r12), %rax
	movl	(%rax), %ecx
	jmp	LBB0_15
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subl	%r14d, (%rax)
LBB0_19:
	movq	16(%r12), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	movq	_MPC_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC_FRAME_LENGTH,4,2           ## @MPC_FRAME_LENGTH
	.comm	_MPC_DECODER_SYNTH_DELAY,4,2    ## @MPC_DECODER_SYNTH_DELAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AP"

	.comm	_MPC_STATUS_OK,4,2              ## @MPC_STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc_demux_seek_sample          ; -- Begin function mpc_demux_seek_sample
	.p2align	2
_mpc_demux_seek_sample:                 ; @mpc_demux_seek_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
	mov	x19, x0
Lloh0:
	adrp	x24, _MPC_FRAME_LENGTH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MPC_FRAME_LENGTH@GOTPAGEOFF]
	ldr	w8, [x24]
	ldp	w9, w10, [x0, #32]
	lsl	w25, w8, w9
	ldr	w11, [x0, #48]
	add	w11, w11, w1
	cmp	w11, w10
	csel	w10, w11, w10, lt
	sdiv	w11, w10, w25
Lloh2:
	adrp	x12, _MPC_DECODER_SYNTH_DELAY@GOTPAGE
Lloh3:
	ldr	x12, [x12, _MPC_DECODER_SYNTH_DELAY@GOTPAGEOFF]
Lloh4:
	ldr	w12, [x12]
	msub	w10, w11, w25, w10
	add	w10, w10, w12
	ldr	w12, [x0, #40]
	madd	w13, w11, w8, w10
	sub	w14, w11, #32
	add	w8, w10, w8, lsl #5
	cmp	w11, #33
	csel	w14, wzr, w14, lt
	csel	w8, w13, w8, lt
	cmp	w12, #7
	csel	w27, w11, w14, ne
	csel	w26, w10, w8, ne
	ldp	w8, w10, [x0]
	sub	w8, w8, w9
	asr	w9, w27, w8
	sub	w11, w10, #1
	cmp	w9, w10
	csel	w9, w9, w11, lt
	ldp	x10, x0, [x0, #8]
	ldr	w20, [x10, w9, sxtw #2]
	lsl	w28, w9, w8
	mul	w8, w28, w25
	str	w8, [x0]
	cmp	w12, #8
	b.lt	LBB0_8
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #11
	bl	_mpc_demux_seek
	add	x21, x19, #24
	mov	x1, sp
	mov	x0, x21
	bl	_mpc_bits_get_block
	mov	x23, x0
	cmp	w28, w27
	b.ge	LBB0_13
; %bb.2:
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w9, w25
	str	w9, [x8]
	add	w28, w28, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp]
	add	w8, w23, w8
	add	w20, w20, w8, lsl #3
	mov	x0, x19
	mov	x1, x20
	mov	w2, #11
	bl	_mpc_demux_seek
	mov	x1, sp
	mov	x0, x21
	bl	_mpc_bits_get_block
	mov	x23, x0
	cmp	w28, w27
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #8]
	mov	x1, x22
	mov	w2, #2
	bl	_memcmp
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	ldp	w11, w10, [x19]
	lsl	w10, w10, w11
	ldr	w11, [x24]
	mul	w10, w10, w11
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_mpc_demux_pos
	sub	w8, w0, w23, lsl #3
	ldr	x9, [x19, #8]
	ldrsw	x10, [x19, #4]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	b	LBB0_3
LBB0_8:
	cmp	w27, #0
	cset	w1, ne
	bl	_mpc_decoder_reset_scf
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_mpc_demux_seek
	cmp	w28, w27
	b.ge	LBB0_14
; %bb.9:
	add	x21, x19, #24
	sub	w22, w27, w28
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w9, w9, w25
	str	w9, [x8]
	mov	x0, x21
	mov	w1, #20
	bl	_mpc_bits_read
	add	w8, w20, w0
	add	w20, w8, #20
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_mpc_demux_seek
	subs	w22, w22, #1
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	ldp	w11, w10, [x19]
	lsl	w10, w10, w11
	ldr	w11, [x24]
	mul	w10, w10, w11
	cmp	w9, w10
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_mpc_demux_pos
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	str	w0, [x8, x9, lsl #2]
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	b	LBB0_10
LBB0_13:
	ldr	w8, [x21]
	sub	w8, w8, w23
	str	w8, [x21]
LBB0_14:
	ldr	x8, [x19, #16]
	str	w26, [x8, #4]
Lloh7:
	adrp	x8, _MPC_STATUS_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MPC_STATUS_OK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC_FRAME_LENGTH,4,2           ; @MPC_FRAME_LENGTH
	.comm	_MPC_DECODER_SYNTH_DELAY,4,2    ; @MPC_DECODER_SYNTH_DELAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AP"

	.comm	_MPC_STATUS_OK,4,2              ; @MPC_STATUS_OK
.subsections_via_symbols
