{"type": "func", "start": 6443151680, "end": 6443151923, "name": "cocos2d::CCTileMapAtlas::create", "pseudocode": "// \n// cocos2d::CCTileMapAtlas::create from 0x1800ab140 to 0x1800ab233 (243 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8040\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::CCTileMapAtlas *__fastcall cocos2d::CCTileMapAtlas::create(\n        const char *a1,\n        const char *a2,\n        unsigned int a3,\n        unsigned int a4)\n{\n  cocos2d::CCAtlasNode *v8; // rax\n  cocos2d::CCTileMapAtlas *v9; // rbx\n  void (__stdcall *v11)(cocos2d::CCTileMapAtlas *__hidden); // r8\n\n  v8 = (cocos2d::CCAtlasNode *)operator new(0x1B0u);\n  v9 = (cocos2d::CCTileMapAtlas *)v8;\n  if ( v8 )\n  {\n    cocos2d::CCAtlasNode::CCAtlasNode(v8);\n    v9->cocos2d::CCAtlasNode::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCTileMapAtlas_vtbl *)&cocos2d::CCTileMapAtlas::`vftable'{for `cocos2d::CCNode'};\n    v9->cocos2d::CCAtlasNode::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&cocos2d::CCTileMapAtlas::`vftable'{for `cocos2d::CCRGBAProtocol'};\n    v9->cocos2d::CCAtlasNode::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&cocos2d::CCTileMapAtlas::`vftable';\n    v9->m_pTGAInfo = nullptr;\n    v9->m_pPosToAtlasIndex = nullptr;\n    v9->m_nItemsToRender = 0;\n  }\n  else\n  {\n    v9 = nullptr;\n  }\n  if ( cocos2d::CCTileMapAtlas::initWithTileFile(v9, a1, a2, a3, a4) )\n  {\n    cocos2d::CCObject::autorelease(v9);\n    return v9;\n  }\n  else\n  {\n    if ( v9 )\n    {\n      v11 = v9->~CCTileMapAtlas;\n      if ( (char *)v11 == (char *)sub_1800AB010 )\n        sub_1800AB010(v9, 1);\n      else\n        ((void (__fastcall *)(cocos2d::CCTileMapAtlas *, __int64))v11)(v9, 1);\n    }\n    return nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCTileMapAtlas::create from 0x1800ab140 to 0x1800ab233 (243 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8040\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, 0x1800ab140\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800ab145\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800ab14a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800ab14f\npush    r14                                                            ; +0x14, 0x1800ab154\nsub     rsp, 40h                                                       ; +0x16, 0x1800ab156\nmov     edi, r9d                                                       ; +0x1a, 0x1800ab15a\nmov     esi, r8d                                                       ; +0x1d, 0x1800ab15d\nmov     rbp, rdx                                                       ; +0x20, 0x1800ab160\nmov     r14, rcx                                                       ; +0x23, 0x1800ab163\nmov     ecx, 1B0h; Size                                                ; +0x26, 0x1800ab166\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x1800ab16b\nmov     rbx, rax                                                       ; +0x30, 0x1800ab170\nmov     [rsp+48h+var_18], rax                                          ; +0x33, 0x1800ab173\ntest    rax, rax                                                       ; +0x38, 0x1800ab178\njz      short loc_1800AB1C3                                            ; +0x3b, 0x1800ab17b\nmov     rcx, rax; this                                                 ; +0x3d, 0x1800ab17d\ncall    ??0CCAtlasNode@cocos2d@@QEAA@XZ; cocos2d::CCAtlasNode::CCAtlasNode(void) ; +0x40, 0x1800ab180\nlea     rax, ??_7CCTileMapAtlas@cocos2d@@6BCCNode@1@@; const cocos2d::CCTileMapAtlas::`vftable'{for `cocos2d::CCNode'} ; +0x45, 0x1800ab185\nmov     [rbx], rax                                                     ; +0x4c, 0x1800ab18c\nlea     rax, ??_7CCTileMapAtlas@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCTileMapAtlas::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x4f, 0x1800ab18f\nmov     [rbx+140h], rax                                                ; +0x56, 0x1800ab196\nlea     rax, ??_7CCTileMapAtlas@cocos2d@@6B@; const cocos2d::CCTileMapAtlas::`vftable' ; +0x5d, 0x1800ab19d\nmov     [rbx+158h], rax                                                ; +0x64, 0x1800ab1a4\nxor     eax, eax                                                       ; +0x6b, 0x1800ab1ab\nmov     [rbx+198h], rax                                                ; +0x6d, 0x1800ab1ad\nmov     [rbx+1A0h], rax                                                ; +0x74, 0x1800ab1b4\nmov     [rbx+1A8h], eax                                                ; +0x7b, 0x1800ab1bb\njmp     short loc_1800AB1C6                                            ; +0x81, 0x1800ab1c1\nmov     rbx, rax                                                       ; +0x83, 0x1800ab1c3\nmov     [rsp+48h+var_28], edi; unsigned int                            ; +0x86, 0x1800ab1c6\nmov     r9d, esi; unsigned int                                         ; +0x8a, 0x1800ab1ca\nmov     r8, rbp; char *                                                ; +0x8d, 0x1800ab1cd\nmov     rdx, r14; char *                                               ; +0x90, 0x1800ab1d0\nmov     rcx, rbx; this                                                 ; +0x93, 0x1800ab1d3\ncall    ?initWithTileFile@CCTileMapAtlas@cocos2d@@QEAA_NPEBD0HH@Z; cocos2d::CCTileMapAtlas::initWithTileFile(char const *,char const *,int,int) ; +0x96, 0x1800ab1d6\ntest    al, al                                                         ; +0x9b, 0x1800ab1db\njz      short loc_1800AB1EC                                            ; +0x9d, 0x1800ab1dd\nmov     rcx, rbx; this                                                 ; +0x9f, 0x1800ab1df\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa2, 0x1800ab1e2\nmov     rax, rbx                                                       ; +0xa7, 0x1800ab1e7\njmp     short loc_1800AB218                                            ; +0xaa, 0x1800ab1ea\ntest    rbx, rbx                                                       ; +0xac, 0x1800ab1ec\njz      short loc_1800AB216                                            ; +0xaf, 0x1800ab1ef\nmov     rax, [rbx]                                                     ; +0xb1, 0x1800ab1f1\nmov     r8, [rax+8]                                                    ; +0xb4, 0x1800ab1f4\nlea     rax, sub_1800AB010                                             ; +0xb8, 0x1800ab1f8\nmov     edx, 1                                                         ; +0xbf, 0x1800ab1ff\nmov     rcx, rbx; Block                                                ; +0xc4, 0x1800ab204\ncmp     r8, rax                                                        ; +0xc7, 0x1800ab207\njnz     short loc_1800AB213                                            ; +0xca, 0x1800ab20a\ncall    sub_1800AB010                                                  ; +0xcc, 0x1800ab20c\njmp     short loc_1800AB216                                            ; +0xd1, 0x1800ab211\ncall    r8                                                             ; +0xd3, 0x1800ab213\nxor     eax, eax                                                       ; +0xd6, 0x1800ab216\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xd8, 0x1800ab218\nmov     rbp, [rsp+48h+arg_8]                                           ; +0xdd, 0x1800ab21d\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xe2, 0x1800ab222\nmov     rdi, [rsp+48h+arg_18]                                          ; +0xe7, 0x1800ab227\nadd     rsp, 40h                                                       ; +0xec, 0x1800ab22c\npop     r14                                                            ; +0xf0, 0x1800ab230\nretn                                                                   ; +0xf2, 0x1800ab232", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b8040"], "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"}