//
// GameManager::colorKey from 0x418e90 to 0x418f3e (174 bytes)
//
// 3 xrefs:
// > GameManager::isColorUnlocked @ 0x418f78
// > GameManager::unlockColor @ 0x4191d6
// > GameManager::lockColor @ 0x419948
//
// 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:47:42 +0000
//
int *__fastcall GameManager::colorKey(int *a1, int a2, int a3, int a4)
{
_BOOL4 v5; // r9
const char *v7; // r0
const char *v8; // r5
size_t v9; // r0
unsigned int v11[3]; // [sp+Ch] [bp-208h] BYREF
char v12; // [sp+18h] [bp-1FCh] BYREF
v5 = a4 == 2;
v11[1] = 500;
v11[2] = (unsigned int)&v12;
v11[0] = 0;
fmt::BasicWriter::operator<<(v11, "c", 0);
fmt::BasicWriter::operator<<(v11, v5);
fmt::BasicWriter::operator<<(v11, "_", 0);
fmt::BasicWriter::operator<<(v11, a3);
v7 = (const char *)fmt::BasicWriter::c_str((int *)v11);
*a1 = 0;
a1[1] = 0;
v8 = v7;
a1[2] = 0;
v9 = strlen(v7);
std::string::__init(a1, v8, v9);
fmt::internal::Array::free((int)v11);
return a1;
}