{"type": "func", "start": 6443169120, "end": 6443169265, "name": "cocos2d::CCTMXMapInfo::formatWithTMXFile", "pseudocode": "// \n// cocos2d::CCTMXMapInfo::formatWithTMXFile from 0x1800af560 to 0x1800af5f1 (145 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTMXTiledMap::create @ 0x1800ae086\n// > cocos2d::CCTMXTiledMap::initWithTMXFile @ 0x1800ae1c3\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b849c\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=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 *p_m_uID; // rdx\n\n  v2 = (cocos2d::CCTMXMapInfo *)operator new(0xF8u);\n  if ( v2 )\n    v3 = cocos2d::CCTMXMapInfo::CCTMXMapInfo(v2);\n  else\n    v3 = nullptr;\n  cocos2d::CCTMXMapInfo::internalInit(v3, a1, nullptr);\n  p_m_uID = (const char *)&v3[2].m_uID;\n  if ( *(_QWORD *)&v3[2].m_uIndexInArray > 0xFu )\n    p_m_uID = *(const char **)p_m_uID;\n  if ( cocos2d::CCTMXMapInfo::parseXMLFile(v3, p_m_uID) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n    return v3;\n  }\n  else\n  {\n    if ( v3 )\n      ((void (__fastcall *)(cocos2d::CCTMXMapInfo *, __int64))v3->~CCTMXMapInfo)(v3, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCTMXMapInfo::formatWithTMXFile from 0x1800af560 to 0x1800af5f1 (145 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTMXTiledMap::create @ 0x1800ae086\n; > cocos2d::CCTMXTiledMap::initWithTMXFile @ 0x1800ae1c3\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b849c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800af560\npush    rdi                                                            ; +0x5, 0x1800af565\nsub     rsp, 20h                                                       ; +0x6, 0x1800af566\nmov     rdi, rcx                                                       ; +0xa, 0x1800af56a\nmov     ecx, 0F8h; Size                                                ; +0xd, 0x1800af56d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x1800af572\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x1800af577\ntest    rax, rax                                                       ; +0x1c, 0x1800af57c\njz      short loc_1800AF58E                                            ; +0x1f, 0x1800af57f\nmov     rcx, rax; this                                                 ; +0x21, 0x1800af581\ncall    ??0CCTMXMapInfo@cocos2d@@QEAA@XZ; cocos2d::CCTMXMapInfo::CCTMXMapInfo(void) ; +0x24, 0x1800af584\nmov     rbx, rax                                                       ; +0x29, 0x1800af589\njmp     short loc_1800AF590                                            ; +0x2c, 0x1800af58c\nxor     ebx, ebx                                                       ; +0x2e, 0x1800af58e\nxor     r8d, r8d; char *                                               ; +0x30, 0x1800af590\nmov     rdx, rdi; char *                                               ; +0x33, 0x1800af593\nmov     rcx, rbx; this                                                 ; +0x36, 0x1800af596\ncall    ?internalInit@CCTMXMapInfo@cocos2d@@AEAAXPEBD0@Z; cocos2d::CCTMXMapInfo::internalInit(char const *,char const *) ; +0x39, 0x1800af599\nlea     rdx, [rbx+88h]                                                 ; +0x3e, 0x1800af59e\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x45, 0x1800af5a5\njbe     short loc_1800AF5AF                                            ; +0x4a, 0x1800af5aa\nmov     rdx, [rdx]; char *                                             ; +0x4c, 0x1800af5ac\nmov     rcx, rbx; this                                                 ; +0x4f, 0x1800af5af\ncall    ?parseXMLFile@CCTMXMapInfo@cocos2d@@QEAA_NPEBD@Z; cocos2d::CCTMXMapInfo::parseXMLFile(char const *) ; +0x52, 0x1800af5b2\ntest    al, al                                                         ; +0x57, 0x1800af5b7\njz      short loc_1800AF5D1                                            ; +0x59, 0x1800af5b9\nmov     rcx, rbx; this                                                 ; +0x5b, 0x1800af5bb\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x5e, 0x1800af5be\nmov     rax, rbx                                                       ; +0x63, 0x1800af5c3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x1800af5c6\nadd     rsp, 20h                                                       ; +0x6b, 0x1800af5cb\npop     rdi                                                            ; +0x6f, 0x1800af5cf\nretn                                                                   ; +0x70, 0x1800af5d0\ntest    rbx, rbx                                                       ; +0x71, 0x1800af5d1\njz      short loc_1800AF5E4                                            ; +0x74, 0x1800af5d4\nmov     rax, [rbx]                                                     ; +0x76, 0x1800af5d6\nmov     edx, 1                                                         ; +0x79, 0x1800af5d9\nmov     rcx, rbx                                                       ; +0x7e, 0x1800af5de\ncall    qword ptr [rax+8]                                              ; +0x81, 0x1800af5e1\nxor     eax, eax                                                       ; +0x84, 0x1800af5e4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x86, 0x1800af5e6\nadd     rsp, 20h                                                       ; +0x8b, 0x1800af5eb\npop     rdi                                                            ; +0x8f, 0x1800af5ef\nretn                                                                   ; +0x90, 0x1800af5f0", "xrefs": ["cocos2d::CCTMXTiledMap::create @ 0x1800ae086", "cocos2d::CCTMXTiledMap::initWithTMXFile @ 0x1800ae1c3", "<???> @ 0x1801438a8", "<???> @ 0x1801b849c"], "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"}