//
// GameManager::colorKey from 0x325858 to 0x3258f8 (160 bytes)
//
// 3 xrefs:
// > GameManager::isColorUnlocked @ 0x325930
// > GameManager::unlockColor @ 0x325b8e
// > GameManager::lockColor @ 0x3262be
//
// 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
//
int __fastcall GameManager::colorKey(int a1, int a2, int a3, int a4)
{
_BOOL4 v5; // r9
char *v7; // r0
unsigned int v9[3]; // [sp+Ch] [bp-208h] BYREF
char v10; // [sp+18h] [bp-1FCh] BYREF
v5 = a4 == 2;
v9[1] = 500;
v9[2] = (unsigned int)&v10;
v9[0] = 0;
fmt::BasicWriter::operator<<(v9, "c", 0);
fmt::BasicWriter::operator<<(v9, v5);
fmt::BasicWriter::operator<<(v9, "_", 0);
fmt::BasicWriter::operator<<(v9, a3);
v7 = (char *)fmt::BasicWriter::c_str((int *)v9);
sub_776584(a1, v7);
fmt::internal::Array::free((int)v9);
return a1;
}