	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_demux_seek
_mpc_demux_seek:                        ## @mpc_demux_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	32(%rdi), %rdi
	callq	*8(%rdi)
	movl	%eax, %ecx
	subl	(%r12), %ecx
	shll	$3, %ecx
	cmpl	%r14d, %ecx
	jg	LBB0_3
## %bb.1:
	shll	$3, %eax
	cmpl	%r14d, %eax
	jle	LBB0_3
## %bb.2:
	movl	%r14d, %eax
	subl	%ecx, %eax
	sarl	$3, %eax
	cltq
	addq	56(%r12), %rax
	movq	%rax, 16(%r12)
	andl	$7, %r14d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r12)
	jmp	LBB0_7
LBB0_3:
	movl	%r14d, %ebx
	sarl	$3, %ebx
	cmpl	$7, 24(%r12)
	jne	LBB0_5
## %bb.4:
	movl	28(%r12), %eax
	subl	%eax, %ebx
	andl	$-4, %ebx
	addl	%eax, %ebx
LBB0_5:
	movq	%r12, %rdi
	callq	_mpc_demux_clear_buff
	movq	32(%r12), %rdi
	movl	%ebx, %esi
	callq	*(%rdi)
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	shll	$3, %ebx
	subl	%ebx, %r14d
LBB0_7:
	leal	7(%r14), %esi
	sarl	$3, %esi
	cmpl	$7, 24(%r12)
	jne	LBB0_9
## %bb.8:
	addl	%r15d, %esi
	addl	$3, %esi
	andl	$-4, %esi
	movq	_MPC_BUFFER_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	jmp	LBB0_10
LBB0_9:
	addl	%r15d, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
LBB0_10:
	callq	_mpc_demux_fill
	movl	%r14d, %eax
	sarl	$3, %eax
	cltq
	addq	%rax, 16(%r12)
	andl	$7, %r14d
	movl	$8, %eax
	subl	%r14d, %eax
	movl	%eax, 8(%r12)
	movq	_MPC_STATUS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:
	movq	_MPC_STATUS_FAIL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC_STATUS_FAIL,4,2            ## @MPC_STATUS_FAIL
	.comm	_MPC_BUFFER_SWAP,4,2            ## @MPC_BUFFER_SWAP
	.comm	_MPC_STATUS_OK,4,2              ## @MPC_STATUS_OK
	.no_dead_strip	_mpc_demux_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_demux_seek
_mpc_demux_seek:                        ; @mpc_demux_seek
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #32]
	ldr	x8, [x0, #8]
	blr	x8
	ldr	w8, [x19]
	sub	w8, w0, w8
	lsl	w8, w8, #3
	lsl	w9, w0, #3
	cmp	w8, w21
	ccmp	w9, w21, #4, le
	b.gt	LBB0_5
; %bb.1:
	asr	w22, w21, #3
	ldr	w8, [x19, #24]
	cmp	w8, #7
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #28]
	sub	w9, w22, w8
	and	w9, w9, #0xfffffffc
	add	w22, w9, w8
LBB0_3:
	mov	x0, x19
	bl	_mpc_demux_clear_buff
	ldr	x0, [x19, #32]
	ldr	x8, [x0]
	mov	x1, x22
	blr	x8
	cbz	w0, LBB0_10
; %bb.4:
	sub	w21, w21, w22, lsl #3
	b	LBB0_6
LBB0_5:
	ldr	x9, [x19, #56]
	sub	w8, w21, w8
	asr	w8, w8, #3
	add	x8, x9, w8, sxtw
	str	x8, [x19, #16]
	and	w21, w21, #0x7
	stp	xzr, xzr, [x19, #40]
LBB0_6:
	ldr	w9, [x19, #24]
	add	w8, w21, #7
	asr	w8, w8, #3
	cmp	w9, #7
	b.ne	LBB0_8
; %bb.7:
	add	w8, w20, w8
	add	w8, w8, #3
	and	w1, w8, #0xfffffffc
Lloh0:
	adrp	x8, _MPC_BUFFER_SWAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPC_BUFFER_SWAP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	b	LBB0_9
LBB0_8:
	add	w1, w8, w20
	mov	x0, x19
	mov	w2, #0
LBB0_9:
	bl	_mpc_demux_fill
	asr	w8, w21, #3
	ldr	x9, [x19, #16]
	add	x8, x9, w8, sxtw
	str	x8, [x19, #16]
	and	w8, w21, #0x7
	mov	w9, #8
	sub	w8, w9, w8
	str	w8, [x19, #8]
Lloh3:
	adrp	x8, _MPC_STATUS_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPC_STATUS_OK@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _MPC_STATUS_FAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPC_STATUS_FAIL@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC_STATUS_FAIL,4,2            ; @MPC_STATUS_FAIL
	.comm	_MPC_BUFFER_SWAP,4,2            ; @MPC_BUFFER_SWAP
	.comm	_MPC_STATUS_OK,4,2              ; @MPC_STATUS_OK
	.no_dead_strip	_mpc_demux_seek
.subsections_via_symbols
