	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc_decoder_decode_frame       ## -- Begin function mpc_decoder_decode_frame
	.p2align	4, 0x90
_mpc_decoder_decode_frame:              ## @mpc_decoder_decode_frame
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %eax
	movl	%eax, %r13d
	subl	4(%rdi), %r13d
	movq	8(%rsi), %rcx
	movq	_MPC_DECODER_SYNTH_DELAY@GOTPCREL(%rip), %r12
	addl	(%r12), %r13d
	jg	LBB0_3
## %bb.1:
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	movq	%rax, (%r14)
	jmp	LBB0_17
LBB0_3:
	cmpl	$8, 8(%rbx)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.4:
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mpc_decoder_read_bitstream_sv8
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mpc_decoder_read_bitstream_sv7
LBB0_6:
	movq	_MPC_FRAME_LENGTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	movl	(%r12), %eax
	addl	%ecx, %eax
	cmpl	%eax, 12(%rbx)
	jge	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%rdx, %r12
	callq	_mpc_decoder_requantisierung
	movq	8(%r14), %rsi
	movl	16(%rbx), %edx
	movq	%rbx, %rdi
	callq	_mpc_decoder_synthese_filter_float
	movq	%r12, %rdx
	movl	(%r12), %ecx
LBB0_8:
	movl	4(%rbx), %eax
	addl	%ecx, %eax
	movl	%eax, 4(%rbx)
	subl	(%rbx), %eax
	cmpl	%ecx, %eax
	jge	LBB0_13
## %bb.9:
	cmpl	$7, 8(%rbx)
	jne	LBB0_13
## %bb.10:
	movq	%r15, %rdi
	movq	%rdx, %r12
	movl	$11, %esi
	callq	_mpc_bits_read
	movq	%r12, %rsi
	movl	4(%rbx), %ecx
	cmpl	(%rbx), %ecx
	jne	LBB0_11
## %bb.12:
	testl	%eax, %eax
	movl	(%rsi), %edx
	cmovel	%edx, %eax
	subl	%edx, %ecx
	addl	%eax, %ecx
	movl	%ecx, (%rbx)
	movl	(%rsi), %ecx
	addl	%r13d, %eax
	subl	%ecx, %eax
	movl	%eax, %r13d
	jmp	LBB0_13
LBB0_11:
	movl	(%rsi), %ecx
LBB0_13:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	cmovgl	%r13d, %eax
	cmpl	%ecx, %r13d
	cmovgl	%ecx, %eax
	movl	%eax, (%r14)
	movl	(%r15), %ecx
	subl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	subl	8(%r15), %edx
	leal	(%rdx,%rcx,8), %ecx
	movl	%ecx, 4(%r14)
	movl	12(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.14:
	movl	%eax, %edx
	subl	%ecx, %edx
	jle	LBB0_15
## %bb.16:
	movl	%edx, (%r14)
	movq	8(%r14), %rdi
	movl	16(%rbx), %eax
	imull	%eax, %ecx
	movslq	%ecx, %rsi
	addq	%rdi, %rsi
	imull	%eax, %edx
	shll	$2, %edx
	callq	_memmove
	movl	$0, 12(%rbx)
	jmp	LBB0_17
LBB0_15:
	subl	%eax, %ecx
	movl	%ecx, 12(%rbx)
	movl	$0, (%r14)
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC_DECODER_SYNTH_DELAY,4,2    ## @MPC_DECODER_SYNTH_DELAY
	.comm	_MPC_FRAME_LENGTH,4,2           ## @MPC_FRAME_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc_decoder_decode_frame       ; -- Begin function mpc_decoder_decode_frame
	.p2align	2
_mpc_decoder_decode_frame:              ; @mpc_decoder_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
Lloh0:
	adrp	x26, _MPC_DECODER_SYNTH_DELAY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MPC_DECODER_SYNTH_DELAY@GOTPAGEOFF]
	ldp	w8, w9, [x0]
	ldr	w10, [x26]
	sub	w9, w8, w9
	add	w23, w9, w10
	cmp	w23, #0
	ccmp	w8, #0, #4, le
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	w24, [x1]
	ldr	x22, [x1, #8]
	ldr	w8, [x0, #8]
	cmp	w8, #8
	b.ne	LBB0_4
; %bb.2:
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_mpc_decoder_read_bitstream_sv8
	b	LBB0_5
LBB0_3:
	movi	d0, #0xffffffff00000000
	str	d0, [x20]
	b	LBB0_16
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_mpc_decoder_read_bitstream_sv7
LBB0_5:
	ldr	w9, [x19, #12]
Lloh2:
	adrp	x25, _MPC_FRAME_LENGTH@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MPC_FRAME_LENGTH@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w10, [x26]
	add	w10, w10, w8
	cmp	w9, w10
	b.ge	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_mpc_decoder_requantisierung
	ldr	x1, [x20, #8]
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_mpc_decoder_synthese_filter_float
	ldr	w8, [x25]
LBB0_7:
	ldp	w10, w9, [x19]
	add	w9, w9, w8
	sub	w10, w9, w10
	str	w9, [x19, #4]
	cmp	w10, w8
	b.ge	LBB0_12
; %bb.8:
	ldr	w9, [x19, #8]
	cmp	w9, #7
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x21
	mov	w1, #11
	bl	_mpc_bits_read
	ldp	w9, w8, [x19]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	ldr	w9, [x25]
	cmp	w0, #0
	csel	w10, w9, w0, eq
	sub	w8, w8, w9
	add	w8, w8, w10
	str	w8, [x19]
	ldr	w8, [x25]
	add	w9, w10, w23
	sub	w23, w9, w8
	b	LBB0_12
LBB0_11:
	ldr	w8, [x25]
LBB0_12:
	cmp	w23, #0
	csel	w9, w23, wzr, gt
	cmp	w23, w8
	csel	w8, w8, w9, gt
	ldr	w9, [x21]
	sub	w9, w9, w24
	ldr	w10, [x21, #8]
	sub	w10, w22, w10
	add	w9, w10, w9, lsl #3
	stp	w8, w9, [x20]
	ldr	w9, [x19, #12]
	cbz	w9, LBB0_16
; %bb.13:
	subs	w10, w8, w9
	b.le	LBB0_15
; %bb.14:
	str	w10, [x20]
	ldr	x0, [x20, #8]
	ldr	w8, [x19, #16]
	mul	w9, w8, w9
	add	x1, x0, w9, sxtw
	mul	w8, w10, w8
	lsl	w2, w8, #2
	bl	_memmove
	str	wzr, [x19, #12]
	b	LBB0_16
LBB0_15:
	sub	w8, w9, w8
	str	w8, [x19, #12]
	str	wzr, [x20]
LBB0_16:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC_DECODER_SYNTH_DELAY,4,2    ; @MPC_DECODER_SYNTH_DELAY
	.comm	_MPC_FRAME_LENGTH,4,2           ; @MPC_FRAME_LENGTH
.subsections_via_symbols
