//
// cocos2d::CCTMXMapInfo::internalInit from 0x805d98 to 0x805e82 (234 bytes)
//
// 2 xrefs:
// > cocos2d::CCTMXMapInfo::initWithXML @ 0x805e94
// > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x805ee0
//
// 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 12:01:24 +0000
//
int *__fastcall cocos2d::CCTMXMapInfo::internalInit(cocos2d::CCTMXMapInfo *this, const char *a2, char *a3)
{
cocos2d::CCArray *v6; // r0
cocos2d::CCArray *v7; // r0
cocos2d::CCArray *v8; // r0
cocos2d::CCFileUtils *v9; // r0
unsigned int v10; // r1
int v11; // r0
int v12; // r0
int v13; // r1
int v14; // r2
cocos2d::CCArray *v15; // r0
cocos2d::CCDictionary *v16; // r5
cocos2d::CCDictionary *v17; // r5
int *result; // r0
int v19; // [sp+0h] [bp-14h] BYREF
int v20; // [sp+4h] [bp-10h]
int v21; // [sp+8h] [bp-Ch]
v6 = cocos2d::CCArray::create(this);
*((_DWORD *)this + 20) = v6;
v7 = (cocos2d::CCArray *)cocos2d::CCObject::retain((int)v6);
v8 = cocos2d::CCArray::create(v7);
*((_DWORD *)this + 19) = v8;
v9 = (cocos2d::CCFileUtils *)cocos2d::CCObject::retain((int)v8);
if ( a2 )
{
v11 = cocos2d::CCFileUtils::sharedFileUtils(v9);
(*(void (__fastcall **)(int *, int, const char *, _DWORD))(*(_DWORD *)v11 + 24))(&v19, v11, a2, 0);
if ( (*((_BYTE *)this + 108) & 1) != 0 )
{
**((_BYTE **)this + 29) = 0;
*((_DWORD *)this + 28) = 0;
}
else
{
*((_BYTE *)this + 109) = 0;
*((_BYTE *)this + 108) = 0;
}
std::string::reserve((int *)this + 27, 0);
v12 = v19;
v13 = v20;
v14 = v21;
v19 = 0;
v20 = 0;
v21 = 0;
*((_DWORD *)this + 27) = v12;
*((_DWORD *)this + 28) = v13;
*((_DWORD *)this + 29) = v14;
std::string::~string((int)&v19);
}
if ( a3 )
std::string::assign((int *)this + 30, a3);
v15 = cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)&byte_4, v10);
*((_DWORD *)this + 21) = v15;
cocos2d::CCObject::retain((int)v15);
v16 = (cocos2d::CCDictionary *)operator new(0x3Cu);
cocos2d::CCDictionary::CCDictionary(v16);
*((_DWORD *)this + 26) = v16;
v17 = (cocos2d::CCDictionary *)operator new(0x3Cu);
cocos2d::CCDictionary::CCDictionary(v17);
*((_DWORD *)this + 36) = v17;
result = std::string::assign((int *)this + 33, (char *)&unk_B6B226);
*((_BYTE *)this + 100) = 0;
*((_DWORD *)this + 24) = 1;
*((_DWORD *)this + 22) = 0;
*((_DWORD *)this + 37) = 0;
return result;
}