{"type": "func", "start": 6443178528, "end": 6443178628, "name": "cocos2d::CCTMXTiledMap::initWithTMXFile", "pseudocode": "// \n// cocos2d::CCTMXTiledMap::initWithTMXFile from 0x1800b1a20 to 0x1800b1a84 (100 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2640\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:19 +0000\n// \n\nbool __fastcall cocos2d::CCTMXTiledMap::initWithTMXFile(cocos2d::CCTMXTiledMap *this, const char *a2)\n{\n  struct cocos2d::CCTMXMapInfo *v4; // rax\n  struct cocos2d::CCTMXMapInfo *v5; // rbx\n  cocos2d::CCArray *v6; // rax\n\n  (*(void (__fastcall **)(cocos2d::CCTMXTiledMap *, _DWORD *))(*(_QWORD *)this + 312LL))(this, dword_1801B3B38);\n  v4 = cocos2d::CCTMXMapInfo::formatWithTMXFile(a2);\n  v5 = v4;\n  if ( v4 )\n  {\n    v6 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCTMXMapInfo *))(*(_QWORD *)v4 + 88LL))(v4);\n    cocos2d::CCArray::count(v6);\n    cocos2d::CCTMXTiledMap::buildWithMapInfo(this, v5);\n    LOBYTE(v4) = 1;\n  }\n  return (char)v4;\n}", "assembly": "; \n; cocos2d::CCTMXTiledMap::initWithTMXFile from 0x1800b1a20 to 0x1800b1a84 (100 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2640\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:19 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b1a20\npush    rdi                                                            ; +0x5, 0x1800b1a25\nsub     rsp, 20h                                                       ; +0x6, 0x1800b1a26\nmov     rax, [rcx]                                                     ; +0xa, 0x1800b1a2a\nmov     rbx, rdx                                                       ; +0xd, 0x1800b1a2d\nlea     rdx, dword_1801B3B38                                           ; +0x10, 0x1800b1a30\nmov     rdi, rcx                                                       ; +0x17, 0x1800b1a37\ncall    qword ptr [rax+138h]                                           ; +0x1a, 0x1800b1a3a\nmov     rcx, rbx; char *                                               ; +0x20, 0x1800b1a40\ncall    ?formatWithTMXFile@CCTMXMapInfo@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCTMXMapInfo::formatWithTMXFile(char const *) ; +0x23, 0x1800b1a43\nmov     rbx, rax                                                       ; +0x28, 0x1800b1a48\ntest    rax, rax                                                       ; +0x2b, 0x1800b1a4b\njnz     short loc_1800B1A5B                                            ; +0x2e, 0x1800b1a4e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x30, 0x1800b1a50\nadd     rsp, 20h                                                       ; +0x35, 0x1800b1a55\npop     rdi                                                            ; +0x39, 0x1800b1a59\nretn                                                                   ; +0x3a, 0x1800b1a5a\nmov     rax, [rax]                                                     ; +0x3b, 0x1800b1a5b\nmov     rcx, rbx                                                       ; +0x3e, 0x1800b1a5e\ncall    qword ptr [rax+58h]                                            ; +0x41, 0x1800b1a61\nmov     rcx, rax; this                                                 ; +0x44, 0x1800b1a64\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x47, 0x1800b1a67\nmov     rdx, rbx; struct cocos2d::CCTMXMapInfo *                       ; +0x4c, 0x1800b1a6c\nmov     rcx, rdi; this                                                 ; +0x4f, 0x1800b1a6f\ncall    ?buildWithMapInfo@CCTMXTiledMap@cocos2d@@AEAAXPEAVCCTMXMapInfo@2@@Z; cocos2d::CCTMXTiledMap::buildWithMapInfo(cocos2d::CCTMXMapInfo *) ; +0x52, 0x1800b1a72\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x57, 0x1800b1a77\nmov     al, 1                                                          ; +0x5c, 0x1800b1a7c\nadd     rsp, 20h                                                       ; +0x5e, 0x1800b1a7e\npop     rdi                                                            ; +0x62, 0x1800b1a82\nretn                                                                   ; +0x63, 0x1800b1a83", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c2640"], "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"}