//
// cocos2d::CCTMXMapInfo::internalInit from 0x1800b31b0 to 0x1800b332c (380 bytes)
//
// 6 xrefs:
// > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800b2ee9
// > cocos2d::CCTMXMapInfo::formatWithXML @ 0x1800b2f98
// > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800b30cc
// > cocos2d::CCTMXMapInfo::initWithXML @ 0x1800b3107
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c279c
//
// This function is hookable on this platform (idp: pc, 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 11:22:20 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall cocos2d::CCTMXMapInfo::internalInit(cocos2d::CCTMXMapInfo *this, const char *a2, char *a3)
{
struct cocos2d::CCArray *v6; // rax
struct cocos2d::CCArray *v7; // rax
struct cocos2d::CCFileUtils *v8; // rax
__int64 v9; // rax
_BYTE *v10; // rcx
struct cocos2d::CCArray *v11; // rax
cocos2d::CCDictionary *v12; // rax
cocos2d::CCDictionary *v13; // rax
cocos2d::CCDictionary *v14; // rax
cocos2d::CCDictionary *v15; // rax
void *Block; // [rsp+38h] [rbp-40h] BYREF
unsigned __int64 v17; // [rsp+50h] [rbp-28h]
v6 = cocos2d::CCArray::create();
*((_QWORD *)this + 12) = v6;
cocos2d::CCObject::retain(v6);
v7 = cocos2d::CCArray::create();
*((_QWORD *)this + 11) = v7;
cocos2d::CCObject::retain(v7);
if ( a2 )
{
v8 = cocos2d::CCFileUtils::sharedFileUtils();
v9 = (*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))(*(_QWORD *)v8 + 40LL))(
v8,
&Block,
a2,
0);
sub_180067AE0((__int64)this + 136, v9);
if ( v17 > 0xF )
{
v10 = Block;
if ( v17 + 1 >= 0x1000 )
{
v10 = *((_BYTE **)Block - 1);
if ( (unsigned __int64)((_BYTE *)Block - v10 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v10);
}
}
if ( a3 )
sub_1800AAC20((void **)this + 21, a3);
v11 = cocos2d::CCArray::createWithCapacity(4u);
*((_QWORD *)this + 13) = v11;
cocos2d::CCObject::retain(v11);
v12 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u);
if ( v12 )
v13 = cocos2d::CCDictionary::CCDictionary(v12);
else
v13 = nullptr;
*((_QWORD *)this + 16) = v13;
v14 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u);
if ( v14 )
v15 = cocos2d::CCDictionary::CCDictionary(v14);
else
v15 = nullptr;
*((_QWORD *)this + 29) = v15;
sub_1800AAC20((void **)this + 25, (char *)Text);
*((_BYTE *)this + 124) = 0;
*((_DWORD *)this + 30) = 1;
*((_DWORD *)this + 28) = 0;
*((_DWORD *)this + 60) = 0;
}