//
// GameManager::colorKey from 0x14017c7b0 to 0x14017c8df (303 bytes)
//
// 4 xrefs:
// > GameManager::isColorUnlocked @ 0x14017c913
// > GameManager::completedAchievement @ 0x14017d312
// > GameManager::resetAchievement @ 0x14017d4e4
// > ??> @ 0x1406cb3a0
//
// 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
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall GameManager::colorKey(__int64 a1, _QWORD *a2, unsigned int a3, int a4)
{
_BYTE *v7; // rax
size_t v8; // r8
const char *v10; // [rsp+20h] [rbp-258h] BYREF
__int64 v11; // [rsp+28h] [rbp-250h]
_BYTE v12[528]; // [rsp+40h] [rbp-238h] BYREF
fmt::BasicWriter::BasicWriter(v12);
v10 = "c";
v11 = 0;
fmt::BasicWriter::operator<<(v12, &v10);
fmt::BasicWriter::operator<<(v12, a4 == 2);
v10 = "_";
v11 = 0;
fmt::BasicWriter::operator<<(v12, &v10);
fmt::BasicWriter::operator<<(v12, a3);
v7 = (_BYTE *)fmt::BasicWriter::c_str(v12);
*(_OWORD *)a2 = 0;
a2[2] = 0;
a2[3] = 0;
v8 = -1;
do
++v8;
while ( v7[v8] );
sub_14003A930(a2, v7, v8);
fmt::BasicWriter::~BasicWriter(v12);
return a2;
}