// File: FreeSlave[P]vhlt/hlrad/nomatrix.cpp
// Function: MakeScalesNoVismatrix()
void            MakeScalesNoVismatrix()
{
    char            transferfile[_MAX_PATH];

    hlassume(g_num_patches < MAX_PATCHES, assume_MAX_PATCHES);

#ifdef ZHLT_DEFAULTEXTENSION_FIX
	safe_snprintf(transferfile, _MAX_PATH, "%s.inc", g_Mapname);
#else
    safe_strncpy(transferfile, g_source, _MAX_PATH);
    StripExtension(transferfile);
    DefaultExtension(transferfile, ".inc");
#endif

    if (!g_incremental || !readtransfers(transferfile, g_num_patches))
    {
        g_CheckVisBit = CheckVisBitNoVismatrix;
#ifndef HLRAD_HULLU
        NamedRunThreadsOn(g_num_patches, g_estimate, MakeScales);
#else
	if(g_rgb_transfers)
		{NamedRunThreadsOn(g_num_patches, g_estimate, MakeRGBScales);}
	else
		{NamedRunThreadsOn(g_num_patches, g_estimate, MakeScales);}
#endif

#ifndef HLRAD_NOSWAP
        // invert the transfers for gather vs scatter
#ifndef HLRAD_HULLU
        NamedRunThreadsOnIndividual(g_num_patches, g_estimate, SwapTransfers);
#else
	if(g_rgb_transfers)
		{NamedRunThreadsOnIndividual(g_num_patches, g_estimate, SwapRGBTransfers);}
	else
		{NamedRunThreadsOnIndividual(g_num_patches, g_estimate, SwapTransfers);}
#endif
#endif /*HLRAD_NOSWAP*/
        if (g_incremental)
        {
            writetransfers(transferfile, g_num_patches);
        }
        else
        {
            unlink(transferfile);
        }
        DumpTransfersMemoryUsage();
#ifdef HLRAD_OPAQUE_STYLE_BOUNCE
		CreateFinalStyleArrays ("dynamic shadow array");
#endif
    }
}

// Assembly:
subq $0x1008, %rsp           # imm = 0x1008
leaq 0x542047a(%rip), %rax   # 0x546da08
cmpl $0xffff0, (%rax)        # imm = 0xFFFF0
setb %al
movzbl %al, %edi
andl $0x1, %edi
movl $0x1b, %esi
callq 0xbf00
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x1e4c8(%rip), %rdx     # 0x6ba7e
leaq 0x2fda3(%rip), %rcx     # 0x7d360
movb $0x0, %al
callq 0x94e0
leaq 0x54e2455(%rip), %rax   # 0x552fa20
testb $0x1, (%rax)
je 0x4d5eb
movq %rsp, %rdi
leaq 0x542042e(%rip), %rax   # 0x546da08
movl (%rax), %eax
movl %eax, %esi
callq 0x65770
testb $0x1, %al
jne 0x4d6c4
leaq 0x66e2566(%rip), %rax   # 0x672fb58
leaq 0xd7(%rip), %rcx        # 0x4d6d0
movq %rcx, (%rax)
leaq 0x54e2446(%rip), %rax   # 0x552fa49
testb $0x1, (%rax)
je 0x4d64a
leaq 0x21541(%rip), %rdi     # 0x6eb50
callq 0xb2f0
movq %rax, %rsi
leaq 0x2107f(%rip), %rdi     # 0x6e69d
movb $0x0, %al
callq 0xb0d0
leaq 0x54203dc(%rip), %rax   # 0x546da08
movl (%rax), %edi
leaq 0x30dff(%rip), %rax     # 0x7e434
movb (%rax), %al
leaq 0x1af22(%rip), %rdx     # 0x68560
andb $0x1, %al
movzbl %al, %esi
callq 0xd2a0
jmp 0x4d68a
leaq 0x2150e(%rip), %rdi     # 0x6eb5f
callq 0xb2f0
movq %rax, %rsi
leaq 0x2103d(%rip), %rdi     # 0x6e69d
movb $0x0, %al
callq 0xb0d0
leaq 0x542039a(%rip), %rax   # 0x546da08
movl (%rax), %edi
leaq 0x30dbd(%rip), %rax     # 0x7e434
movb (%rax), %al
leaq 0x19ee0(%rip), %rdx     # 0x67560
andb $0x1, %al
movzbl %al, %esi
callq 0xd2a0
leaq 0x54e238f(%rip), %rax   # 0x552fa20
testb $0x1, (%rax)
je 0x4d6ab
movq %rsp, %rdi
leaq 0x5420368(%rip), %rax   # 0x546da08
movl (%rax), %eax
movl %eax, %esi
callq 0x65520
jmp 0x4d6b3
movq %rsp, %rdi
callq 0x4180
callq 0x69480
leaq 0x214ac(%rip), %rdi     # 0x6eb6b
callq 0x66600
addq $0x1008, %rsp           # imm = 0x1008
retq
nopl (%rax)