	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_demux_SP
_mpc_demux_SP:                          ## @mpc_demux_SP
	.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	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_mpc_demux_pos
	movq	%rax, %r15
	leaq	16(%r13), %rbx
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mpc_bits_get_size
	movslq	-44(%rbp), %rax
	movslq	%r12d, %rcx
	subq	%rcx, %rax
	leaq	(%r15,%rax,8), %rsi
	movq	%r13, %rdi
	movl	$11, %edx
	callq	_mpc_demux_seek
	movl	%eax, %edi
	callq	_MPC_AUTO_FAIL
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mpc_bits_get_block
	movl	%eax, %ebx
	movl	-52(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	-56(%rbp), %esi
	subl	%r12d, %ebx
	addl	-44(%rbp), %ebx
	addl	%esi, %ebx
	shll	$3, %ebx
	movslq	%ebx, %rax
	addq	%r15, %rax
	movq	%rax, 8(%r13)
	movl	$-1, (%r13)
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_mpc_demux_fill
	cmpl	-56(%rbp), %eax
	jge	LBB0_3
## %bb.2:
	movq	_MPC_STATUS_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_3:
	movq	%r13, %rdi
	callq	_mpc_demux_ST
	movl	%eax, %edi
	callq	_MPC_AUTO_FAIL
LBB0_4:
	addl	$11, %r14d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_mpc_demux_seek
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ST"

	.comm	_MPC_STATUS_FAIL,4,2            ## @MPC_STATUS_FAIL
	.no_dead_strip	_mpc_demux_SP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_demux_SP
_mpc_demux_SP:                          ; @mpc_demux_SP
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_mpc_demux_pos
	mov	x21, x0
	add	x23, x19, #16
	add	x1, sp, #12
	mov	x0, x23
	bl	_mpc_bits_get_size
	ldr	w8, [sp, #12]
	sub	w8, w8, w22
	lsl	w8, w8, #3
	add	x1, x21, w8, sxtw
	mov	x0, x19
	mov	w2, #11
	bl	_mpc_demux_seek
	bl	_MPC_AUTO_FAIL
	mov	x1, sp
	mov	x0, x23
	bl	_mpc_bits_get_block
	mov	x23, x0
	ldr	w0, [sp, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	ldr	w1, [sp]
	sub	w9, w23, w22
	add	w8, w9, w8
	add	w8, w8, w1
	lsl	w8, w8, #3
	add	x8, x21, w8, sxtw
	str	x8, [x19, #8]
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x19
	mov	w2, #0
	bl	_mpc_demux_fill
	ldr	w8, [sp]
	cmp	w0, w8
	b.ge	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _MPC_STATUS_FAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MPC_STATUS_FAIL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_mpc_demux_ST
	bl	_MPC_AUTO_FAIL
LBB0_4:
	add	w2, w20, #11
	mov	x0, x19
	mov	x1, x21
	bl	_mpc_demux_seek
LBB0_5:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ST"

	.comm	_MPC_STATUS_FAIL,4,2            ; @MPC_STATUS_FAIL
	.no_dead_strip	_mpc_demux_SP
.subsections_via_symbols
