	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function encode_block
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x4090000000000000              ## double 1024
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_encode_block:                          ## @encode_block
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NELLY_FILL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_NELLY_BUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_NELLY_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r13, %rdi
	callq	_apply_mdct
	leaq	-52(%rbp), %rdi
	movq	%r15, -136(%rbp)                ## 8-byte Spill
	movq	%r15, %rsi
	movl	%r12d, -100(%rbp)               ## 4-byte Spill
	movl	%r12d, %edx
	callq	_init_put_bits
	movq	_NELLY_BANDS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.1:
	xorl	%ebx, %ebx
	movq	_ff_nelly_band_sizes_table@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	shll	$7, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	divss	%xmm0, %xmm1
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_FFMAX
	movl	%eax, %edi
	callq	_log2
	mulsd	LCPI0_1(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, (%r14,%rbx,4)
	incq	%rbx
	movq	_NELLY_BANDS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %r8
	movq	_NELLY_BUF_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r9
	movslq	%r15d, %rsi
	xorps	%xmm1, %xmm1
	cmpl	$1, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	andl	$-2, %edi
	leaq	4(%r8), %rcx
	leaq	(%r8,%r9,4), %rdx
	addq	$4, %rdx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	-4(%rdx,%rsi,4), %xmm2          ## xmm2 = mem[0],zero,zero,zero
	movss	(%rdx,%rsi,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm2
	movss	-4(%rcx,%rsi,4), %xmm4          ## xmm4 = mem[0],zero,zero,zero
	movss	(%rcx,%rsi,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm4, %xmm4
	addss	%xmm2, %xmm4
	addss	%xmm0, %xmm4
	mulss	%xmm3, %xmm3
	mulss	%xmm1, %xmm1
	addss	%xmm3, %xmm1
	addss	%xmm4, %xmm1
	addq	$2, %rsi
	movaps	%xmm1, %xmm0
	addl	$-2, %edi
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movss	(%r8,%rsi,4), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	addq	%rsi, %r9
	movss	(%r8,%r9,4), %xmm2              ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm2
	mulss	%xmm0, %xmm0
	addss	%xmm2, %xmm0
	addss	%xmm0, %xmm1
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm1, %xmm1
	jmp	LBB0_10
LBB0_11:
	movq	8(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_get_exponent_dynamic
	jmp	LBB0_14
LBB0_13:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_get_exponent_greedy
LBB0_14:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	_NELLY_BANDS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_40
## %bb.15:
	leaq	4(%r15), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	16(%r15), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r12
	movq	_NELLY_BANDS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_40
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_37 Depth 2
	testq	%r12, %r12
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_ff_nelly_delta_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%r12,4), %rdx
	addl	(%rax,%rdx,8), %ebx
	leaq	-52(%rbp), %rdi
	movl	$5, %esi
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_ff_nelly_init_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rdx
	movl	(%rax,%rdx,4), %ebx
	leaq	-52(%rbp), %rdi
	movl	$6, %esi
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_put_bits
	movq	_pow_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	andl	$2047, %ecx                     ## imm = 0x7FF
	movl	(%rax,%rcx,4), %eax
	movl	%ebx, %ecx
	shrl	$11, %ecx
	movq	_POW_TABLE_OFFSET@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	cltd
	idivl	%esi
	movq	_ff_nelly_band_sizes_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r12,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_39
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movq	(%r13), %r8
	movq	_NELLY_BUF_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r10
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ebx, %xmm1
	movslq	%r14d, %r14
	leal	-1(%rcx), %r11d
	xorl	%esi, %esi
	cmpl	$3, %r11d
	jb	LBB0_33
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movq	%r10, %rax
	leaq	(%r8,%r14,4), %r10
	leaq	(%r14,%r11), %rsi
	leaq	(%r8,%rsi,4), %rdi
	addq	$4, %rdi
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	(%r14,%rax), %rdx
	leaq	(%r8,%rdx,4), %rax
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	leaq	(%rdx,%r11), %rbx
	leaq	(%r8,%rbx,4), %rbx
	addq	$4, %rbx
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rsi,4), %rsi
	cmpq	%rbx, %r10
	setb	%r13b
	cmpq	%rdi, %rax
	setb	%r9b
	cmpq	%rsi, %r10
	leaq	(%r15,%r14,4), %r10
	setb	%r15b
	cmpq	%rdi, %r10
	setb	%dil
	cmpq	%rsi, %rax
	setb	%dl
	cmpq	%rbx, %r10
	setb	%al
	testb	%r9b, %r13b
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	andb	%dil, %r15b
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movq	-120(%rbp), %r10                ## 8-byte Reload
	movl	$0, %esi
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=1
	andb	%al, %dl
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_33
## %bb.26:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%r11
	movq	%r11, %rax
	andq	$-4, %rax
	movaps	%xmm0, %xmm2
	shufps	$0, %xmm0, %xmm2                ## xmm2 = xmm2[0,0],xmm0[0,0]
	movaps	%xmm1, %xmm3
	shufps	$0, %xmm1, %xmm3                ## xmm3 = xmm3[0,0],xmm1[0,0]
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	addq	$-4, %rax
	movq	%rax, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r9, %rsi
	andq	$-2, %rsi
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r14,4), %rbx
	movq	-160(%rbp), %rax                ## 8-byte Reload
	leaq	(%r8,%rax,4), %rdi
	addq	$16, %rdi
	leaq	(%r8,%r14,4), %r13
	addq	$16, %r13
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%r13,%rdx,4), %xmm4
	mulps	%xmm2, %xmm4
	movups	%xmm4, -16(%r13,%rdx,4)
	movups	-16(%rdi,%rdx,4), %xmm4
	mulps	%xmm2, %xmm4
	movups	%xmm4, -16(%rdi,%rdx,4)
	movups	%xmm3, -16(%rbx,%rdx,4)
	movups	(%r13,%rdx,4), %xmm4
	mulps	%xmm2, %xmm4
	movups	%xmm4, (%r13,%rdx,4)
	movups	(%rdi,%rdx,4), %xmm4
	mulps	%xmm2, %xmm4
	movups	%xmm4, (%rdi,%rdx,4)
	movups	%xmm3, (%rbx,%rdx,4)
	addq	$8, %rdx
	addq	$-2, %rsi
	jne	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_16 Depth=1
	testb	$1, %r9b
	je	LBB0_32
LBB0_31:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	%r14, %rdx
	movups	(%r8,%rdx,4), %xmm4
	mulps	%xmm2, %xmm4
	movups	%xmm4, (%r8,%rdx,4)
	leaq	(%rdx,%r10), %rax
	movups	(%r8,%rax,4), %xmm4
	mulps	%xmm2, %xmm4
	movups	%xmm4, (%r8,%rax,4)
	movups	%xmm3, (%r15,%rdx,4)
LBB0_32:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	addq	%rsi, %r14
	cmpq	%rsi, %r11
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_39
	jmp	LBB0_33
LBB0_27:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%edx, %edx
	testb	$1, %r9b
	jne	LBB0_31
	jmp	LBB0_32
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movq	-120(%rbp), %r10                ## 8-byte Reload
	xorl	%esi, %esi
	jmp	LBB0_33
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	%ecx, %eax
	subl	%esi, %eax
	leal	1(%rsi), %edx
	testb	$1, %al
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_16 Depth=1
	movss	(%r8,%r14,4), %xmm2             ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%r8,%r14,4)
	leaq	(%r14,%r10), %rax
	movss	(%r8,%rax,4), %xmm2             ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%r8,%rax,4)
	movss	%xmm1, (%r15,%r14,4)
	incq	%r14
	movl	%edx, %esi
LBB0_35:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	%edx, %ecx
	je	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%ebx, %r9d
	movq	%r14, %rdi
	negq	%rdi
	leaq	(%r8,%r14,4), %rdx
	addq	$4, %rdx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rsi, %rbx
	leaq	(%rax,%r14,4), %rsi
	addq	%r14, %r10
	leaq	(%r8,%r10,4), %rax
	addq	$4, %rax
	subl	%ebx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	-4(%rdx), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, -4(%rdx)
	movss	-4(%rax,%rbx,4), %xmm2          ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, -4(%rax,%rbx,4)
	movss	%xmm1, -4(%rsi,%rbx,4)
	movss	(%rdx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%rdx)
	movss	(%rax,%rbx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%rax,%rbx,4)
	movss	%xmm1, (%rsi,%rbx,4)
	addq	$-2, %rdi
	addq	$8, %rdx
	addq	$2, %rbx
	cmpl	%ebx, %ecx
	jne	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_16 Depth=1
	negq	%rdi
	movq	%rdi, %r14
	movl	%r9d, %ebx
	jmp	LBB0_39
LBB0_40:
	movq	%r15, %rdi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ff_nelly_get_sample_bits
	movq	_NELLY_FILL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_45
## %bb.41:
	xorl	%r14d, %r14d
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_42 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_45
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	movl	$1, %eax
	shll	%cl, %eax
	movslq	%eax, %rbx
	shlq	$2, %rbx
	movq	_ff_nelly_dequantization_table@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	(%r13), %rax
	movss	(%rax,%r14,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	%xmm2, -64(%rbp)                ## 4-byte Spill
	movq	_quant_lut@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_quant_lut_mul@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_quant_lut_add@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rdx,%rcx,8), %xmm0
	movss	(%rax,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm1
	addss	%xmm0, %xmm1
	cvttss2si	%xmm1, %rdi
	movq	_quant_lut_offset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rsi
	movq	8(%rax,%rcx,8), %rdx
	decq	%rdx
	callq	_av_clip
	movslq	(%r15,%rax,4), %r12
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	-4(%rbx,%r12,4), %xmm0
	callq	_fabs
	movq	%rax, %r15
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	(%rbx,%r12,4), %xmm0
	movq	%r12, %rbx
	incq	%rbx
	callq	_fabs
	cmpq	%rax, %r15
	cmovlel	%r12d, %ebx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15,%r14,4), %esi
	leaq	-52(%rbp), %rdi
	movl	%ebx, %edx
	callq	_put_bits
	movq	_NELLY_FILL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_44
LBB0_45:
	movq	_NELLY_HEADER_BITS@GOTPCREL(%rip), %rax
	movq	_NELLY_DETAIL_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	(%rax), %ebx
	leaq	-52(%rbp), %r14
	movq	%r14, %rdi
	callq	_put_bits_count
	subl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	_NELLY_FILL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_50
## %bb.46:
	xorl	%r14d, %r14d
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_47 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_50
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=1
	movl	$1, %eax
	shll	%cl, %eax
	movslq	%eax, %rbx
	shlq	$2, %rbx
	movq	_ff_nelly_dequantization_table@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	(%r13), %rax
	movq	_NELLY_BUF_LEN@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%r14, %rdx
	movss	(%rax,%rdx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	%xmm2, -64(%rbp)                ## 4-byte Spill
	movq	_quant_lut@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_quant_lut_mul@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_quant_lut_add@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rdx,%rcx,8), %xmm0
	movss	(%rax,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm1
	addss	%xmm0, %xmm1
	movq	_quant_lut_offset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rsi
	movq	8(%rax,%rcx,8), %rdx
	cvttss2si	%xmm1, %rdi
	decq	%rdx
	callq	_av_clip
	movslq	(%r15,%rax,4), %r12
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	-4(%rbx,%r12,4), %xmm0
	callq	_fabs
	movq	%rax, %r15
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	(%rbx,%r12,4), %xmm0
	movq	%r12, %rbx
	incq	%rbx
	callq	_fabs
	cmpq	%rax, %r15
	cmovlel	%r12d, %ebx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15,%r14,4), %esi
	leaq	-52(%rbp), %rdi
	movl	%ebx, %edx
	callq	_put_bits
	movq	_NELLY_FILL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_49
LBB0_50:
	leaq	-52(%rbp), %r15
	movq	%r15, %rdi
	callq	_flush_put_bits
	movq	%r15, %rdi
	callq	_put_bits_ptr
	movl	%eax, %r14d
	movslq	-100(%rbp), %rax                ## 4-byte Folded Reload
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	addq	%rax, %rbx
	movq	%r15, %rdi
	callq	_put_bits_ptr
	cltq
	subq	%rax, %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	movq	-128(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_52
## %bb.51:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NELLY_FILL_LEN,4,2             ## @NELLY_FILL_LEN
	.comm	_NELLY_BUF_LEN,4,2              ## @NELLY_BUF_LEN
	.comm	_NELLY_BANDS,4,2                ## @NELLY_BANDS
	.comm	_ff_nelly_band_sizes_table,8,3  ## @ff_nelly_band_sizes_table
	.comm	_ff_nelly_delta_table,8,3       ## @ff_nelly_delta_table
	.comm	_ff_nelly_init_table,8,3        ## @ff_nelly_init_table
	.comm	_pow_table,8,3                  ## @pow_table
	.comm	_POW_TABLE_OFFSET,4,2           ## @POW_TABLE_OFFSET
	.comm	_ff_nelly_dequantization_table,8,3 ## @ff_nelly_dequantization_table
	.comm	_quant_lut,8,3                  ## @quant_lut
	.comm	_quant_lut_mul,8,3              ## @quant_lut_mul
	.comm	_quant_lut_add,8,3              ## @quant_lut_add
	.comm	_quant_lut_offset,8,3           ## @quant_lut_offset
	.comm	_NELLY_HEADER_BITS,4,2          ## @NELLY_HEADER_BITS
	.comm	_NELLY_DETAIL_BITS,4,2          ## @NELLY_DETAIL_BITS
	.no_dead_strip	_encode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_block
_encode_block:                          ; @encode_block
	.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, #48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x8, sp
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
Lloh3:
	adrp	x8, _NELLY_FILL_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NELLY_FILL_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x8, _NELLY_BUF_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NELLY_BUF_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh13:
	adrp	x26, _NELLY_BANDS@GOTPAGE
Lloh14:
	ldr	x26, [x26, _NELLY_BANDS@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x24, x9, x12
	mov	sp, x24
	mov	x9, x8
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x12
	mov	sp, x25
	bl	_apply_mdct
	sub	x0, x29, #108
	stur	x20, [x29, #-144]               ; 8-byte Folded Spill
	mov	x1, x20
	stur	w19, [x29, #-132]               ; 4-byte Folded Spill
	mov	x2, x19
	bl	_init_put_bits
	ldr	w8, [x26]
Lloh19:
	adrp	x19, _ff_nelly_band_sizes_table@GOTPAGE
Lloh20:
	ldr	x19, [x19, _ff_nelly_band_sizes_table@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, #0
	mov	w27, #0
	mov	x28, #4652218415073722368
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi	d0, #0000000000000000
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	w8, w8, #7
	scvtf	s1, w8
	fdiv	s1, s0, s1
	fmov	d0, #1.00000000
	bl	_FFMAX
	bl	_log2
	fmov	d1, x28
	fmul	d0, d0, d1
	fcvt	s0, d0
	str	s0, [x25, x20, lsl #2]
	add	x20, x20, #1
	ldrsw	x8, [x26]
	cmp	x20, x8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x19]
	ldr	w8, [x8, x20, lsl #2]
	subs	w11, w8, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
Lloh21:
	adrp	x10, _NELLY_BUF_LEN@GOTPAGE
Lloh22:
	ldr	x10, [x10, _NELLY_BUF_LEN@GOTPAGEOFF]
Lloh23:
	ldrsw	x10, [x10]
	sxtw	x15, w27
	cmp	w11, #15
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w11, #0
	movi	d0, #0000000000000000
	mov	x12, x15
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x13, x11, #1
	and	x11, x13, #0x1fffffff0
	add	x12, x11, x15
	add	x16, x9, #32
	add	x14, x15, x10
	add	x14, x16, x14, lsl #2
	add	x15, x16, x15, lsl #2
	movi	d0, #0000000000000000
	mov	x16, x11
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q1, q2, [x15, #-32]
	ldp	q3, q4, [x15], #64
	ldp	q5, q6, [x14, #-32]
	ldp	q7, q16, [x14], #64
	fmul.4s	v5, v5, v5
	fmul.4s	v6, v6, v6
	fmul.4s	v7, v7, v7
	fmul.4s	v16, v16, v16
	fmla.4s	v5, v1, v1
	mov	s1, v5[3]
	mov	s17, v5[2]
	mov	s18, v5[1]
	fmla.4s	v6, v2, v2
	mov	s2, v6[3]
	mov	s19, v6[2]
	mov	s20, v6[1]
	fmla.4s	v7, v3, v3
	mov	s3, v7[3]
	mov	s21, v7[2]
	mov	s22, v7[1]
	fmla.4s	v16, v4, v4
	mov	s4, v16[3]
	mov	s23, v16[2]
	mov	s24, v16[1]
	fadd	s0, s0, s5
	fadd	s0, s0, s18
	fadd	s0, s0, s17
	fadd	s0, s0, s1
	fadd	s0, s0, s6
	fadd	s0, s0, s20
	fadd	s0, s0, s19
	fadd	s0, s0, s2
	fadd	s0, s0, s7
	fadd	s0, s0, s22
	fadd	s0, s0, s21
	fadd	s0, s0, s3
	fadd	s0, s0, s16
	fadd	s0, s0, s24
	fadd	s0, s0, s23
	fadd	s0, s0, s4
	subs	x16, x16, #16
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x13, x11
	b.eq	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x13, x9, x12, lsl #2
	add	x10, x12, x10
	add	x9, x9, x10, lsl #2
	sub	w10, w8, w11
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s1, [x13], #4
	ldr	s2, [x9], #4
	fmul	s2, s2, s2
	fmadd	s1, s1, s1, s2
	fadd	s0, s0, s1
	subs	w10, w10, #1
	b.ne	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, w8
	b	LBB0_3
LBB0_13:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	bl	_get_exponent_dynamic
	b	LBB0_16
LBB0_15:
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	bl	_get_exponent_greedy
LBB0_16:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.17:
	mov	x25, #0
	mov	w28, #0
	mov	w27, #0
	add	x20, x23, #4
	add	x8, x23, #16
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x26]
	cmp	x25, x8
	b.ge	LBB0_34
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
	cbz	x25, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
Lloh24:
	adrp	x8, _ff_nelly_delta_table@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ff_nelly_delta_table@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldrsw	x2, [x24, x25, lsl #2]
	ldr	x8, [x8, x2, lsl #3]
	add	w27, w27, w8
	sub	x0, x29, #108
	mov	w1, #5
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
Lloh27:
	adrp	x8, _ff_nelly_init_table@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ff_nelly_init_table@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldrsw	x2, [x24]
	ldr	w27, [x8, x2, lsl #2]
	sub	x0, x29, #108
	mov	w1, #6
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_put_bits
	ldr	x8, [x19]
	ldr	w9, [x8, x25, lsl #2]
	subs	w13, w9, #1
	b.lt	LBB0_19
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
Lloh30:
	adrp	x8, _pow_table@GOTPAGE
Lloh31:
	ldr	x8, [x8, _pow_table@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	and	w10, w27, #0x7ff
	ldr	w8, [x8, w10, uxtw #2]
Lloh33:
	adrp	x10, _POW_TABLE_OFFSET@GOTPAGE
Lloh34:
	ldr	x10, [x10, _POW_TABLE_OFFSET@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	add	w10, w10, w27, asr #11
	mov	w11, #1
	lsl	w10, w11, w10
	sdiv	w8, w8, w10
	scvtf	s0, w8
	ldr	x8, [x21]
Lloh36:
	adrp	x10, _NELLY_BUF_LEN@GOTPAGE
Lloh37:
	ldr	x10, [x10, _NELLY_BUF_LEN@GOTPAGEOFF]
Lloh38:
	ldrsw	x10, [x10]
	scvtf	s1, w27
	sxtw	x12, w28
	cmp	w13, #7
	b.hs	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w11, #0
	b	LBB0_32
LBB0_26:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w11, #0
	lsl	x14, x12, #2
	add	x17, x8, x14
	add	x15, x8, #4
	add	x16, x12, x13
	lsl	x16, x16, #2
	add	x0, x12, x10
	add	x1, x0, x13
	add	x0, x8, x0, lsl #2
	add	x1, x15, x1, lsl #2
	add	x2, x23, x14
	add	x3, x20, x16
	cmp	x17, x3
	add	x4, x15, x16
	ccmp	x2, x4, #2, lo
	cset	w16, lo
	cmp	x0, x3
	ccmp	x2, x1, #2, lo
	cset	w15, lo
	cmp	x0, x4
	ccmp	x17, x1, #2, lo
	b.lo	LBB0_32
; %bb.27:                               ;   in Loop: Header=BB0_20 Depth=1
	tbnz	w16, #0, LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_20 Depth=1
	tbnz	w15, #0, LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x13, x13, #1
	and	x11, x13, #0x1fffffff8
	add	x28, x11, x12
	dup.4s	v2, v0[0]
	dup.4s	v3, v1[0]
	ldur	x15, [x29, #-120]               ; 8-byte Folded Reload
	add	x15, x15, x14
	add	x16, x8, #16
	add	x14, x16, x14
	add	x12, x12, x10
	add	x12, x16, x12, lsl #2
	mov	x16, x11
LBB0_30:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x14, #-16]
	fmul.4s	v4, v4, v2
	fmul.4s	v5, v5, v0[0]
	stp	q4, q5, [x14, #-16]
	ldp	q4, q5, [x12, #-16]
	fmul.4s	v4, v4, v2
	fmul.4s	v5, v5, v0[0]
	stp	q4, q5, [x12, #-16]
	stp	q3, q3, [x15, #-16]
	add	x15, x15, #32
	add	x14, x14, #32
	add	x12, x12, #32
	subs	x16, x16, #8
	b.ne	LBB0_30
; %bb.31:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x12, x28
	cmp	x13, x11
	b.eq	LBB0_18
LBB0_32:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x10, x8, x10, lsl #2
	sub	w9, w9, w11
	mov	x28, x12
LBB0_33:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x11, x28, #2
	ldr	s2, [x8, x11]
	fmul	s2, s2, s0
	str	s2, [x8, x11]
	ldr	s2, [x10, x11]
	fmul	s2, s2, s0
	str	s2, [x10, x11]
	str	s1, [x23, x11]
	add	x28, x28, #1
	subs	w9, w9, #1
	b.ne	LBB0_33
	b	LBB0_18
LBB0_34:
	mov	x0, x23
	mov	x1, x22
	bl	_ff_nelly_get_sample_bits
Lloh39:
	adrp	x24, _NELLY_FILL_LEN@GOTPAGE
Lloh40:
	ldr	x24, [x24, _NELLY_FILL_LEN@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh41:
	adrp	x25, _quant_lut_add@GOTPAGE
Lloh42:
	ldr	x25, [x25, _quant_lut_add@GOTPAGEOFF]
Lloh43:
	adrp	x26, _quant_lut_offset@GOTPAGE
Lloh44:
	ldr	x26, [x26, _quant_lut_offset@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.35:
	mov	x27, #0
	mov	w28, #1
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_39
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22, x27, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_36
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
Lloh45:
	adrp	x8, _ff_nelly_dequantization_table@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ff_nelly_dequantization_table@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	lsl	w10, w28, w9
	add	x8, x8, w10, sxtw #2
	sub	x19, x8, #4
	ldr	x8, [x21]
	lsl	x20, x27, #2
	ldr	s8, [x8, x20]
Lloh48:
	adrp	x8, _quant_lut_mul@GOTPAGE
Lloh49:
	ldr	x8, [x8, _quant_lut_mul@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	ldr	s0, [x8, x9, lsl #2]
	ldr	x8, [x25]
	lsl	x10, x9, #3
	ldr	x8, [x8, x10]
Lloh51:
	adrp	x11, _quant_lut@GOTPAGE
Lloh52:
	ldr	x11, [x11, _quant_lut@GOTPAGEOFF]
Lloh53:
	ldr	x23, [x11]
	scvtf	s1, x8
	fmadd	s0, s8, s0, s1
	fcvtzs	x0, s0
	ldr	x8, [x26]
	ldr	x1, [x8, x10]
	add	x8, x8, x9, lsl #3
	ldr	x8, [x8, #8]
	sub	x2, x8, #1
	bl	_av_clip
	ldrsw	x24, [x23, x0, lsl #2]
	ldr	s0, [x19, x24, lsl #2]
	fsub	s0, s8, s0
	bl	_fabs
	mov	x23, x0
	add	w8, w24, #1
	ldr	s0, [x19, w8, sxtw #2]
	fsub	s0, s8, s0
	bl	_fabs
	cmp	x23, x0
	cinc	w2, w24, gt
Lloh54:
	adrp	x24, _NELLY_FILL_LEN@GOTPAGE
Lloh55:
	ldr	x24, [x24, _NELLY_FILL_LEN@GOTPAGEOFF]
	ldr	w1, [x22, x20]
	sub	x0, x29, #108
	bl	_put_bits
	ldr	w8, [x24]
	b	LBB0_36
LBB0_39:
Lloh56:
	adrp	x8, _NELLY_HEADER_BITS@GOTPAGE
Lloh57:
	ldr	x8, [x8, _NELLY_HEADER_BITS@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _NELLY_DETAIL_BITS@GOTPAGE
Lloh60:
	ldr	x9, [x9, _NELLY_DETAIL_BITS@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	add	w19, w9, w8
	sub	x0, x29, #108
	bl	_put_bits_count
	sub	w1, w19, w0
	sub	x0, x29, #108
	mov	w2, #0
	bl	_put_bits
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_44
; %bb.40:
	mov	x27, #0
	mov	w28, #1
	b	LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_44
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22, x27, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_41
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=1
Lloh62:
	adrp	x8, _ff_nelly_dequantization_table@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ff_nelly_dequantization_table@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	lsl	w10, w28, w9
	add	x8, x8, w10, sxtw #2
	sub	x19, x8, #4
	ldr	x8, [x21]
Lloh65:
	adrp	x10, _NELLY_BUF_LEN@GOTPAGE
Lloh66:
	ldr	x10, [x10, _NELLY_BUF_LEN@GOTPAGEOFF]
Lloh67:
	ldrsw	x10, [x10]
	add	x10, x27, x10
	ldr	s8, [x8, x10, lsl #2]
Lloh68:
	adrp	x8, _quant_lut@GOTPAGE
Lloh69:
	ldr	x8, [x8, _quant_lut@GOTPAGEOFF]
Lloh70:
	ldr	x20, [x8]
Lloh71:
	adrp	x8, _quant_lut_mul@GOTPAGE
Lloh72:
	ldr	x8, [x8, _quant_lut_mul@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	ldr	s0, [x8, x9, lsl #2]
	ldr	x8, [x25]
	lsl	x10, x9, #3
	ldr	x8, [x8, x10]
	scvtf	s1, x8
	fmadd	s0, s8, s0, s1
	fcvtzs	x0, s0
	ldr	x8, [x26]
	ldr	x1, [x8, x10]
	add	w9, w9, #1
	ldr	x8, [x8, w9, uxtw #3]
	sub	x2, x8, #1
	bl	_av_clip
	ldrsw	x20, [x20, x0, lsl #2]
	ldr	s0, [x19, x20, lsl #2]
	fsub	s0, s8, s0
	bl	_fabs
	mov	x23, x0
	add	w8, w20, #1
	ldr	s0, [x19, w8, sxtw #2]
	fsub	s0, s8, s0
	bl	_fabs
	cmp	x23, x0
	cinc	w2, w20, gt
	ldr	w1, [x22, x27, lsl #2]
	sub	x0, x29, #108
	bl	_put_bits
	ldr	w8, [x24]
	b	LBB0_41
LBB0_44:
	sub	x0, x29, #108
	bl	_flush_put_bits
	sub	x0, x29, #108
	bl	_put_bits_ptr
	mov	x21, x0
	ldur	w8, [x29, #-132]                ; 4-byte Folded Reload
	ldur	x9, [x29, #-144]                ; 8-byte Folded Reload
	add	x19, x9, w8, sxtw
	sub	x0, x29, #108
	bl	_put_bits_ptr
	sub	x2, x19, w0, sxtw
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-104]
Lloh74:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh75:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_46
; %bb.45:
	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_46:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_NELLY_FILL_LEN,4,2             ; @NELLY_FILL_LEN
	.comm	_NELLY_BUF_LEN,4,2              ; @NELLY_BUF_LEN
	.comm	_NELLY_BANDS,4,2                ; @NELLY_BANDS
	.comm	_ff_nelly_band_sizes_table,8,3  ; @ff_nelly_band_sizes_table
	.comm	_ff_nelly_delta_table,8,3       ; @ff_nelly_delta_table
	.comm	_ff_nelly_init_table,8,3        ; @ff_nelly_init_table
	.comm	_pow_table,8,3                  ; @pow_table
	.comm	_POW_TABLE_OFFSET,4,2           ; @POW_TABLE_OFFSET
	.comm	_ff_nelly_dequantization_table,8,3 ; @ff_nelly_dequantization_table
	.comm	_quant_lut,8,3                  ; @quant_lut
	.comm	_quant_lut_mul,8,3              ; @quant_lut_mul
	.comm	_quant_lut_add,8,3              ; @quant_lut_add
	.comm	_quant_lut_offset,8,3           ; @quant_lut_offset
	.comm	_NELLY_HEADER_BITS,4,2          ; @NELLY_HEADER_BITS
	.comm	_NELLY_DETAIL_BITS,4,2          ; @NELLY_DETAIL_BITS
	.no_dead_strip	_encode_block
.subsections_via_symbols
