	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function residue_encode
_residue_encode:                        ## @residue_encode
	.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	$328, %rsp                      ## imm = 0x148
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, -176(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	(%rsi), %rsi
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movl	4(%r14), %eax
	movl	12(%r14), %ecx
	subl	8(%r14), %eax
	cltd
	idivl	%esi
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	cmpl	$2, %ecx
	sete	%bl
	movl	$1, %eax
	cmovnel	%r9d, %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NUM_RESIDUE_PARTITIONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rdx, -216(%rbp)                ## 8-byte Spill
	imulq	%rdx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -160(%rbp)                ## 8-byte Spill
	movq	%r13, -240(%rbp)                ## 8-byte Spill
	movq	(%r13), %rax
	movq	16(%r14), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_av_assert0
	xorl	%edi, %edi
	cmpl	$2, %r15d
	sete	%dil
	callq	_av_assert0
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	jle	LBB0_13
## %bb.1:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ecx
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rax,%rdx,4)
	movq	%rdx, %rax
	incq	%rax
	cmpq	-112(%rbp), %rax                ## 8-byte Folded Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	je	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	testl	%ecx, %ecx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %ebx
	imull	%eax, %ebx
	addl	8(%r14), %ebx
	leal	(%rbx,%rcx), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	xorps	%xmm0, %xmm0
	movss	%xmm0, -72(%rbp)                ## 4-byte Spill
	xorps	%xmm2, %xmm2
	movq	-120(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	%xmm2, -64(%rbp)                ## 4-byte Spill
	movl	%ebx, %eax
	cltd
	idivl	%r15d
	movl	%r15d, %r13d
	movslq	%eax, %r15
	movss	(%r12,%r15,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_fabs
	movss	-72(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%eax, %edi
	callq	_FFMAX
	movss	%xmm0, -72(%rbp)                ## 4-byte Spill
	addl	%r14d, %r15d
	movslq	%r15d, %rax
	movl	%r13d, %r15d
	movss	(%r12,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_fabs
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%eax, %edi
	callq	_FFMAX
	movaps	%xmm0, %xmm2
	addl	$2, %ebx
	cmpl	-88(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_6
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorps	%xmm2, %xmm2
	xorps	%xmm0, %xmm0
	movss	%xmm0, -72(%rbp)                ## 4-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movss	-72(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movl	24(%r14), %eax
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%eax
	movq	32(%r14), %rdx
	movl	%eax, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%rcx
	cmpq	%rcx, %rsi
	je	LBB0_2
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rcx,8), %rdi
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movss	4(%rdi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_10
	jmp	LBB0_3
LBB0_13:
	movl	%r15d, %r14d
	movq	-120(%rbp), %rax                ## 8-byte Reload
	imull	%eax, %r14d
	movslq	%eax, %rsi
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movslq	%eax, %rdx
	movq	%rdx, -312(%rbp)                ## 8-byte Spill
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	movq	%rdx, -248(%rbp)                ## 8-byte Spill
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	leaq	-1(%rdx), %rdi
	movq	%rdi, -360(%rbp)                ## 8-byte Spill
	movl	%edx, %r9d
	andl	$3, %r9d
	movl	%edx, %edi
	andl	$-4, %edi
	movq	-160(%rbp), %rdx                ## 8-byte Reload
	addq	$12, %rdx
	movq	%rdx, -328(%rbp)                ## 8-byte Spill
	movq	-216(%rbp), %rdx                ## 8-byte Reload
	leaq	(,%rdx,4), %rdx
	movq	%rdx, -368(%rbp)                ## 8-byte Spill
	leaq	(,%rcx,4), %rcx
	movq	%rcx, -304(%rbp)                ## 8-byte Spill
	movq	%rsi, -296(%rbp)                ## 8-byte Spill
	leaq	(,%rsi,4), %rcx
	movq	%rcx, -344(%rbp)                ## 8-byte Spill
	leaq	4(%r12), %rcx
	movq	%rcx, -320(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%rdi, -232(%rbp)                ## 8-byte Spill
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##         Child Loop BB0_23 Depth 4
                                        ##         Child Loop BB0_26 Depth 4
                                        ##       Child Loop BB0_32 Depth 3
                                        ##         Child Loop BB0_35 Depth 4
                                        ##           Child Loop BB0_41 Depth 5
                                        ##             Child Loop BB0_46 Depth 6
                                        ##             Child Loop BB0_53 Depth 6
                                        ##           Child Loop BB0_57 Depth 5
                                        ##             Child Loop BB0_66 Depth 6
                                        ##             Child Loop BB0_74 Depth 6
	testl	%eax, %eax
	jle	LBB0_82
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	setle	%al
	cmpq	$0, -144(%rbp)                  ## 8-byte Folded Reload
	setne	%cl
	orb	%al, %cl
	xorl	%esi, %esi
	movb	%cl, -49(%rbp)                  ## 1-byte Spill
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##         Child Loop BB0_23 Depth 4
                                        ##         Child Loop BB0_26 Depth 4
                                        ##       Child Loop BB0_32 Depth 3
                                        ##         Child Loop BB0_35 Depth 4
                                        ##           Child Loop BB0_41 Depth 5
                                        ##             Child Loop BB0_46 Depth 6
                                        ##             Child Loop BB0_53 Depth 6
                                        ##           Child Loop BB0_57 Depth 5
                                        ##             Child Loop BB0_66 Depth 6
                                        ##             Child Loop BB0_74 Depth 6
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	testb	%cl, %cl
	jne	LBB0_29
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movslq	-104(%rbp), %rcx                ## 4-byte Folded Reload
	movq	-328(%rbp), %rax                ## 8-byte Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx,4), %r13
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_23 Depth 4
                                        ##         Child Loop BB0_26 Depth 4
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	16(%rax), %rsi
	shlq	$2, %rsi
	movq	-240(%rbp), %rcx                ## 8-byte Reload
	addq	(%rcx), %rsi
	cmpl	$0, -152(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	movl	24(%rax), %eax
	cmpq	$3, -360(%rbp)                  ## 8-byte Folded Reload
	jae	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=3
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=3
	xorl	%edx, %edx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=3
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ##       Parent Loop BB0_18 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	imull	%eax, %edx
	addl	-12(%r13,%rcx,4), %edx
	imull	%eax, %edx
	addl	-8(%r13,%rcx,4), %edx
	imull	%eax, %edx
	addl	-4(%r13,%rcx,4), %edx
	imull	%eax, %edx
	addl	(%r13,%rcx,4), %edx
	addq	$4, %rcx
	cmpq	%rcx, %rdi
	jne	LBB0_23
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=3
	testq	%r9, %r9
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=3
	addq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	leaq	(%rbx,%rcx,4), %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ##       Parent Loop BB0_18 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	imull	%eax, %edx
	addl	(%rcx,%rdi,4), %edx
	incq	%rdi
	cmpq	%rdi, %r9
	jne	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_18 Depth=3
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	callq	_put_codeword
	testq	%rax, %rax
	jne	LBB0_84
## %bb.28:                              ##   in Loop: Header=BB0_18 Depth=3
	incq	%r14
	movq	-368(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %r13
	addq	%rax, %rbx
	cmpq	-248(%rbp), %r14                ## 8-byte Folded Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movq	-232(%rbp), %rdi                ## 8-byte Reload
	jne	LBB0_18
LBB0_29:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$0, -152(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_79
## %bb.30:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	cmpl	%eax, %esi
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	jge	LBB0_80
## %bb.31:                              ##   in Loop: Header=BB0_16 Depth=2
	movslq	%esi, %rsi
	movq	%rdx, %rax
	imulq	%rsi, %rax
	leaq	(%r12,%rax,4), %rcx
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	movq	-320(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	%rsi, %rax
	movq	%rsi, -280(%rbp)                ## 8-byte Spill
	movl	-92(%rbp), %r14d                ## 4-byte Reload
LBB0_32:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_35 Depth 4
                                        ##           Child Loop BB0_41 Depth 5
                                        ##             Child Loop BB0_46 Depth 6
                                        ##             Child Loop BB0_53 Depth 6
                                        ##           Child Loop BB0_57 Depth 5
                                        ##             Child Loop BB0_66 Depth 6
                                        ##             Child Loop BB0_74 Depth 6
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_76
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=3
	movq	-280(%rbp), %rax                ## 8-byte Reload
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %rax
	imulq	%rdx, %rax
	movq	%rax, -264(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, %rsi
	imulq	%rdx, %rsi
	movq	-160(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -352(%rbp)                ## 8-byte Spill
	movq	%rsi, -288(%rbp)                ## 8-byte Spill
	leaq	(%r12,%rsi,4), %rax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_35 Depth=4
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movq	-344(%rbp), %rax                ## 8-byte Reload
	addq	%rax, -200(%rbp)                ## 8-byte Folded Spill
	addq	%rax, -208(%rbp)                ## 8-byte Folded Spill
	cmpq	-248(%rbp), %rcx                ## 8-byte Folded Reload
	je	LBB0_76
LBB0_35:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ##       Parent Loop BB0_32 Depth=3
                                        ## =>      This Loop Header: Depth=4
                                        ##           Child Loop BB0_41 Depth 5
                                        ##             Child Loop BB0_46 Depth 6
                                        ##             Child Loop BB0_53 Depth 6
                                        ##           Child Loop BB0_57 Depth 5
                                        ##             Child Loop BB0_66 Depth 6
                                        ##             Child Loop BB0_74 Depth 6
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	40(%rax), %rax
	movq	%rcx, -224(%rbp)                ## 8-byte Spill
	imulq	-216(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-352(%rbp), %rsi                ## 8-byte Reload
	movslq	(%rsi,%rcx,4), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rcx
	cmpq	$-1, %rcx
	je	LBB0_34
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=4
	shlq	$2, %rcx
	movq	-240(%rbp), %rax                ## 8-byte Reload
	addq	(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movslq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	testl	$-3, 12(%rbx)
	sete	%dil
	movq	%rdx, %r13
	callq	_assert
	movl	%r13d, %eax
	cltd
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	idivl	(%rcx)
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_assert
	cmpl	$0, 12(%rbx)
	je	LBB0_54
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=4
	testl	%r13d, %r13d
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%r13, %rdx
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_34
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=4
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %eax
	addl	-288(%rbp), %eax                ## 4-byte Folded Reload
	cltd
	idivl	%r15d
                                        ## kill: def $eax killed $eax def $rax
	movl	%edx, %r13d
	imull	%ecx, %r13d
	xorl	%esi, %esi
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_41 Depth=5
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	movq	-72(%rbp), %r9                  ## 8-byte Reload
LBB0_40:                                ##   in Loop: Header=BB0_41 Depth=5
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	-112(%rbp), %esi                ## 4-byte Reload
	addl	(%rbx), %esi
	movl	%ecx, %eax
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	cmpl	%edx, %esi
	jge	LBB0_34
LBB0_41:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ##       Parent Loop BB0_32 Depth=3
                                        ##         Parent Loop BB0_35 Depth=4
                                        ## =>        This Loop Header: Depth=5
                                        ##             Child Loop BB0_46 Depth 6
                                        ##             Child Loop BB0_53 Depth 6
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -112(%rbp)                ## 4-byte Spill
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_MAX_CODEBOOK_DIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	xorl	%r10d, %r10d
	movq	-120(%rbp), %r9                 ## 8-byte Reload
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_47
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=5
	movq	%rdx, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %ecx
	movl	%edi, %r8d
	testb	$1, %dil
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_41 Depth=5
	leal	-1(%rdi), %r8d
	leal	(%rbx,%r13), %eax
	cltq
	movss	(%r12,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%rdx, %rax
	addq	$4, %rax
	movss	%xmm0, (%rdx)
	leal	(%r9,%r13), %ecx
	xorl	%esi, %esi
	cmpl	%r14d, %ecx
	sete	%sil
	cmovel	%r10d, %ecx
	addl	%ebx, %esi
LBB0_44:                                ##   in Loop: Header=BB0_41 Depth=5
	cmpl	$1, %edi
	je	LBB0_47
## %bb.45:                              ##   in Loop: Header=BB0_41 Depth=5
	movl	%r8d, %r8d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ##       Parent Loop BB0_32 Depth=3
                                        ##         Parent Loop BB0_35 Depth=4
                                        ##           Parent Loop BB0_41 Depth=5
                                        ## =>          This Inner Loop Header: Depth=6
	leal	(%rsi,%rcx), %edi
	movslq	%edi, %rdi
	movss	(%r12,%rdi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax,%rbx,4)
	addl	%r9d, %ecx
	xorl	%edi, %edi
	cmpl	%r14d, %ecx
	sete	%dil
	cmovel	%r10d, %ecx
	addl	%esi, %edi
	leal	(%rdi,%rcx), %esi
	movslq	%esi, %rsi
	movss	(%r12,%rsi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 4(%rax,%rbx,4)
	addl	%r9d, %ecx
	xorl	%esi, %esi
	cmpl	%r14d, %ecx
	cmovel	%r10d, %ecx
	sete	%sil
	addl	%edi, %esi
	addq	$2, %rbx
	cmpl	%ebx, %r8d
	jne	LBB0_46
LBB0_47:                                ##   in Loop: Header=BB0_41 Depth=5
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	callq	_put_vector
	testq	%rax, %rax
	je	LBB0_85
## %bb.48:                              ##   in Loop: Header=BB0_41 Depth=5
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_39
## %bb.49:                              ##   in Loop: Header=BB0_41 Depth=5
	testb	$1, %dl
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movl	$0, %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_41 Depth=5
                                        ## implicit-def: $ecx
	movl	%edx, %esi
	cmpl	$1, %edx
	je	LBB0_40
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_51:                                ##   in Loop: Header=BB0_41 Depth=5
	leal	-1(%rdx), %esi
	leal	(%rdi,%r13), %ecx
	movslq	%ecx, %rcx
	movss	(%r12,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	(%rax), %xmm0
	addq	$4, %rax
	movss	%xmm0, (%r12,%rcx,4)
	addl	%ebx, %r13d
	xorl	%ecx, %ecx
	cmpl	%r14d, %r13d
	sete	%cl
	cmovel	%r8d, %r13d
	addl	%edi, %ecx
	movl	%ecx, %edi
	cmpl	$1, %edx
	je	LBB0_40
LBB0_52:                                ##   in Loop: Header=BB0_41 Depth=5
	movl	%esi, %edx
	xorl	%esi, %esi
	movl	%edi, %ecx
	.p2align	4, 0x90
LBB0_53:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ##       Parent Loop BB0_32 Depth=3
                                        ##         Parent Loop BB0_35 Depth=4
                                        ##           Parent Loop BB0_41 Depth=5
                                        ## =>          This Inner Loop Header: Depth=6
	leal	(%rcx,%r13), %edi
	movslq	%edi, %rdi
	movss	(%r12,%rdi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	(%rax,%rsi,4), %xmm0
	movss	%xmm0, (%r12,%rdi,4)
	addl	%ebx, %r13d
	xorl	%edi, %edi
	cmpl	%r14d, %r13d
	sete	%dil
	cmovel	%r8d, %r13d
	addl	%ecx, %edi
	leal	(%rdi,%r13), %ecx
	movslq	%ecx, %rcx
	movss	(%r12,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	4(%rax,%rsi,4), %xmm0
	movss	%xmm0, (%r12,%rcx,4)
	addl	%ebx, %r13d
	xorl	%ecx, %ecx
	cmpl	%r14d, %r13d
	cmovel	%r8d, %r13d
	sete	%cl
	addl	%edi, %ecx
	addq	$2, %rsi
	cmpl	%esi, %edx
	jne	LBB0_53
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_35 Depth=4
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testl	%r13d, %r13d
	movq	%r13, %rdx
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_34
## %bb.55:                              ##   in Loop: Header=BB0_35 Depth=4
	movq	-224(%rbp), %rax                ## 8-byte Reload
	imulq	-296(%rbp), %rax                ## 8-byte Folded Reload
	movq	-264(%rbp), %rcx                ## 8-byte Reload
	addq	%rax, %rcx
	leaq	(%r12,%rcx,4), %rcx
	movq	-256(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rax
	leaq	(%rax,%rsi,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rsi,4), %r10
	movq	-200(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rsi,4), %rax
	movq	%rax, -272(%rbp)                ## 8-byte Spill
	movq	-208(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rsi,4), %rax
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%r10, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_57
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_57 Depth=5
	addl	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, %eax
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	cmpl	%edx, %ecx
	jge	LBB0_34
LBB0_57:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ##       Parent Loop BB0_32 Depth=3
                                        ##         Parent Loop BB0_35 Depth=4
                                        ## =>        This Loop Header: Depth=5
                                        ##             Child Loop BB0_66 Depth 6
                                        ##             Child Loop BB0_74 Depth 6
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movslq	%eax, %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, %rbx
	leaq	(%rax,%rcx,4), %rdx
	movq	%r13, %rdi
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	callq	_put_vector
	testq	%rax, %rax
	je	LBB0_84
## %bb.58:                              ##   in Loop: Header=BB0_57 Depth=5
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movq	-112(%rbp), %r10                ## 8-byte Reload
	jle	LBB0_56
## %bb.59:                              ##   in Loop: Header=BB0_57 Depth=5
	movq	%rbx, %r11
	cmpl	$8, %ecx
	jb	LBB0_60
## %bb.61:                              ##   in Loop: Header=BB0_57 Depth=5
	leaq	(%r10,%r11,4), %rdx
	leaq	(%rax,%rcx,4), %rsi
	cmpq	%rsi, %rdx
	jae	LBB0_64
## %bb.62:                              ##   in Loop: Header=BB0_57 Depth=5
	leaq	(%r11,%rcx), %rdx
	leaq	(%r10,%rdx,4), %rdx
	cmpq	%rdx, %rax
	jae	LBB0_64
LBB0_60:                                ##   in Loop: Header=BB0_57 Depth=5
	xorl	%edx, %edx
LBB0_70:                                ##   in Loop: Header=BB0_57 Depth=5
	movq	%rdx, %rsi
	testb	$1, %cl
	je	LBB0_72
## %bb.71:                              ##   in Loop: Header=BB0_57 Depth=5
	leaq	(%rdx,%r11), %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movss	(%rbx,%rsi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	(%rax,%rdx,4), %xmm0
	movss	%xmm0, (%rbx,%rsi,4)
	movq	%rdx, %rsi
	orq	$1, %rsi
LBB0_72:                                ##   in Loop: Header=BB0_57 Depth=5
	notq	%rdx
	addq	%rcx, %rdx
	je	LBB0_56
## %bb.73:                              ##   in Loop: Header=BB0_57 Depth=5
	movq	-336(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%r11,4), %rdx
	.p2align	4, 0x90
LBB0_74:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ##       Parent Loop BB0_32 Depth=3
                                        ##         Parent Loop BB0_35 Depth=4
                                        ##           Parent Loop BB0_57 Depth=5
                                        ## =>          This Inner Loop Header: Depth=6
	movss	-4(%rdx,%rsi,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	subss	(%rax,%rsi,4), %xmm0
	movss	(%rdx,%rsi,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm0, -4(%rdx,%rsi,4)
	subss	4(%rax,%rsi,4), %xmm1
	movss	%xmm1, (%rdx,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_74
	jmp	LBB0_56
LBB0_64:                                ##   in Loop: Header=BB0_57 Depth=5
	movl	%ecx, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_75
## %bb.65:                              ##   in Loop: Header=BB0_57 Depth=5
	movq	%r8, %rdi
	andq	$-2, %rdi
	movq	-272(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%r11,4), %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_66:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ##       Parent Loop BB0_32 Depth=3
                                        ##         Parent Loop BB0_35 Depth=4
                                        ##           Parent Loop BB0_57 Depth=5
                                        ## =>          This Inner Loop Header: Depth=6
	movups	(%rax,%rsi,4), %xmm0
	movups	16(%rax,%rsi,4), %xmm1
	movups	(%rbx,%rsi,4), %xmm2
	subps	%xmm0, %xmm2
	movups	16(%rbx,%rsi,4), %xmm0
	subps	%xmm1, %xmm0
	movups	32(%rbx,%rsi,4), %xmm1
	movups	48(%rbx,%rsi,4), %xmm3
	movups	%xmm2, (%rbx,%rsi,4)
	movups	%xmm0, 16(%rbx,%rsi,4)
	movups	32(%rax,%rsi,4), %xmm0
	subps	%xmm0, %xmm1
	movups	48(%rax,%rsi,4), %xmm0
	subps	%xmm0, %xmm3
	movups	%xmm1, 32(%rbx,%rsi,4)
	movups	%xmm3, 48(%rbx,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_66
## %bb.67:                              ##   in Loop: Header=BB0_57 Depth=5
	testb	$1, %r8b
	je	LBB0_69
LBB0_68:                                ##   in Loop: Header=BB0_57 Depth=5
	movups	(%rax,%rsi,4), %xmm0
	movups	16(%rax,%rsi,4), %xmm1
	addq	%r11, %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movups	(%rdi,%rsi,4), %xmm2
	subps	%xmm0, %xmm2
	movups	16(%rdi,%rsi,4), %xmm0
	subps	%xmm1, %xmm0
	movups	%xmm2, (%rdi,%rsi,4)
	movups	%xmm0, 16(%rdi,%rsi,4)
LBB0_69:                                ##   in Loop: Header=BB0_57 Depth=5
	cmpq	%rcx, %rdx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_56
	jmp	LBB0_70
LBB0_75:                                ##   in Loop: Header=BB0_57 Depth=5
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_68
	jmp	LBB0_69
	.p2align	4, 0x90
LBB0_76:                                ##   in Loop: Header=BB0_32 Depth=3
	movq	-168(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	incq	%rsi
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	cmpl	-152(%rbp), %eax                ## 4-byte Folded Reload
	jge	LBB0_78
## %bb.77:                              ##   in Loop: Header=BB0_32 Depth=3
	movq	-304(%rbp), %rax                ## 8-byte Reload
	addq	%rax, -192(%rbp)                ## 8-byte Folded Spill
	addq	%rax, -184(%rbp)                ## 8-byte Folded Spill
	cmpq	-312(%rbp), %rsi                ## 8-byte Folded Reload
	jl	LBB0_32
LBB0_78:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	-232(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_81
LBB0_79:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
LBB0_80:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	-92(%rbp), %r14d                ## 4-byte Reload
LBB0_81:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	%eax, %esi
	movb	-49(%rbp), %cl                  ## 1-byte Reload
	jl	LBB0_16
	.p2align	4, 0x90
LBB0_82:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movq	%rdx, %rcx
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	cmpq	$8, %rdx
	jne	LBB0_14
## %bb.83:
	xorl	%eax, %eax
	jmp	LBB0_86
LBB0_84:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_86
LBB0_85:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
LBB0_86:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_88
## %bb.87:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_88:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CHANNELS,4,2               ## @MAX_CHANNELS
	.comm	_NUM_RESIDUE_PARTITIONS,4,2     ## @NUM_RESIDUE_PARTITIONS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_CODEBOOK_DIM,4,2           ## @MAX_CODEBOOK_DIM
	.no_dead_strip	_residue_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function residue_encode
_residue_encode:                        ; @residue_encode
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #224
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	stur	x2, [x29, #-120]                ; 8-byte Folded Spill
	mov	x26, x1
	mov	x12, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
	ldp	w28, w8, [x1]
                                        ; kill: def $w28 killed $w28 def $x28
	sxtw	x28, w28
	ldp	w9, w10, [x1, #8]
	sub	w8, w8, w9
	sdiv	w25, w8, w28
	cmp	w10, #2
	cset	w0, eq
	csinc	w8, w5, wzr, ne
	stur	x8, [x29, #-144]                ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _MAX_CHANNELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CHANNELS@GOTPAGEOFF]
Lloh5:
	adrp	x9, _NUM_RESIDUE_PARTITIONS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NUM_RESIDUE_PARTITIONS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stur	x9, [x29, #-200]                ; 8-byte Folded Spill
	mul	x8, x9, x8
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0xfffffffffffffff0
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x8, x9, x8
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	mov	sp, x8
	ldr	x8, [x12]
	ldr	x9, [x1, #16]
	ldr	w8, [x8, x9, lsl #2]
	stp	x8, x12, [x29, #-160]           ; 16-byte Folded Spill
	bl	_av_assert0
	cmp	w19, #2
	cset	w0, eq
	bl	_av_assert0
	cmp	w25, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x22, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	mov	x25, x27
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	str	w8, [x9, x22, lsl #2]
	add	x22, x22, #1
	cmp	x22, x25
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	mov	x27, x25
	cmp	w28, #1
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #8]
	madd	w23, w28, w22, w8
	add	w24, w23, w28
	movi	d8, #0000000000000000
	movi	d9, #0000000000000000
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sdiv	w25, w23, w19
	ldr	s0, [x21, w25, sxtw #2]
	bl	_fabs
	fmov	s0, s8
	bl	_FFMAX
	fmov	s8, s0
	add	w8, w25, w20
	ldr	s0, [x21, w8, sxtw #2]
	bl	_fabs
	fmov	s0, s9
	bl	_FFMAX
	fmov	s9, s0
	add	w23, w23, #2
	cmp	w23, w24
	b.lt	LBB0_6
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi	d9, #0000000000000000
	movi	d8, #0000000000000000
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #24]
	subs	w8, w8, #1
	b.le	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	ldr	x10, [x26, #32]
	mov	x25, x27
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10, x9, lsl #3]
	ldr	s0, [x11]
	fcmp	s8, s0
	b.pl	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	s0, [x11, #4]
	fcmp	s9, s0
	b.pl	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x9
	b	LBB0_3
LBB0_14:
	stur	xzr, [x29, #-168]               ; 8-byte Folded Spill
	mul	w24, w19, w20
	sxtw	x8, w20
	sub	x9, x29, #16
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
	mov	x8, x25
	sxtw	x8, w8
	stur	x8, [x29, #-256]                ; 8-byte Folded Spill
	ldur	x8, [x29, #-200]                ; 8-byte Folded Reload
	lsl	x27, x8, #2
	lsl	x8, x28, #2
	sub	x9, x29, #8
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
	sbfiz	x8, x20, #2, #32
	stur	x8, [x29, #-216]                ; 8-byte Folded Spill
	ldur	x9, [x29, #-160]                ; 8-byte Folded Reload
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;       Child Loop BB0_19 Depth 3
                                        ;         Child Loop BB0_21 Depth 4
                                        ;       Child Loop BB0_28 Depth 3
                                        ;         Child Loop BB0_31 Depth 4
                                        ;           Child Loop BB0_36 Depth 5
                                        ;             Child Loop BB0_38 Depth 6
                                        ;             Child Loop BB0_41 Depth 6
                                        ;           Child Loop BB0_45 Depth 5
                                        ;             Child Loop BB0_50 Depth 6
                                        ;             Child Loop BB0_54 Depth 6
	cmp	w25, #1
	b.lt	LBB0_60
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w10, #0
	ldur	x8, [x29, #-168]                ; 8-byte Folded Reload
	cmp	x8, #0
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	ccmp	w8, #1, #8, eq
	cset	w8, lt
	stur	w8, [x29, #-236]                ; 4-byte Folded Spill
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_19 Depth 3
                                        ;         Child Loop BB0_21 Depth 4
                                        ;       Child Loop BB0_28 Depth 3
                                        ;         Child Loop BB0_31 Depth 4
                                        ;           Child Loop BB0_36 Depth 5
                                        ;             Child Loop BB0_38 Depth 6
                                        ;             Child Loop BB0_41 Depth 6
                                        ;           Child Loop BB0_45 Depth 5
                                        ;             Child Loop BB0_50 Depth 6
                                        ;             Child Loop BB0_54 Depth 6
	stur	x10, [x29, #-176]               ; 8-byte Folded Spill
	tbnz	w8, #0, LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x22, #0
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	ldur	x10, [x29, #-176]               ; 8-byte Folded Reload
	add	x23, x8, w10, sxtw #2
LBB0_19:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_21 Depth 4
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=3
	mov	w2, #0
	ldr	w8, [x26, #24]
	mov	x10, x23
LBB0_21:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ;       Parent Loop BB0_19 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	w11, [x10], #4
	madd	w2, w8, w2, w11
	subs	x9, x9, #1
	b.ne	LBB0_21
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=3
	mov	w2, #0
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=3
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x9, [x26, #16]
	add	x1, x8, x9, lsl #2
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	bl	_put_codeword
	cbnz	x0, LBB0_62
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x22, x22, #1
	add	x23, x23, x27
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	cmp	x22, x8
	ldur	x9, [x29, #-160]                ; 8-byte Folded Reload
	b.ne	LBB0_19
LBB0_25:                                ;   in Loop: Header=BB0_17 Depth=2
	cmp	w9, #1
	b.lt	LBB0_59
; %bb.26:                               ;   in Loop: Header=BB0_17 Depth=2
	ldur	x10, [x29, #-176]               ; 8-byte Folded Reload
	cmp	w10, w25
	b.ge	LBB0_58
; %bb.27:                               ;   in Loop: Header=BB0_17 Depth=2
	sub	x8, x29, #64
	stur	x27, [x8, #-256]                ; 8-byte Folded Spill
	sub	x8, x29, #56
	stur	x25, [x8, #-256]                ; 8-byte Folded Spill
	mov	x8, x10
	sxtw	x10, w8
	stur	x28, [x29, #-136]               ; 8-byte Folded Spill
	mul	x8, x28, x10
	add	x8, x21, x8, lsl #2
	stp	x8, xzr, [x29, #-232]           ; 16-byte Folded Spill
	sub	x8, x29, #32
	stur	x10, [x8, #-256]                ; 8-byte Folded Spill
	stur	x26, [x29, #-192]               ; 8-byte Folded Spill
LBB0_28:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_31 Depth 4
                                        ;           Child Loop BB0_36 Depth 5
                                        ;             Child Loop BB0_38 Depth 6
                                        ;             Child Loop BB0_41 Depth 6
                                        ;           Child Loop BB0_45 Depth 5
                                        ;             Child Loop BB0_50 Depth 6
                                        ;             Child Loop BB0_54 Depth 6
	stur	x10, [x29, #-176]               ; 8-byte Folded Spill
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_55
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=3
	mov	x11, #0
	ldur	x8, [x29, #-224]                ; 8-byte Folded Reload
	sub	x9, x29, #32
	ldur	x9, [x9, #-256]                 ; 8-byte Folded Reload
	add	x8, x8, x9
	ldur	x9, [x29, #-136]                ; 8-byte Folded Reload
	mul	x8, x8, x9
	sub	x10, x29, #40
	stur	x8, [x10, #-256]                ; 8-byte Folded Spill
	ldur	x10, [x29, #-176]               ; 8-byte Folded Reload
	mul	x9, x10, x9
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	add	x8, x8, x10, lsl #2
	stur	x8, [x29, #-208]                ; 8-byte Folded Spill
	sub	x8, x29, #24
	stur	x9, [x8, #-256]                 ; 8-byte Folded Spill
	add	x8, x21, x9, lsl #2
	sub	x9, x29, #48
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
	ldur	x27, [x29, #-232]               ; 8-byte Folded Reload
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=4
	ldp	x26, x11, [x29, #-192]          ; 16-byte Folded Reload
	add	x11, x11, #1
	ldur	x8, [x29, #-216]                ; 8-byte Folded Reload
	add	x27, x27, x8
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	cmp	x11, x8
	b.eq	LBB0_55
LBB0_31:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ;       Parent Loop BB0_28 Depth=3
                                        ; =>      This Loop Header: Depth=4
                                        ;           Child Loop BB0_36 Depth 5
                                        ;             Child Loop BB0_38 Depth 6
                                        ;             Child Loop BB0_41 Depth 6
                                        ;           Child Loop BB0_45 Depth 5
                                        ;             Child Loop BB0_50 Depth 6
                                        ;             Child Loop BB0_54 Depth 6
	ldp	x9, x8, [x29, #-208]            ; 16-byte Folded Reload
	stur	x11, [x29, #-184]               ; 8-byte Folded Spill
	mul	x8, x11, x8
	ldrsw	x8, [x9, x8, lsl #2]
	ldr	x9, [x26, #40]
	ldr	x8, [x9, x8, lsl #3]
	ldur	x9, [x29, #-168]                ; 8-byte Folded Reload
	ldrsw	x8, [x8, x9, lsl #2]
	cmn	w8, #1
	b.eq	LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=4
	ldur	x9, [x29, #-152]                ; 8-byte Folded Reload
	ldr	x9, [x9]
	add	x25, x9, x8, lsl #2
	ldur	x23, [x29, #-192]               ; 8-byte Folded Reload
	ldp	w22, w8, [x23, #8]
                                        ; kill: def $w22 killed $w22 def $x22
	sxtw	x22, w22
	tst	w8, #0xfffffffd
	cset	w0, eq
	bl	_assert
	ldr	w8, [x25]
	ldur	x26, [x29, #-136]               ; 8-byte Folded Reload
	sdiv	w9, w26, w8
	msub	w8, w9, w8, w26
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	w8, [x23, #12]
	cbz	w8, LBB0_42
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=4
	cmp	w26, #1
	b.lt	LBB0_30
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=4
	mov	w22, #0
	ldur	x8, [x29, #-192]                ; 8-byte Folded Reload
	ldr	w8, [x8, #8]
	sub	x9, x29, #24
	ldur	x9, [x9, #-256]                 ; 8-byte Folded Reload
	add	w8, w8, w9
	sdiv	w28, w8, w19
	msub	w8, w28, w19, w8
	mul	w26, w8, w20
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=5
	mov	sp, x23
	ldr	w8, [x25]
	add	w22, w8, w22
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	cmp	w22, w8
	b.ge	LBB0_30
LBB0_36:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ;       Parent Loop BB0_28 Depth=3
                                        ;         Parent Loop BB0_31 Depth=4
                                        ; =>        This Loop Header: Depth=5
                                        ;             Child Loop BB0_38 Depth 6
                                        ;             Child Loop BB0_41 Depth 6
	mov	x23, sp
Lloh11:
	adrp	x8, _MAX_CODEBOOK_DIM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_CODEBOOK_DIM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x2, x9, x8
	mov	sp, x2
	ldr	w8, [x25]
	cbz	w8, LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=5
	mov	x9, x2
	mov	x10, x28
	mov	x11, x26
LBB0_38:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ;       Parent Loop BB0_28 Depth=3
                                        ;         Parent Loop BB0_31 Depth=4
                                        ;           Parent Loop BB0_36 Depth=5
                                        ; =>          This Inner Loop Header: Depth=6
	add	w12, w10, w11
	ldr	s0, [x21, w12, sxtw #2]
	str	s0, [x9], #4
	add	w11, w11, w20
	cmp	w11, w24
	csel	w11, wzr, w11, eq
	cinc	w10, w10, eq
	sub	w8, w8, #1
	cbnz	w8, LBB0_38
LBB0_39:                                ;   in Loop: Header=BB0_36 Depth=5
	mov	x0, x25
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	bl	_put_vector
	cbz	x0, LBB0_63
; %bb.40:                               ;   in Loop: Header=BB0_36 Depth=5
	ldr	w8, [x25]
	cbz	w8, LBB0_35
LBB0_41:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ;       Parent Loop BB0_28 Depth=3
                                        ;         Parent Loop BB0_31 Depth=4
                                        ;           Parent Loop BB0_36 Depth=5
                                        ; =>          This Inner Loop Header: Depth=6
	ldr	s0, [x0], #4
	add	w9, w28, w26
	sbfiz	x9, x9, #2, #32
	ldr	s1, [x21, x9]
	fsub	s0, s1, s0
	str	s0, [x21, x9]
	add	w9, w26, w20
	cmp	w9, w24
	csel	w26, wzr, w9, eq
	cinc	w28, w28, eq
	sub	w8, w8, #1
	cbnz	w8, LBB0_41
	b	LBB0_35
LBB0_42:                                ;   in Loop: Header=BB0_31 Depth=4
	cmp	w26, #1
	b.lt	LBB0_30
; %bb.43:                               ;   in Loop: Header=BB0_31 Depth=4
	mov	w23, #0
	sub	x8, x29, #16
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	ldur	x9, [x29, #-184]                ; 8-byte Folded Reload
	mul	x8, x9, x8
	sub	x9, x29, #40
	ldur	x9, [x9, #-256]                 ; 8-byte Folded Reload
	add	x9, x9, x8
	add	x9, x21, x9, lsl #2
	sub	x10, x29, #48
	ldur	x10, [x10, #-256]               ; 8-byte Folded Reload
	add	x8, x10, x8, lsl #2
	add	x26, x8, x22, lsl #2
	lsl	x22, x22, #2
	add	x28, x9, x22
	add	x8, x27, x22
	stur	x8, [x29, #-248]                ; 8-byte Folded Spill
	b	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_45 Depth=5
	add	w23, w9, w8
	cmp	w23, w14
	b.ge	LBB0_30
LBB0_45:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ;       Parent Loop BB0_28 Depth=3
                                        ;         Parent Loop BB0_31 Depth=4
                                        ; =>        This Loop Header: Depth=5
                                        ;             Child Loop BB0_50 Depth 6
                                        ;             Child Loop BB0_54 Depth 6
	add	x2, x26, w23, sxtw #2
	mov	x0, x25
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	bl	_put_vector
	cbz	x0, LBB0_62
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=5
	sxtw	x8, w23
	ldr	w9, [x25]
	cmp	w9, #1
	ldur	x14, [x29, #-136]               ; 8-byte Folded Reload
	b.lt	LBB0_44
; %bb.47:                               ;   in Loop: Header=BB0_45 Depth=5
	cmp	w9, #16
	b.lo	LBB0_52
; %bb.48:                               ;   in Loop: Header=BB0_45 Depth=5
	add	x10, x28, x8, lsl #2
	add	x11, x8, x9
	add	x11, x28, x11, lsl #2
	add	x12, x0, x9, lsl #2
	cmp	x10, x12
	ccmp	x0, x11, #2, lo
	b.lo	LBB0_52
; %bb.49:                               ;   in Loop: Header=BB0_45 Depth=5
	and	x10, x9, #0xfffffff0
	ldur	x11, [x29, #-248]               ; 8-byte Folded Reload
	add	x11, x11, x8, lsl #2
	add	x12, x0, #32
	mov	x13, x10
LBB0_50:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ;       Parent Loop BB0_28 Depth=3
                                        ;         Parent Loop BB0_31 Depth=4
                                        ;           Parent Loop BB0_45 Depth=5
                                        ; =>          This Inner Loop Header: Depth=6
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	ldp	q4, q5, [x11]
	ldp	q6, q7, [x11, #32]
	fsub.4s	v0, v4, v0
	fsub.4s	v1, v5, v1
	fsub.4s	v2, v6, v2
	fsub.4s	v3, v7, v3
	stp	q0, q1, [x11]
	stp	q2, q3, [x11, #32]
	add	x11, x11, #64
	subs	x13, x13, #16
	b.ne	LBB0_50
; %bb.51:                               ;   in Loop: Header=BB0_45 Depth=5
	cmp	x10, x9
	b.eq	LBB0_44
	b	LBB0_53
LBB0_52:                                ;   in Loop: Header=BB0_45 Depth=5
	mov	x10, #0
LBB0_53:                                ;   in Loop: Header=BB0_45 Depth=5
	add	x11, x10, x8
	add	x11, x22, x11, lsl #2
	add	x12, x0, x10, lsl #2
	sub	x10, x9, x10
LBB0_54:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ;       Parent Loop BB0_28 Depth=3
                                        ;         Parent Loop BB0_31 Depth=4
                                        ;           Parent Loop BB0_45 Depth=5
                                        ; =>          This Inner Loop Header: Depth=6
	ldr	s0, [x12], #4
	ldr	s1, [x27, x11]
	fsub	s0, s1, s0
	str	s0, [x27, x11]
	add	x11, x11, #4
	subs	x10, x10, #1
	b.ne	LBB0_54
	b	LBB0_44
LBB0_55:                                ;   in Loop: Header=BB0_28 Depth=3
	ldur	x8, [x29, #-224]                ; 8-byte Folded Reload
	add	x8, x8, #1
	ldur	x10, [x29, #-176]               ; 8-byte Folded Reload
	add	x10, x10, #1
	ldur	x9, [x29, #-160]                ; 8-byte Folded Reload
	stur	x8, [x29, #-224]                ; 8-byte Folded Spill
	cmp	w8, w9
	b.ge	LBB0_57
; %bb.56:                               ;   in Loop: Header=BB0_28 Depth=3
	sub	x8, x29, #8
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	ldur	x11, [x29, #-232]               ; 8-byte Folded Reload
	add	x11, x11, x8
	stur	x11, [x29, #-232]               ; 8-byte Folded Spill
	ldur	x8, [x29, #-256]                ; 8-byte Folded Reload
	cmp	x10, x8
	b.lt	LBB0_28
LBB0_57:                                ;   in Loop: Header=BB0_17 Depth=2
	ldur	x28, [x29, #-136]               ; 8-byte Folded Reload
	sub	x8, x29, #56
	ldur	x25, [x8, #-256]                ; 8-byte Folded Reload
	sub	x8, x29, #64
	ldur	x27, [x8, #-256]                ; 8-byte Folded Reload
LBB0_58:                                ;   in Loop: Header=BB0_17 Depth=2
	ldur	w8, [x29, #-236]                ; 4-byte Folded Reload
	cmp	w10, w25
	b.lt	LBB0_17
	b	LBB0_60
LBB0_59:                                ;   in Loop: Header=BB0_17 Depth=2
	ldur	w8, [x29, #-236]                ; 4-byte Folded Reload
	ldur	x10, [x29, #-176]               ; 8-byte Folded Reload
	cmp	w10, w25
	b.lt	LBB0_17
LBB0_60:                                ;   in Loop: Header=BB0_15 Depth=1
	ldur	x8, [x29, #-168]                ; 8-byte Folded Reload
	add	x8, x8, #1
	stur	x8, [x29, #-168]                ; 8-byte Folded Spill
	cmp	x8, #8
	b.ne	LBB0_15
; %bb.61:
	mov	w0, #0
	b	LBB0_64
LBB0_62:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_64
LBB0_63:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	sp, x23
LBB0_64:
	ldur	x8, [x29, #-112]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_66
; %bb.65:
	sub	sp, x29, #96
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_66:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CHANNELS,4,2               ; @MAX_CHANNELS
	.comm	_NUM_RESIDUE_PARTITIONS,4,2     ; @NUM_RESIDUE_PARTITIONS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_CODEBOOK_DIM,4,2           ; @MAX_CODEBOOK_DIM
	.no_dead_strip	_residue_encode
.subsections_via_symbols
