//
// GameToolbox::createHashString from 0x3cfe3c to 0x3cff16 (218 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:46:40 +0000
//
int *__fastcall GameToolbox::createHashString(int *a1, int a2, int a3)
{
const char *v6; // r0
signed int v7; // r0
int v8; // r0
int v9; // r1
int v10; // r2
int v11; // r10
int v12; // r11
int v13; // r5
int v14; // r3
int v16; // [sp+0h] [bp-14h] BYREF
int v17; // [sp+4h] [bp-10h]
int v18; // [sp+8h] [bp-Ch]
if ( a3 <= 0 )
{
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
std::string::__init(a1, &unk_B6B226, 0);
}
else
{
v16 = 0;
v17 = 0;
v18 = 0;
std::string::__init(&v16, &unk_B6B226, 0);
if ( (*(_BYTE *)a2 & 1) != 0 )
v6 = *(const char **)(a2 + 8);
else
v6 = (const char *)(a2 + 1);
v7 = strlen(v6);
if ( v7 >= a3 )
{
v11 = 0;
v12 = 0;
v13 = (int)(float)((float)v7 / (float)a3);
do
{
if ( (*(_BYTE *)a2 & 1) != 0 )
v14 = *(_DWORD *)(a2 + 8);
else
v14 = a2 + 1;
std::string::push_back(&v16, *(_BYTE *)(v14 + v12));
++v11;
v12 += v13;
}
while ( v11 != a3 );
}
else
{
std::string::operator=((unsigned __int8 *)&v16, (unsigned __int8 *)a2);
}
v8 = v16;
v9 = v17;
v10 = v18;
v16 = 0;
v17 = 0;
v18 = 0;
*a1 = v8;
a1[1] = v9;
a1[2] = v10;
std::string::~string((int)&v16);
}
return a1;
}