//
// generateAllBinaryStrings from 0x53c83c to 0x53c8ba (126 bytes)
//
// 5 xrefs:
// > generateAllBinaryStrings @ 0x53c884
// > generateAllBinaryStrings @ 0x53c898
// > GJSmartTemplate::logTemplateStatus @ 0x53c8ea
// > GJSmartTemplate::getTemplateState @ 0x53ca38
// > GJSmartTemplate::generateRemapDict @ 0x53ccba
//
// 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 generateAllBinaryStrings(int a1, int *a2, int a3, cocos2d::CCDictionary *a4, cocos2d::CCNode *a5)
{
int v10[2]; // [sp+8h] [bp-8h] BYREF
v10[0] = a3;
v10[1] = (int)a4;
if ( a3 == a1 )
{
printTheArray(v10, (int)a2, a3);
cocos2d::CCDictionary::setObject((int)a4, a5);
return sub_774008(v10);
}
else
{
a2[a3] = 0;
generateAllBinaryStrings(a1, a2, a3 + 1, a4, a5);
a2[a3] = 1;
return generateAllBinaryStrings(a1, a2, a3 + 1, a4, a5);
}
}