//
// cocos2d::CCTMXMapInfo::internalInit from 0xdae674 to 0xdae7b0 (316 bytes)
//
// 3 xrefs:
// > cocos2d::CCTMXMapInfo::initWithXML @ 0xdae7c8
// > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0xdae868
// > ??> @ 0xf3538
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:36 +0000
//
__int64 __fastcall cocos2d::CCTMXMapInfo::internalInit(cocos2d::CCTMXMapInfo *this, const char *a2, char *a3)
{
cocos2d::CCArray *v5; // x0
cocos2d::CCArray *v6; // x0
cocos2d::CCArray *v7; // x0
cocos2d::CCFileUtils *v8; // x0
__int64 v9; // x0
__int64 v10; // x1
cocos2d::CCArray *v11; // x0
cocos2d::CCDictionary *v12; // x21
cocos2d::CCDictionary *v13; // x21
_QWORD v16[3]; // [xsp+40h] [xbp+40h] BYREF
v5 = cocos2d::CCArray::create(_stack_chk_guard);
*((_QWORD *)this + 12) = v5;
v6 = (cocos2d::CCArray *)cocos2d::CCObject::retain((__int64)v5);
v7 = cocos2d::CCArray::create(v6);
*((_QWORD *)this + 11) = v7;
v8 = (cocos2d::CCFileUtils *)cocos2d::CCObject::retain((__int64)v7);
if ( a2 )
{
v9 = cocos2d::CCFileUtils::sharedFileUtils(v8);
(*(void (__fastcall **)(_QWORD *__return_ptr, __int64, const char *, _QWORD))(*(_QWORD *)v9 + 48LL))(v16, v9, a2, 0);
if ( (*((_BYTE *)this + 136) & 1) != 0 )
{
**((_BYTE **)this + 19) = 0;
*((_QWORD *)this + 18) = 0;
}
else
{
*((_BYTE *)this + 137) = 0;
*((_BYTE *)this + 136) = 0;
}
std::string::reserve((__int64 *)this + 17, 0);
*((_QWORD *)this + 19) = v16[2];
v10 = v16[1];
*((_QWORD *)this + 17) = v16[0];
*((_QWORD *)this + 18) = v10;
}
if ( a3 )
std::string::assign((__int64 *)this + 20, a3);
v11 = cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)byte_4);
*((_QWORD *)this + 13) = v11;
cocos2d::CCObject::retain((__int64)v11);
v12 = (cocos2d::CCDictionary *)operator new(0x48u);
cocos2d::CCDictionary::CCDictionary(v12);
*((_QWORD *)this + 16) = v12;
v13 = (cocos2d::CCDictionary *)operator new(0x48u);
cocos2d::CCDictionary::CCDictionary(v13);
*((_QWORD *)this + 26) = v13;
std::string::assign((__int64 *)this + 23, &byte_11B8890);
*((_BYTE *)this + 124) = 0;
*((_DWORD *)this + 28) = 0;
*((_DWORD *)this + 30) = 1;
*((_DWORD *)this + 54) = 0;
return _stack_chk_guard;
}