//
// sub_3088BC from 0x3088bc to 0x308976 (186 bytes)
//
// 2 xrefs:
// > CreateGuidelinesLayer::getMergedRecordString @ 0x308a54
// > CreateGuidelinesLayer::getMergedRecordString @ 0x308a5c
//
// 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
//
cocos2d::CCArray *__fastcall sub_3088BC(cocos2d::CCArray *a1)
{
int v2; // r5
cocos2d::CCArray *v3; // r10
int v4; // r0
int v5; // r6
const std::string *v6; // r1
cocos2d::CCObject *v7; // r0
bool (__fastcall *canEncode)(cocos2d::CCObject *__hidden); // [sp+4h] [bp-18h]
char *v10; // [sp+Ch] [bp-10h] BYREF
char v11; // [sp+10h] [bp-Ch] BYREF
v2 = 0;
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
v4 = sub_774A78((int)a1, "~");
canEncode = a1->__vftable[-1].canEncode;
v5 = v4;
while ( 1 )
{
sub_776158(&v10, a1, v2, v5 - v2);
if ( *((_DWORD *)v10 - 3) || (bool (__fastcall *)(cocos2d::CCObject *__hidden))v2 != canEncode )
{
sub_776584((int)&v11, v10);
v7 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v11, v6);
cocos2d::CCArray::addObject(v3, v7);
sub_774008(&v11);
}
if ( v5 == -1 )
break;
v2 = v5 + 1;
v5 = sub_774A78((int)a1, "~");
sub_774008(&v10);
}
sub_774008(&v10);
return v3;
}