	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_demux_decode_inner
_mpc_demux_decode_inner:                ## @mpc_demux_decode_inner
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$8, 56(%rdi)
	jl	LBB0_16
## %bb.1:
	movq	_MPC_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	cmpl	$0, (%rbx)
	jne	LBB0_10
## %bb.2:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	andb	$-8, 24(%rbx)
	leaq	24(%rbx), %r15
	movq	40(%rbx), %rax
	movl	4(%rbx), %edx
	movb	8(%rbx), %cl
	shll	%cl, %edx
	movq	_MPC_FRAME_LENGTH@GOTPCREL(%rip), %rcx
	imull	(%rcx), %edx
	cmpl	%edx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_mpc_demux_pos
	movq	48(%rbx), %rcx
	movslq	4(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	leal	1(%rdx), %eax
	movl	%eax, 4(%rbx)
LBB0_4:
	movq	_MPC_BUFFER_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$11, %esi
	callq	_mpc_demux_fill
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mpc_bits_get_block
	movl	-56(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %r12
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-56(%rbp), %edi
	callq	_mpc_check_key
	movl	%eax, %edi
	callq	_MPC_AUTO_FAIL
	movl	-56(%rbp), %edi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-64(%rbp), %esi
	addl	$11, %esi
	movq	_MPC_BUFFER_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mpc_demux_fill
	movq	-64(%rbp), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_27
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	%rcx, 32(%rbx)
	movq	%r15, %rdi
	leaq	-64(%rbp), %rsi
	callq	_mpc_bits_get_block
	movl	-56(%rbp), %edi
	movq	%r13, %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_6
LBB0_9:
	movl	-64(%rbp), %eax
	shll	$3, %eax
	movl	%eax, 12(%rbx)
	movb	60(%rbx), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%rbx)
	movq	_MPC_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_10:
	movslq	16(%rbx), %rax
	movslq	20(%rbx), %rcx
	addq	%rax, %rcx
	leaq	24(%rbx), %r15
	movq	32(%rbx), %r12
	subq	%r12, %rcx
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	jg	LBB0_12
## %bb.11:
	movl	12(%rbx), %esi
	sarl	$3, %esi
	incl	%esi
	movq	_MPC_BUFFER_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mpc_demux_fill
	movq	32(%rbx), %r12
LBB0_12:
	movl	24(%rbx), %r13d
	movq	40(%rbx), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_mpc_decoder_decode_frame
	subl	32(%rbx), %r12d
	movl	(%rbx), %ecx
	movl	24(%rbx), %eax
	subl	%r13d, %eax
	shll	$3, %r12d
	addl	12(%rbx), %eax
	decl	%ecx
	addl	%r12d, %eax
	movl	%eax, 12(%rbx)
	movl	%ecx, (%rbx)
	js	LBB0_27
## %bb.13:
	testl	%ecx, %ecx
	jne	LBB0_15
## %bb.14:
	cmpl	$8, %eax
	jae	LBB0_27
LBB0_15:
	cmpl	$-1, (%r14)
	jne	LBB0_22
	jmp	LBB0_25
LBB0_16:
	movq	40(%rbx), %rax
	movl	4(%rbx), %edx
	movb	8(%rbx), %cl
	shll	%cl, %edx
	movq	_MPC_FRAME_LENGTH@GOTPCREL(%rip), %r12
	imull	(%r12), %edx
	cmpl	%edx, (%rax)
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_mpc_demux_pos
	movq	48(%rbx), %rcx
	movslq	4(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	leal	1(%rdx), %eax
	movl	%eax, 4(%rbx)
LBB0_18:
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MPC_BUFFER_FULL@GOTPCREL(%rip), %rax
	movq	_MPC_BUFFER_SWAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mpc_demux_fill
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_mpc_bits_read
	movl	%eax, 12(%rbx)
	movq	40(%rbx), %rdi
	movl	(%rdi), %ecx
	notl	%ecx
	addl	4(%rdi), %ecx
	cmpl	%ecx, (%r12)
	jle	LBB0_20
## %bb.19:
	addl	$11, %eax
	movl	%eax, 12(%rbx)
LBB0_20:
	movslq	24(%rbx), %r12
	movq	32(%rbx), %r13
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_mpc_decoder_decode_frame
	cmpl	$-1, (%r14)
	je	LBB0_25
## %bb.21:
	movslq	12(%rbx), %rax
	movq	32(%rbx), %rcx
	subq	%r13, %rcx
	leaq	(%r12,%rcx,8), %rcx
	movslq	24(%rbx), %rdx
	subq	%rdx, %rcx
	cmpq	%rax, %rcx
	jne	LBB0_27
LBB0_22:
	movslq	16(%rbx), %rax
	movslq	20(%rbx), %rcx
	addq	%rax, %rcx
	movl	$8, %eax
	subl	24(%rbx), %eax
	sarl	$3, %eax
	cltq
	addq	32(%rbx), %rax
	cmpq	%rcx, %rax
	jle	LBB0_25
LBB0_27:
	movq	_MPC_STATUS_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_24:
	movl	$-1, (%r14)
LBB0_25:
	movq	_MPC_STATUS_OK@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC_FALSE,4,2                  ## @MPC_FALSE
	.comm	_MPC_FRAME_LENGTH,4,2           ## @MPC_FRAME_LENGTH
	.comm	_MPC_BUFFER_FULL,4,2            ## @MPC_BUFFER_FULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AP"

L_.str.1:                               ## @.str.1
	.asciz	"SE"

	.comm	_MPC_STATUS_OK,4,2              ## @MPC_STATUS_OK
	.comm	_MPC_STATUS_FAIL,4,2            ## @MPC_STATUS_FAIL
	.comm	_MPC_TRUE,4,2                   ## @MPC_TRUE
	.comm	_MAX_FRAME_SIZE,4,2             ## @MAX_FRAME_SIZE
	.comm	_MPC_BUFFER_SWAP,4,2            ## @MPC_BUFFER_SWAP
	.no_dead_strip	_mpc_demux_decode_inner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_demux_decode_inner
_mpc_demux_decode_inner:                ; @mpc_demux_decode_inner
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #56]
	cmp	w8, #8
	b.lt	LBB0_16
; %bb.1:
Lloh0:
	adrp	x8, _MPC_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPC_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	w8, [x19]
	cbnz	w8, LBB0_10
; %bb.2:
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	mov	x21, x19
	ldr	w8, [x21, #24]!
	and	w8, w8, #0xfffffff8
	str	w8, [x21]
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
	ldp	w9, w10, [x21, #-20]
	lsl	w9, w9, w10
Lloh3:
	adrp	x10, _MPC_FRAME_LENGTH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MPC_FRAME_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mul	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mpc_demux_pos
	ldr	x8, [x19, #48]
	ldrsw	x9, [x19, #4]
	str	x0, [x8, x9, lsl #3]
	add	w8, w9, #1
	str	w8, [x19, #4]
LBB0_4:
Lloh6:
	adrp	x24, _MPC_BUFFER_FULL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MPC_BUFFER_FULL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #11
	bl	_mpc_demux_fill
	add	x1, sp, #8
	mov	x0, x21
	bl	_mpc_bits_get_block
	ldr	w0, [sp, #16]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_9
; %bb.5:
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh12:
	adrp	x25, _MPC_STATUS_FAIL@GOTPAGE
Lloh13:
	ldr	x25, [x25, _MPC_STATUS_FAIL@GOTPAGEOFF]
Lloh14:
	adrp	x23, l_.str@PAGE
Lloh15:
	add	x23, x23, l_.str@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #16]
	bl	_mpc_check_key
	bl	_MPC_AUTO_FAIL
	ldr	w0, [sp, #16]
	mov	x1, x22
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_27
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #8]
	add	w1, w8, #11
	ldr	w2, [x24]
	mov	x0, x19
	bl	_mpc_demux_fill
	ldr	x8, [sp, #8]
	cmp	x0, x8
	b.lt	LBB0_28
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19, #32]
	add	x8, x9, x8
	str	x8, [x19, #32]
	add	x1, sp, #8
	mov	x0, x21
	bl	_mpc_bits_get_block
	ldr	w0, [sp, #16]
	mov	x1, x23
	mov	w2, #2
	bl	_memcmp
	cbnz	x0, LBB0_6
LBB0_9:
	ldr	w8, [sp, #8]
	lsl	w8, w8, #3
	str	w8, [x19, #12]
	ldr	w8, [x19, #60]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x19]
Lloh16:
	adrp	x8, _MPC_TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MPC_TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #4]
LBB0_10:
	ldpsw	x8, x9, [x19, #16]
	add	x21, x19, #24
	ldr	x22, [x19, #32]
	add	x8, x9, x8
	sub	x8, x8, x22
Lloh19:
	adrp	x9, _MAX_FRAME_SIZE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh21:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_12
; %bb.11:
	ldr	w8, [x19, #12]
	asr	w8, w8, #3
	add	w1, w8, #1
Lloh22:
	adrp	x8, _MPC_BUFFER_FULL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MPC_BUFFER_FULL@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mpc_demux_fill
	ldr	x22, [x19, #32]
LBB0_12:
	ldr	w23, [x19, #24]
	ldr	x0, [x19, #40]
	mov	x1, x21
	mov	x2, x20
	bl	_mpc_decoder_decode_frame
	ldr	w8, [x19, #32]
	sub	w8, w22, w8
	ldr	w9, [x19, #24]
	ldr	w10, [x19, #12]
	sub	w9, w9, w23
	add	w9, w9, w10
	add	w8, w9, w8, lsl #3
	str	w8, [x19, #12]
	ldr	w9, [x19]
	sub	w9, w9, #1
	str	w9, [x19]
	tbnz	w8, #31, LBB0_23
; %bb.13:
	cbnz	w9, LBB0_15
; %bb.14:
	cmp	w8, #8
	b.hs	LBB0_23
LBB0_15:
	ldr	w8, [x20]
	cmn	w8, #1
	b.ne	LBB0_22
	b	LBB0_24
LBB0_16:
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #4]
	lsl	w9, w9, w10
Lloh25:
	adrp	x22, _MPC_FRAME_LENGTH@GOTPAGE
Lloh26:
	ldr	x22, [x22, _MPC_FRAME_LENGTH@GOTPAGEOFF]
	ldr	w10, [x22]
	mul	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_mpc_demux_pos
	ldr	x8, [x19, #48]
	ldrsw	x9, [x19, #4]
	str	x0, [x8, x9, lsl #3]
	add	w8, w9, #1
	str	w8, [x19, #4]
LBB0_18:
Lloh27:
	adrp	x8, _MAX_FRAME_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh29:
	adrp	x9, _MPC_BUFFER_FULL@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MPC_BUFFER_FULL@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	ldr	w8, [x9]
Lloh33:
	adrp	x9, _MPC_BUFFER_SWAP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MPC_BUFFER_SWAP@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mpc_demux_fill
	add	x21, x19, #24
	mov	x0, x21
	mov	w1, #20
	bl	_mpc_bits_read
	mov	x8, x0
	str	w8, [x19, #12]
	ldr	w9, [x22]
	ldr	x0, [x19, #40]
	ldp	w11, w10, [x0]
	mvn	w11, w11
	add	w10, w10, w11
	cmp	w9, w10
	b.le	LBB0_20
; %bb.19:
	add	w8, w8, #11
	str	w8, [x19, #12]
LBB0_20:
	ldrsw	x22, [x19, #24]
	ldr	x23, [x19, #32]
	mov	x1, x21
	mov	x2, x20
	bl	_mpc_decoder_decode_frame
	ldr	w8, [x20]
	cmn	w8, #1
	b.eq	LBB0_24
; %bb.21:
	ldrsw	x8, [x19, #12]
	ldr	x9, [x19, #32]
	sub	x9, x9, x23
	add	x9, x22, x9, lsl #3
	ldrsw	x10, [x19, #24]
	sub	x9, x9, x10
	cmp	x9, x8
	b.ne	LBB0_23
LBB0_22:
	ldpsw	x8, x9, [x19, #16]
	ldr	x10, [x19, #32]
	ldr	w11, [x19, #24]
	mov	w12, #8
	sub	w11, w12, w11
	asr	w11, w11, #3
	add	x10, x10, w11, sxtw
	add	x8, x9, x8
	cmp	x10, x8
	b.le	LBB0_24
LBB0_23:
Lloh36:
	adrp	x8, _MPC_STATUS_FAIL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MPC_STATUS_FAIL@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh38:
	adrp	x8, _MPC_STATUS_OK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MPC_STATUS_OK@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
LBB0_26:
	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
	add	sp, sp, #112
	ret
LBB0_27:
	mov	w8, #-1
	str	w8, [x20]
Lloh40:
	adrp	x25, _MPC_STATUS_OK@GOTPAGE
Lloh41:
	ldr	x25, [x25, _MPC_STATUS_OK@GOTPAGEOFF]
LBB0_28:
	ldr	w0, [x25]
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC_FALSE,4,2                  ; @MPC_FALSE
	.comm	_MPC_FRAME_LENGTH,4,2           ; @MPC_FRAME_LENGTH
	.comm	_MPC_BUFFER_FULL,4,2            ; @MPC_BUFFER_FULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AP"

l_.str.1:                               ; @.str.1
	.asciz	"SE"

	.comm	_MPC_STATUS_OK,4,2              ; @MPC_STATUS_OK
	.comm	_MPC_STATUS_FAIL,4,2            ; @MPC_STATUS_FAIL
	.comm	_MPC_TRUE,4,2                   ; @MPC_TRUE
	.comm	_MAX_FRAME_SIZE,4,2             ; @MAX_FRAME_SIZE
	.comm	_MPC_BUFFER_SWAP,4,2            ; @MPC_BUFFER_SWAP
	.no_dead_strip	_mpc_demux_decode_inner
.subsections_via_symbols
