//
// GJSmartTemplate::keyFromNeighborsOld from 0x9db1f4 to 0x9db3f0 (508 bytes)
//
// 2 xrefs:
// > GJSmartTemplate::generateRemapDict @ 0x9db77c
// > ??> @ 0xa57c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __usercall GJSmartTemplate::keyFromNeighborsOld@(
GJSmartTemplate *this@,
unsigned __int8 a2@,
unsigned __int8 a3@,
unsigned __int8 a4@,
unsigned __int8 a5@,
unsigned __int8 a6@,
unsigned __int8 a7@,
unsigned __int8 a8@,
__int64 a9@,
bool a10)
{
unsigned int v10; // w28
unsigned int v11; // w27
unsigned int v12; // w26
unsigned int v13; // w25
unsigned int v15; // w24
unsigned int v16; // w23
unsigned int v17; // w22
unsigned int v18; // w21
size_t v19; // x21
size_t v21; // [xsp+A8h] [xbp+A8h] BYREF
unsigned __int64 v22; // [xsp+B0h] [xbp+B0h]
char *v23; // [xsp+B8h] [xbp+B8h]
_BYTE v24[504]; // [xsp+C0h] [xbp+C0h] BYREF
v10 = (unsigned __int8)this;
v11 = a2;
v12 = a3;
v13 = a4;
v21 = 0;
v22 = 500;
v15 = a5;
v23 = v24;
v16 = a6;
v17 = a7;
v18 = a8;
fmt::BasicWriter::FormatInt,char>>(&v21, 1u);
fmt::BasicWriter::FormatInt,char>>(&v21, v10);
fmt::BasicWriter::FormatInt,char>>(&v21, v11);
fmt::BasicWriter::FormatInt,char>>(&v21, v12);
fmt::BasicWriter::FormatInt,char>>(&v21, v13);
fmt::BasicWriter::FormatInt,char>>(&v21, v15);
fmt::BasicWriter::FormatInt,char>>(&v21, v16);
fmt::BasicWriter::FormatInt,char>>(&v21, v17);
fmt::BasicWriter::FormatInt,char>>(&v21, v18);
v19 = v21;
if ( v22 < v21 + 1 )
fmt::internal::Array::grow(&v21, v21 + 1);
v23[v19] = 0;
sub_D153B8(a9, v23);
if ( v23 != v24 && v23 )
operator delete[](v23);
return a9;
}