{"type": "func", "start": 6443183792, "end": 6443183937, "name": "cocos2d::CCTMXMapInfo::formatWithTMXFile", "pseudocode": "// \n// cocos2d::CCTMXMapInfo::formatWithTMXFile from 0x1800b2eb0 to 0x1800b2f41 (145 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTMXTiledMap::create @ 0x1800b18e6\n// > cocos2d::CCTMXTiledMap::initWithTMXFile @ 0x1800b1a43\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c276c\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=1\nstruct cocos2d::CCTMXMapInfo *__fastcall cocos2d::CCTMXMapInfo::formatWithTMXFile(const char *a1)\n{\n  cocos2d::CCTMXMapInfo *v2; // rax\n  cocos2d::CCTMXMapInfo *v3; // rbx\n  const char *v4; // rdx\n\n  v2 = (cocos2d::CCTMXMapInfo *)sub_1800E4AC0(0xF8u);\n  if ( v2 )\n    v3 = cocos2d::CCTMXMapInfo::CCTMXMapInfo(v2);\n  else\n    v3 = nullptr;\n  cocos2d::CCTMXMapInfo::internalInit(v3, a1, nullptr);\n  v4 = (char *)v3 + 136;\n  if ( *((_QWORD *)v3 + 20) > 0xFu )\n    v4 = *(const char **)v4;\n  if ( cocos2d::CCTMXMapInfo::parseXMLFile(v3, v4) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n    return v3;\n  }\n  else\n  {\n    if ( v3 )\n      (*(void (__fastcall **)(cocos2d::CCTMXMapInfo *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCTMXMapInfo::formatWithTMXFile from 0x1800b2eb0 to 0x1800b2f41 (145 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTMXTiledMap::create @ 0x1800b18e6\n; > cocos2d::CCTMXTiledMap::initWithTMXFile @ 0x1800b1a43\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c276c\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b2eb0\npush    rdi                                                            ; +0x5, 0x1800b2eb5\nsub     rsp, 20h                                                       ; +0x6, 0x1800b2eb6\nmov     rdi, rcx                                                       ; +0xa, 0x1800b2eba\nmov     ecx, 0F8h; Size                                                ; +0xd, 0x1800b2ebd\ncall    sub_1800E4AC0                                                  ; +0x12, 0x1800b2ec2\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x1800b2ec7\ntest    rax, rax                                                       ; +0x1c, 0x1800b2ecc\njz      short loc_1800B2EDE                                            ; +0x1f, 0x1800b2ecf\nmov     rcx, rax; this                                                 ; +0x21, 0x1800b2ed1\ncall    ??0CCTMXMapInfo@cocos2d@@QEAA@XZ; cocos2d::CCTMXMapInfo::CCTMXMapInfo(void) ; +0x24, 0x1800b2ed4\nmov     rbx, rax                                                       ; +0x29, 0x1800b2ed9\njmp     short loc_1800B2EE0                                            ; +0x2c, 0x1800b2edc\nxor     ebx, ebx                                                       ; +0x2e, 0x1800b2ede\nxor     r8d, r8d; char *                                               ; +0x30, 0x1800b2ee0\nmov     rdx, rdi; char *                                               ; +0x33, 0x1800b2ee3\nmov     rcx, rbx; this                                                 ; +0x36, 0x1800b2ee6\ncall    ?internalInit@CCTMXMapInfo@cocos2d@@AEAAXPEBD0@Z; cocos2d::CCTMXMapInfo::internalInit(char const *,char const *) ; +0x39, 0x1800b2ee9\nlea     rdx, [rbx+88h]                                                 ; +0x3e, 0x1800b2eee\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x45, 0x1800b2ef5\njbe     short loc_1800B2EFF                                            ; +0x4a, 0x1800b2efa\nmov     rdx, [rdx]; char *                                             ; +0x4c, 0x1800b2efc\nmov     rcx, rbx; this                                                 ; +0x4f, 0x1800b2eff\ncall    ?parseXMLFile@CCTMXMapInfo@cocos2d@@QEAA_NPEBD@Z; cocos2d::CCTMXMapInfo::parseXMLFile(char const *) ; +0x52, 0x1800b2f02\ntest    al, al                                                         ; +0x57, 0x1800b2f07\njz      short loc_1800B2F21                                            ; +0x59, 0x1800b2f09\nmov     rcx, rbx; this                                                 ; +0x5b, 0x1800b2f0b\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x5e, 0x1800b2f0e\nmov     rax, rbx                                                       ; +0x63, 0x1800b2f13\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x1800b2f16\nadd     rsp, 20h                                                       ; +0x6b, 0x1800b2f1b\npop     rdi                                                            ; +0x6f, 0x1800b2f1f\nretn                                                                   ; +0x70, 0x1800b2f20\ntest    rbx, rbx                                                       ; +0x71, 0x1800b2f21\njz      short loc_1800B2F34                                            ; +0x74, 0x1800b2f24\nmov     rax, [rbx]                                                     ; +0x76, 0x1800b2f26\nmov     edx, 1                                                         ; +0x79, 0x1800b2f29\nmov     rcx, rbx                                                       ; +0x7e, 0x1800b2f2e\ncall    qword ptr [rax+8]                                              ; +0x81, 0x1800b2f31\nxor     eax, eax                                                       ; +0x84, 0x1800b2f34\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x86, 0x1800b2f36\nadd     rsp, 20h                                                       ; +0x8b, 0x1800b2f3b\npop     rdi                                                            ; +0x8f, 0x1800b2f3f\nretn                                                                   ; +0x90, 0x1800b2f40", "xrefs": ["cocos2d::CCTMXTiledMap::create @ 0x1800b18e6", "cocos2d::CCTMXTiledMap::initWithTMXFile @ 0x1800b1a43", "<???> @ 0x18014cf68", "<???> @ 0x1801c276c"], "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"}