{"type": "func", "start": 6443184560, "end": 6443184940, "name": "cocos2d::CCTMXMapInfo::internalInit", "pseudocode": "// \n// cocos2d::CCTMXMapInfo::internalInit from 0x1800b31b0 to 0x1800b332c (380 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800b2ee9\n// > cocos2d::CCTMXMapInfo::formatWithXML @ 0x1800b2f98\n// > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800b30cc\n// > cocos2d::CCTMXMapInfo::initWithXML @ 0x1800b3107\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c279c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:20 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall cocos2d::CCTMXMapInfo::internalInit(cocos2d::CCTMXMapInfo *this, const char *a2, char *a3)\n{\n  struct cocos2d::CCArray *v6; // rax\n  struct cocos2d::CCArray *v7; // rax\n  struct cocos2d::CCFileUtils *v8; // rax\n  __int64 v9; // rax\n  _BYTE *v10; // rcx\n  struct cocos2d::CCArray *v11; // rax\n  cocos2d::CCDictionary *v12; // rax\n  cocos2d::CCDictionary *v13; // rax\n  cocos2d::CCDictionary *v14; // rax\n  cocos2d::CCDictionary *v15; // rax\n  void *Block; // [rsp+38h] [rbp-40h] BYREF\n  unsigned __int64 v17; // [rsp+50h] [rbp-28h]\n\n  v6 = cocos2d::CCArray::create();\n  *((_QWORD *)this + 12) = v6;\n  cocos2d::CCObject::retain(v6);\n  v7 = cocos2d::CCArray::create();\n  *((_QWORD *)this + 11) = v7;\n  cocos2d::CCObject::retain(v7);\n  if ( a2 )\n  {\n    v8 = cocos2d::CCFileUtils::sharedFileUtils();\n    v9 = (*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))(*(_QWORD *)v8 + 40LL))(\n           v8,\n           &Block,\n           a2,\n           0);\n    sub_180067AE0((__int64)this + 136, v9);\n    if ( v17 > 0xF )\n    {\n      v10 = Block;\n      if ( v17 + 1 >= 0x1000 )\n      {\n        v10 = *((_BYTE **)Block - 1);\n        if ( (unsigned __int64)((_BYTE *)Block - v10 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free_0(v10);\n    }\n  }\n  if ( a3 )\n    sub_1800AAC20((void **)this + 21, a3);\n  v11 = cocos2d::CCArray::createWithCapacity(4u);\n  *((_QWORD *)this + 13) = v11;\n  cocos2d::CCObject::retain(v11);\n  v12 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u);\n  if ( v12 )\n    v13 = cocos2d::CCDictionary::CCDictionary(v12);\n  else\n    v13 = nullptr;\n  *((_QWORD *)this + 16) = v13;\n  v14 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u);\n  if ( v14 )\n    v15 = cocos2d::CCDictionary::CCDictionary(v14);\n  else\n    v15 = nullptr;\n  *((_QWORD *)this + 29) = v15;\n  sub_1800AAC20((void **)this + 25, (char *)Text);\n  *((_BYTE *)this + 124) = 0;\n  *((_DWORD *)this + 30) = 1;\n  *((_DWORD *)this + 28) = 0;\n  *((_DWORD *)this + 60) = 0;\n}", "assembly": "; \n; cocos2d::CCTMXMapInfo::internalInit from 0x1800b31b0 to 0x1800b332c (380 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800b2ee9\n; > cocos2d::CCTMXMapInfo::formatWithXML @ 0x1800b2f98\n; > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800b30cc\n; > cocos2d::CCTMXMapInfo::initWithXML @ 0x1800b3107\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c279c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:20 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800b31b0\npush    rsi                                                            ; +0x2, 0x1800b31b2\npush    rdi                                                            ; +0x3, 0x1800b31b3\nsub     rsp, 60h                                                       ; +0x4, 0x1800b31b4\nmov     rax, cs:__security_cookie                                      ; +0x8, 0x1800b31b8\nxor     rax, rsp                                                       ; +0xf, 0x1800b31bf\nmov     [rsp+78h+var_20], rax                                          ; +0x12, 0x1800b31c2\nmov     rdi, r8                                                        ; +0x17, 0x1800b31c7\nmov     rsi, rdx                                                       ; +0x1a, 0x1800b31ca\nmov     rbx, rcx                                                       ; +0x1d, 0x1800b31cd\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x20, 0x1800b31d0\nmov     [rbx+60h], rax                                                 ; +0x25, 0x1800b31d5\nmov     rcx, rax; this                                                 ; +0x29, 0x1800b31d9\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2c, 0x1800b31dc\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x31, 0x1800b31e1\nmov     [rbx+58h], rax                                                 ; +0x36, 0x1800b31e6\nmov     rcx, rax; this                                                 ; +0x3a, 0x1800b31ea\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x3d, 0x1800b31ed\ntest    rsi, rsi                                                       ; +0x42, 0x1800b31f2\njz      short loc_1800B3274                                            ; +0x45, 0x1800b31f5\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x47, 0x1800b31f7\nmov     rcx, [rax]                                                     ; +0x4c, 0x1800b31fc\nmov     r10, [rcx+28h]                                                 ; +0x4f, 0x1800b31ff\nxor     r9d, r9d                                                       ; +0x53, 0x1800b3203\nmov     r8, rsi                                                        ; +0x56, 0x1800b3206\nlea     rdx, [rsp+78h+Block]                                           ; +0x59, 0x1800b3209\nmov     rcx, rax                                                       ; +0x5e, 0x1800b320e\ncall    r10                                                            ; +0x61, 0x1800b3211\nlea     rcx, [rbx+88h]                                                 ; +0x64, 0x1800b3214\nmov     rdx, rax                                                       ; +0x6b, 0x1800b321b\ncall    sub_180067AE0                                                  ; +0x6e, 0x1800b321e\nmov     rdx, [rsp+78h+var_28]                                          ; +0x73, 0x1800b3223\ncmp     rdx, 0Fh                                                       ; +0x78, 0x1800b3228\njbe     short loc_1800B3274                                            ; +0x7c, 0x1800b322c\ninc     rdx                                                            ; +0x7e, 0x1800b322e\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x81, 0x1800b3231\nmov     rax, rcx                                                       ; +0x86, 0x1800b3236\ncmp     rdx, 1000h                                                     ; +0x89, 0x1800b3239\njb      short loc_1800B326F                                            ; +0x90, 0x1800b3240\nadd     rdx, 27h ; '''                                                 ; +0x92, 0x1800b3242\nmov     rcx, [rcx-8]                                                   ; +0x96, 0x1800b3246\nsub     rax, rcx                                                       ; +0x9a, 0x1800b324a\nsub     rax, 8                                                         ; +0x9d, 0x1800b324d\ncmp     rax, 1Fh                                                       ; +0xa1, 0x1800b3251\njbe     short loc_1800B326F                                            ; +0xa5, 0x1800b3255\nxor     edi, edi                                                       ; +0xa7, 0x1800b3257\nmov     [rsp+78h+Reserved], rdi; Reserved                              ; +0xa9, 0x1800b3259\nxor     r9d, r9d; LineNo                                               ; +0xae, 0x1800b325e\nxor     r8d, r8d; FileName                                             ; +0xb1, 0x1800b3261\nxor     edx, edx; FunctionName                                         ; +0xb4, 0x1800b3264\nxor     ecx, ecx; Expression                                           ; +0xb6, 0x1800b3266\ncall    cs:_invoke_watson                                              ; +0xb8, 0x1800b3268\ndb 0CCh                                                                ; +0xbe, 0x1800b326e\ncall    j_j_free_0                                                     ; +0xbf, 0x1800b326f\ntest    rdi, rdi                                                       ; +0xc4, 0x1800b3274\njz      short loc_1800B3288                                            ; +0xc7, 0x1800b3277\nlea     rcx, [rbx+0A8h]; void *                                        ; +0xc9, 0x1800b3279\nmov     rdx, rdi; Str                                                  ; +0xd0, 0x1800b3280\ncall    sub_1800AAC20                                                  ; +0xd3, 0x1800b3283\nmov     ecx, 4; Count                                                  ; +0xd8, 0x1800b3288\ncall    ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0xdd, 0x1800b328d\nmov     [rbx+68h], rax                                                 ; +0xe2, 0x1800b3292\nmov     rcx, rax; this                                                 ; +0xe6, 0x1800b3296\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xe9, 0x1800b3299\nmov     ecx, 48h ; 'H'; Size                                           ; +0xee, 0x1800b329e\ncall    sub_1800E4AC0                                                  ; +0xf3, 0x1800b32a3\nmov     [rsp+78h+var_48], rax                                          ; +0xf8, 0x1800b32a8\nxor     edi, edi                                                       ; +0xfd, 0x1800b32ad\ntest    rax, rax                                                       ; +0xff, 0x1800b32af\njz      short loc_1800B32BE                                            ; +0x102, 0x1800b32b2\nmov     rcx, rax; this                                                 ; +0x104, 0x1800b32b4\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x107, 0x1800b32b7\njmp     short loc_1800B32C1                                            ; +0x10c, 0x1800b32bc\nmov     rax, rdi                                                       ; +0x10e, 0x1800b32be\nmov     [rbx+80h], rax                                                 ; +0x111, 0x1800b32c1\nmov     ecx, 48h ; 'H'; Size                                           ; +0x118, 0x1800b32c8\ncall    sub_1800E4AC0                                                  ; +0x11d, 0x1800b32cd\nmov     [rsp+78h+var_48], rax                                          ; +0x122, 0x1800b32d2\ntest    rax, rax                                                       ; +0x127, 0x1800b32d7\njz      short loc_1800B32E6                                            ; +0x12a, 0x1800b32da\nmov     rcx, rax; this                                                 ; +0x12c, 0x1800b32dc\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x12f, 0x1800b32df\njmp     short loc_1800B32E9                                            ; +0x134, 0x1800b32e4\nmov     rax, rdi                                                       ; +0x136, 0x1800b32e6\nmov     [rbx+0E8h], rax                                                ; +0x139, 0x1800b32e9\nlea     rcx, [rbx+0C8h]; void *                                        ; +0x140, 0x1800b32f0\nlea     rdx, Text; Str                                                 ; +0x147, 0x1800b32f7\ncall    sub_1800AAC20                                                  ; +0x14e, 0x1800b32fe\nmov     byte ptr [rbx+7Ch], 0                                          ; +0x153, 0x1800b3303\nmov     dword ptr [rbx+78h], 1                                         ; +0x157, 0x1800b3307\nmov     [rbx+70h], edi                                                 ; +0x15e, 0x1800b330e\nmov     [rbx+0F0h], edi                                                ; +0x161, 0x1800b3311\nmov     rcx, [rsp+78h+var_20]                                          ; +0x167, 0x1800b3317\nxor     rcx, rsp; StackCookie                                          ; +0x16c, 0x1800b331c\ncall    __security_check_cookie                                        ; +0x16f, 0x1800b331f\nadd     rsp, 60h                                                       ; +0x174, 0x1800b3324\npop     rdi                                                            ; +0x178, 0x1800b3328\npop     rsi                                                            ; +0x179, 0x1800b3329\npop     rbx                                                            ; +0x17a, 0x1800b332a\nretn                                                                   ; +0x17b, 0x1800b332b", "xrefs": ["cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800b2ee9", "cocos2d::CCTMXMapInfo::formatWithXML @ 0x1800b2f98", "cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800b30cc", "cocos2d::CCTMXMapInfo::initWithXML @ 0x1800b3107", "<???> @ 0x18014cf68", "<???> @ 0x1801c279c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}