{"type": "func", "start": 6443169888, "end": 6443170272, "name": "cocos2d::CCTMXMapInfo::internalInit", "pseudocode": "// \n// cocos2d::CCTMXMapInfo::internalInit from 0x1800af860 to 0x1800af9e0 (384 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800af599\n// > cocos2d::CCTMXMapInfo::formatWithXML @ 0x1800af648\n// > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800af77c\n// > cocos2d::CCTMXMapInfo::initWithXML @ 0x1800af7b7\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b84cc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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  size_t v11; // r8\n  struct cocos2d::CCArray *v12; // rax\n  cocos2d::CCDictionary *v13; // rax\n  cocos2d::CCDictionary *v14; // rax\n  cocos2d::CCDictionary *v15; // rax\n  cocos2d::CCDictionary *v16; // rax\n  void *Block; // [rsp+28h] [rbp-40h] BYREF\n  unsigned __int64 v18; // [rsp+40h] [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))v8->createCCArrayWithContentsOfFile)(\n           v8,\n           &Block,\n           a2,\n           0);\n    sub_1800656E0((__int64)this + 136, v9);\n    if ( v18 > 0xF )\n    {\n      v10 = Block;\n      if ( v18 + 1 >= 0x1000 )\n      {\n        v10 = *((_BYTE **)Block - 1);\n        if ( (unsigned __int64)((_BYTE *)Block - v10 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free_0(v10);\n    }\n  }\n  if ( a3 )\n  {\n    v11 = -1;\n    do\n      ++v11;\n    while ( a3[v11] );\n    sub_180010050((void **)this + 21, a3, v11);\n  }\n  v12 = cocos2d::CCArray::createWithCapacity(4u);\n  *((_QWORD *)this + 13) = v12;\n  cocos2d::CCObject::retain(v12);\n  v13 = (cocos2d::CCDictionary *)operator new(0x48u);\n  if ( v13 )\n    v14 = cocos2d::CCDictionary::CCDictionary(v13);\n  else\n    v14 = nullptr;\n  *((_QWORD *)this + 16) = v14;\n  v15 = (cocos2d::CCDictionary *)operator new(0x48u);\n  if ( v15 )\n    v16 = cocos2d::CCDictionary::CCDictionary(v15);\n  else\n    v16 = nullptr;\n  *((_QWORD *)this + 29) = v16;\n  sub_180010050((void **)this + 25, (void *)Buf2, 0);\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 0x1800af860 to 0x1800af9e0 (384 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800af599\n; > cocos2d::CCTMXMapInfo::formatWithXML @ 0x1800af648\n; > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800af77c\n; > cocos2d::CCTMXMapInfo::initWithXML @ 0x1800af7b7\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b84cc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1800af860\npush    rsi                                                            ; +0x2, 0x1800af862\npush    rdi                                                            ; +0x3, 0x1800af863\nsub     rsp, 50h                                                       ; +0x4, 0x1800af864\nmov     rax, cs:__security_cookie                                      ; +0x8, 0x1800af868\nxor     rax, rsp                                                       ; +0xf, 0x1800af86f\nmov     [rsp+68h+var_20], rax                                          ; +0x12, 0x1800af872\nmov     rdi, r8                                                        ; +0x17, 0x1800af877\nmov     rsi, rdx                                                       ; +0x1a, 0x1800af87a\nmov     rbx, rcx                                                       ; +0x1d, 0x1800af87d\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x20, 0x1800af880\nmov     [rbx+60h], rax                                                 ; +0x25, 0x1800af885\nmov     rcx, rax; this                                                 ; +0x29, 0x1800af889\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2c, 0x1800af88c\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x31, 0x1800af891\nmov     [rbx+58h], rax                                                 ; +0x36, 0x1800af896\nmov     rcx, rax; this                                                 ; +0x3a, 0x1800af89a\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x3d, 0x1800af89d\ntest    rsi, rsi                                                       ; +0x42, 0x1800af8a2\njz      short loc_1800AF910                                            ; +0x45, 0x1800af8a5\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x47, 0x1800af8a7\nmov     r10, [rax]                                                     ; +0x4c, 0x1800af8ac\nxor     r9d, r9d                                                       ; +0x4f, 0x1800af8af\nmov     r8, rsi                                                        ; +0x52, 0x1800af8b2\nlea     rdx, [rsp+68h+Block]                                           ; +0x55, 0x1800af8b5\nmov     rcx, rax                                                       ; +0x5a, 0x1800af8ba\ncall    qword ptr [r10+28h]                                            ; +0x5d, 0x1800af8bd\nlea     rcx, [rbx+88h]                                                 ; +0x61, 0x1800af8c1\nmov     rdx, rax                                                       ; +0x68, 0x1800af8c8\ncall    sub_1800656E0                                                  ; +0x6b, 0x1800af8cb\nmov     rdx, [rsp+68h+var_28]                                          ; +0x70, 0x1800af8d0\ncmp     rdx, 0Fh                                                       ; +0x75, 0x1800af8d5\njbe     short loc_1800AF910                                            ; +0x79, 0x1800af8d9\ninc     rdx                                                            ; +0x7b, 0x1800af8db\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x7e, 0x1800af8de\nmov     rax, rcx                                                       ; +0x83, 0x1800af8e3\ncmp     rdx, 1000h                                                     ; +0x86, 0x1800af8e6\njb      short loc_1800AF90B                                            ; +0x8d, 0x1800af8ed\nadd     rdx, 27h ; '''                                                 ; +0x8f, 0x1800af8ef\nmov     rcx, [rcx-8]                                                   ; +0x93, 0x1800af8f3\nsub     rax, rcx                                                       ; +0x97, 0x1800af8f7\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x9a, 0x1800af8fa\ncmp     rax, 1Fh                                                       ; +0x9e, 0x1800af8fe\njbe     short loc_1800AF90B                                            ; +0xa2, 0x1800af902\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xa4, 0x1800af904\ndb 0CCh                                                                ; +0xaa, 0x1800af90a\ncall    j_j_free_0                                                     ; +0xab, 0x1800af90b\ntest    rdi, rdi                                                       ; +0xb0, 0x1800af910\njz      short loc_1800AF939                                            ; +0xb3, 0x1800af913\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xb5, 0x1800af915\nnop     dword ptr [rax+00h]                                            ; +0xbc, 0x1800af91c\ninc     r8; Size                                                       ; +0xc0, 0x1800af920\ncmp     byte ptr [rdi+r8], 0                                           ; +0xc3, 0x1800af923\njnz     short loc_1800AF920                                            ; +0xc8, 0x1800af928\nlea     rcx, [rbx+0A8h]; void *                                        ; +0xca, 0x1800af92a\nmov     rdx, rdi; Src                                                  ; +0xd1, 0x1800af931\ncall    sub_180010050                                                  ; +0xd4, 0x1800af934\nmov     ecx, 4; Count                                                  ; +0xd9, 0x1800af939\ncall    ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0xde, 0x1800af93e\nmov     [rbx+68h], rax                                                 ; +0xe3, 0x1800af943\nmov     rcx, rax; this                                                 ; +0xe7, 0x1800af947\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xea, 0x1800af94a\nmov     ecx, 48h ; 'H'; Size                                           ; +0xef, 0x1800af94f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf4, 0x1800af954\nmov     [rsp+68h+var_48], rax                                          ; +0xf9, 0x1800af959\nxor     edi, edi                                                       ; +0xfe, 0x1800af95e\ntest    rax, rax                                                       ; +0x100, 0x1800af960\njz      short loc_1800AF96F                                            ; +0x103, 0x1800af963\nmov     rcx, rax; this                                                 ; +0x105, 0x1800af965\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x108, 0x1800af968\njmp     short loc_1800AF972                                            ; +0x10d, 0x1800af96d\nmov     rax, rdi                                                       ; +0x10f, 0x1800af96f\nmov     [rbx+80h], rax                                                 ; +0x112, 0x1800af972\nmov     ecx, 48h ; 'H'; Size                                           ; +0x119, 0x1800af979\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x11e, 0x1800af97e\nmov     [rsp+68h+var_48], rax                                          ; +0x123, 0x1800af983\ntest    rax, rax                                                       ; +0x128, 0x1800af988\njz      short loc_1800AF997                                            ; +0x12b, 0x1800af98b\nmov     rcx, rax; this                                                 ; +0x12d, 0x1800af98d\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x130, 0x1800af990\njmp     short loc_1800AF99A                                            ; +0x135, 0x1800af995\nmov     rax, rdi                                                       ; +0x137, 0x1800af997\nmov     [rbx+0E8h], rax                                                ; +0x13a, 0x1800af99a\nlea     rcx, [rbx+0C8h]; void *                                        ; +0x141, 0x1800af9a1\nxor     r8d, r8d; Size                                                 ; +0x148, 0x1800af9a8\nlea     rdx, Buf2; Src                                                 ; +0x14b, 0x1800af9ab\ncall    sub_180010050                                                  ; +0x152, 0x1800af9b2\nmov     byte ptr [rbx+7Ch], 0                                          ; +0x157, 0x1800af9b7\nmov     dword ptr [rbx+78h], 1                                         ; +0x15b, 0x1800af9bb\nmov     [rbx+70h], edi                                                 ; +0x162, 0x1800af9c2\nmov     [rbx+0F0h], edi                                                ; +0x165, 0x1800af9c5\nmov     rcx, [rsp+68h+var_20]                                          ; +0x16b, 0x1800af9cb\nxor     rcx, rsp; StackCookie                                          ; +0x170, 0x1800af9d0\ncall    __security_check_cookie                                        ; +0x173, 0x1800af9d3\nadd     rsp, 50h                                                       ; +0x178, 0x1800af9d8\npop     rdi                                                            ; +0x17c, 0x1800af9dc\npop     rsi                                                            ; +0x17d, 0x1800af9dd\npop     rbx                                                            ; +0x17e, 0x1800af9de\nretn                                                                   ; +0x17f, 0x1800af9df", "xrefs": ["cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800af599", "cocos2d::CCTMXMapInfo::formatWithXML @ 0x1800af648", "cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800af77c", "cocos2d::CCTMXMapInfo::initWithXML @ 0x1800af7b7", "<???> @ 0x1801438a8", "<???> @ 0x1801b84cc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}