	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_demux_ST
_mpc_demux_ST:                          ## @mpc_demux_ST
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	32(%rdi), %eax
	movl	%eax, -64(%rbp)
	cmpq	$0, (%rdi)
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	leaq	-64(%rbp), %r12
	leaq	-60(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mpc_bits_get_size
	movl	-60(%rbp), %r15d
	movl	16(%r14), %ebx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_mpc_bits_read
	movl	%eax, %ecx
	addl	%ebx, %ecx
	movl	%ecx, 8(%r14)
	movl	20(%r14), %r8d
	movq	_MPC_FRAME_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MAX_SEEK_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r9d, %ebx
	shll	%cl, %ebx
	movl	%r8d, %eax
	cltd
	idivl	%ebx
	addl	$2, %eax
	xorl	%ebx, %ebx
	cmpl	%esi, %eax
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	incl	%ebx
	movl	%r9d, %edi
	shll	%cl, %edi
	movl	%r8d, %eax
	cltd
	idivl	%edi
	addl	$2, %eax
	cmpl	%esi, %eax
	jg	LBB0_3
## %bb.4:
	movl	%ecx, 8(%r14)
LBB0_5:
	movl	%eax, -60(%rbp)
	movl	%r15d, %edx
	movl	%ebx, %ecx
	sarl	%cl, %edx
	movl	%eax, %r12d
	shll	%cl, %r12d
	cmpl	%eax, %edx
	cmovlel	%r15d, %r12d
	movslq	%eax, %rdi
	shlq	$2, %rdi
	callq	_malloc
	movl	$-1, %r13d
	movl	%ebx, %ecx
	shll	%cl, %r13d
	movq	%rax, %r15
	movq	%rax, (%r14)
	notl	%r13d
	leal	(%r12,%r13), %eax
	sarl	%cl, %eax
	movl	%eax, 12(%r14)
	leaq	-64(%rbp), %rdi
	leaq	-60(%rbp), %rsi
	callq	_mpc_bits_get_size
	movl	-60(%rbp), %eax
	addl	24(%r14), %eax
	shll	$3, %eax
	movl	%eax, -56(%rbp)
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r15)
	cmpl	$1, 12(%r14)
	je	LBB0_13
## %bb.6:
	leaq	-64(%rbp), %rdi
	leaq	-60(%rbp), %rsi
	callq	_mpc_bits_get_size
	movl	-60(%rbp), %eax
	addl	24(%r14), %eax
	shll	$3, %eax
	movl	%eax, -52(%rbp)
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.7:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
LBB0_8:
	cmpl	$3, %r12d
	jl	LBB0_13
## %bb.9:
	movl	$2, %r15d
	leaq	-64(%rbp), %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%r15d
	cmpl	%r15d, %r12d
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_mpc_bits_golomb_dec
	movl	%eax, %ecx
	andl	$1073741822, %ecx               ## imm = 0x3FFFFFFE
	negl	%ecx
	testb	$1, %al
	cmovel	%eax, %ecx
	movl	%r15d, %edx
	andl	$1, %edx
	movl	%edx, %eax
	xorl	$1, %eax
	movl	-56(%rbp,%rax,4), %eax
	addl	%eax, %eax
	subl	-56(%rbp,%rdx,4), %eax
	leal	(%rax,%rcx,4), %eax
	movl	%eax, -56(%rbp,%rdx,4)
	testl	%r13d, %r15d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	movslq	%edx, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	jmp	LBB0_12
LBB0_13:
	movq	_MPC_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC_STATUS_OK,4,2              ## @MPC_STATUS_OK
	.comm	_MPC_FRAME_LENGTH,4,2           ## @MPC_FRAME_LENGTH
	.comm	_MAX_SEEK_TABLE_SIZE,4,2        ## @MAX_SEEK_TABLE_SIZE
	.no_dead_strip	_mpc_demux_ST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_demux_ST
_mpc_demux_ST:                          ; @mpc_demux_ST
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x0, #32]
	str	w8, [sp, #8]
	ldr	x8, [x0]
	cbnz	x8, LBB0_14
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	add	x1, sp, #12
	bl	_mpc_bits_get_size
	ldr	w20, [sp, #12]
	ldr	w21, [x19, #16]
	add	x0, sp, #8
	mov	w1, #4
	bl	_mpc_bits_read
	add	w8, w0, w21
	str	w8, [x19, #8]
	ldr	w10, [x19, #20]
Lloh3:
	adrp	x9, _MPC_FRAME_LENGTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPC_FRAME_LENGTH@GOTPAGEOFF]
Lloh5:
	adrp	x12, _MAX_SEEK_TABLE_SIZE@GOTPAGE
Lloh6:
	ldr	x12, [x12, _MAX_SEEK_TABLE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x9]
Lloh8:
	ldr	w12, [x12]
	lsl	w9, w11, w8
	sdiv	w9, w10, w9
	add	w9, w9, #2
	cmp	w9, w12
	b.le	LBB0_5
; %bb.2:
	mov	w21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w8, w21
	add	w9, w9, #1
	add	w21, w21, #1
	lsl	w9, w11, w9
	sdiv	w9, w10, w9
	add	w9, w9, #2
	cmp	w9, w12
	b.gt	LBB0_3
; %bb.4:
	add	w8, w8, w21
	str	w8, [x19, #8]
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	str	w9, [sp, #12]
	asr	w8, w20, w21
	lsl	w10, w9, w21
	cmp	w8, w9
	csel	w22, w10, w20, gt
	sbfiz	x0, x9, #2, #32
	bl	_malloc
	mov	x20, x0
	str	x0, [x19]
	mov	w8, #-1
	lsl	w8, w8, w21
	mvn	w23, w8
	add	w8, w22, w23
	asr	w8, w8, w21
	str	w8, [x19, #12]
	add	x0, sp, #8
	add	x1, sp, #12
	bl	_mpc_bits_get_size
	ldr	w8, [sp, #12]
	ldr	w9, [x19, #24]
	add	w8, w8, w9
	lsl	w8, w8, #3
	str	w8, [sp, #16]
	str	w8, [x20]
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.eq	LBB0_14
; %bb.7:
	add	x0, sp, #8
	add	x1, sp, #12
	bl	_mpc_bits_get_size
	ldr	w8, [sp, #12]
	ldr	w9, [x19, #24]
	add	w8, w8, w9
	lsl	w8, w8, #3
	str	w8, [sp, #20]
	cbnz	w21, LBB0_9
; %bb.8:
	str	w8, [x20, #4]
LBB0_9:
	cmp	w22, #3
	b.lt	LBB0_14
; %bb.10:
	mov	w19, #2
	add	x24, sp, #16
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w19, w19, #1
	cmp	w22, w19
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #12
	bl	_mpc_bits_golomb_dec
	and	w8, w0, #0x3ffffffe
	tst	w0, #0x1
	csneg	w8, w0, w8, eq
	and	w9, w19, #0x1
	eor	w10, w9, #0x1
	ldr	w10, [x24, w10, uxtw #2]
	lsl	x9, x9, #2
	ldr	w11, [x24, x9]
	lsl	w10, w10, #1
	sub	w10, w10, w11
	add	w8, w10, w8, lsl #2
	str	w8, [x24, x9]
	tst	w19, w23
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	lsr	w9, w19, w21
	str	w8, [x20, w9, sxtw #2]
	b	LBB0_11
LBB0_14:
Lloh9:
	adrp	x8, _MPC_STATUS_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPC_STATUS_OK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	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
	add	sp, sp, #96
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC_STATUS_OK,4,2              ; @MPC_STATUS_OK
	.comm	_MPC_FRAME_LENGTH,4,2           ; @MPC_FRAME_LENGTH
	.comm	_MAX_SEEK_TABLE_SIZE,4,2        ; @MAX_SEEK_TABLE_SIZE
	.no_dead_strip	_mpc_demux_ST
.subsections_via_symbols
