{"type": "func", "start": 6443166016, "end": 6443166259, "name": "cocos2d::CCTileMapAtlas::create", "pseudocode": "// \n// cocos2d::CCTileMapAtlas::create from 0x1800ae940 to 0x1800aea33 (243 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2304\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:18 +0000\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::CCAtlasNode *v9; // rbx\n  cocos2d::CCTileMapAtlas *(__fastcall *v11)(cocos2d::CCTileMapAtlas *, char); // r8\n\n  v8 = (cocos2d::CCAtlasNode *)sub_1800E4AC0(0x1B0u);\n  v9 = v8;\n  if ( v8 )\n  {\n    cocos2d::CCAtlasNode::CCAtlasNode(v8);\n    *(_QWORD *)v9 = &cocos2d::CCTileMapAtlas::`vftable'{for `cocos2d::CCNode'};\n    *((_QWORD *)v9 + 40) = &cocos2d::CCTileMapAtlas::`vftable'{for `cocos2d::CCRGBAProtocol'};\n    *((_QWORD *)v9 + 43) = &cocos2d::CCTileMapAtlas::`vftable';\n    *((_QWORD *)v9 + 51) = 0;\n    *((_QWORD *)v9 + 52) = 0;\n    *((_DWORD *)v9 + 106) = 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 = *(cocos2d::CCTileMapAtlas *(__fastcall **)(cocos2d::CCTileMapAtlas *, char))(*(_QWORD *)v9 + 8LL);\n      if ( v11 == sub_1800AE810 )\n        sub_1800AE810(v9, 1);\n      else\n        v11(v9, 1);\n    }\n    return nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCTileMapAtlas::create from 0x1800ae940 to 0x1800aea33 (243 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2304\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:18 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800ae940\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800ae945\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800ae94a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800ae94f\npush    r14                                                            ; +0x14, 0x1800ae954\nsub     rsp, 40h                                                       ; +0x16, 0x1800ae956\nmov     edi, r9d                                                       ; +0x1a, 0x1800ae95a\nmov     esi, r8d                                                       ; +0x1d, 0x1800ae95d\nmov     rbp, rdx                                                       ; +0x20, 0x1800ae960\nmov     r14, rcx                                                       ; +0x23, 0x1800ae963\nmov     ecx, 1B0h; Size                                                ; +0x26, 0x1800ae966\ncall    sub_1800E4AC0                                                  ; +0x2b, 0x1800ae96b\nmov     rbx, rax                                                       ; +0x30, 0x1800ae970\nmov     [rsp+48h+var_18], rax                                          ; +0x33, 0x1800ae973\ntest    rax, rax                                                       ; +0x38, 0x1800ae978\njz      short loc_1800AE9C3                                            ; +0x3b, 0x1800ae97b\nmov     rcx, rax; this                                                 ; +0x3d, 0x1800ae97d\ncall    ??0CCAtlasNode@cocos2d@@QEAA@XZ; cocos2d::CCAtlasNode::CCAtlasNode(void) ; +0x40, 0x1800ae980\nlea     rax, ??_7CCTileMapAtlas@cocos2d@@6BCCNode@1@@; const cocos2d::CCTileMapAtlas::`vftable'{for `cocos2d::CCNode'} ; +0x45, 0x1800ae985\nmov     [rbx], rax                                                     ; +0x4c, 0x1800ae98c\nlea     rax, ??_7CCTileMapAtlas@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCTileMapAtlas::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x4f, 0x1800ae98f\nmov     [rbx+140h], rax                                                ; +0x56, 0x1800ae996\nlea     rax, ??_7CCTileMapAtlas@cocos2d@@6B@; const cocos2d::CCTileMapAtlas::`vftable' ; +0x5d, 0x1800ae99d\nmov     [rbx+158h], rax                                                ; +0x64, 0x1800ae9a4\nxor     eax, eax                                                       ; +0x6b, 0x1800ae9ab\nmov     [rbx+198h], rax                                                ; +0x6d, 0x1800ae9ad\nmov     [rbx+1A0h], rax                                                ; +0x74, 0x1800ae9b4\nmov     [rbx+1A8h], eax                                                ; +0x7b, 0x1800ae9bb\njmp     short loc_1800AE9C6                                            ; +0x81, 0x1800ae9c1\nmov     rbx, rax                                                       ; +0x83, 0x1800ae9c3\nmov     [rsp+48h+var_28], edi; unsigned int                            ; +0x86, 0x1800ae9c6\nmov     r9d, esi; unsigned int                                         ; +0x8a, 0x1800ae9ca\nmov     r8, rbp; char *                                                ; +0x8d, 0x1800ae9cd\nmov     rdx, r14; char *                                               ; +0x90, 0x1800ae9d0\nmov     rcx, rbx; this                                                 ; +0x93, 0x1800ae9d3\ncall    ?initWithTileFile@CCTileMapAtlas@cocos2d@@QEAA_NPEBD0HH@Z; cocos2d::CCTileMapAtlas::initWithTileFile(char const *,char const *,int,int) ; +0x96, 0x1800ae9d6\ntest    al, al                                                         ; +0x9b, 0x1800ae9db\njz      short loc_1800AE9EC                                            ; +0x9d, 0x1800ae9dd\nmov     rcx, rbx; this                                                 ; +0x9f, 0x1800ae9df\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa2, 0x1800ae9e2\nmov     rax, rbx                                                       ; +0xa7, 0x1800ae9e7\njmp     short loc_1800AEA18                                            ; +0xaa, 0x1800ae9ea\ntest    rbx, rbx                                                       ; +0xac, 0x1800ae9ec\njz      short loc_1800AEA16                                            ; +0xaf, 0x1800ae9ef\nmov     rax, [rbx]                                                     ; +0xb1, 0x1800ae9f1\nmov     r8, [rax+8]                                                    ; +0xb4, 0x1800ae9f4\nlea     rax, sub_1800AE810                                             ; +0xb8, 0x1800ae9f8\nmov     edx, 1                                                         ; +0xbf, 0x1800ae9ff\nmov     rcx, rbx; Block                                                ; +0xc4, 0x1800aea04\ncmp     r8, rax                                                        ; +0xc7, 0x1800aea07\njnz     short loc_1800AEA13                                            ; +0xca, 0x1800aea0a\ncall    sub_1800AE810                                                  ; +0xcc, 0x1800aea0c\njmp     short loc_1800AEA16                                            ; +0xd1, 0x1800aea11\ncall    r8                                                             ; +0xd3, 0x1800aea13\nxor     eax, eax                                                       ; +0xd6, 0x1800aea16\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xd8, 0x1800aea18\nmov     rbp, [rsp+48h+arg_8]                                           ; +0xdd, 0x1800aea1d\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xe2, 0x1800aea22\nmov     rdi, [rsp+48h+arg_18]                                          ; +0xe7, 0x1800aea27\nadd     rsp, 40h                                                       ; +0xec, 0x1800aea2c\npop     r14                                                            ; +0xf0, 0x1800aea30\nretn                                                                   ; +0xf2, 0x1800aea32", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c2304"], "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"}