{"type": "func", "start": 6442457456, "end": 6442457633, "name": "cocos2d::CCAtlasNode::create", "pseudocode": "// \n// cocos2d::CCAtlasNode::create from 0x180001970 to 0x180001a21 (177 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b70cc\n// > <???> @ 0x1801b70d8\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:21:15 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCAtlasNode *__fastcall cocos2d::CCAtlasNode::create(\n        const char *a1,\n        unsigned int a2,\n        unsigned int a3,\n        unsigned int a4)\n{\n  cocos2d::CCAtlasNode *v8; // rax\n  cocos2d::CCAtlasNode *v9; // rbx\n  cocos2d::CCTextureCache *v10; // rax\n  struct cocos2d::CCTexture2D *v11; // rax\n\n  v8 = (cocos2d::CCAtlasNode *)sub_1800E4AC0(0x198u);\n  if ( v8 )\n    v9 = cocos2d::CCAtlasNode::CCAtlasNode(v8);\n  else\n    v9 = nullptr;\n  v10 = cocos2d::CCTextureCache::sharedTextureCache();\n  v11 = cocos2d::CCTextureCache::addImage(v10, a1, 0);\n  if ( cocos2d::CCAtlasNode::initWithTexture(v9, v11, a2, a3, a4) )\n  {\n    cocos2d::CCObject::autorelease(v9);\n    return v9;\n  }\n  else\n  {\n    if ( v9 )\n      (*(void (__fastcall **)(cocos2d::CCAtlasNode *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCAtlasNode::create from 0x180001970 to 0x180001a21 (177 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b70cc\n; > <???> @ 0x1801b70d8\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:21:15 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180001970\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180001975\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18000197a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18000197f\npush    r14                                                            ; +0x14, 0x180001984\nsub     rsp, 40h                                                       ; +0x16, 0x180001986\nmov     edi, r9d                                                       ; +0x1a, 0x18000198a\nmov     esi, r8d                                                       ; +0x1d, 0x18000198d\nmov     ebp, edx                                                       ; +0x20, 0x180001990\nmov     r14, rcx                                                       ; +0x22, 0x180001992\nmov     ecx, 198h; Size                                                ; +0x25, 0x180001995\ncall    sub_1800E4AC0                                                  ; +0x2a, 0x18000199a\nmov     [rsp+48h+var_18], rax                                          ; +0x2f, 0x18000199f\ntest    rax, rax                                                       ; +0x34, 0x1800019a4\njz      short loc_1800019B6                                            ; +0x37, 0x1800019a7\nmov     rcx, rax; this                                                 ; +0x39, 0x1800019a9\ncall    ??0CCAtlasNode@cocos2d@@QEAA@XZ; cocos2d::CCAtlasNode::CCAtlasNode(void) ; +0x3c, 0x1800019ac\nmov     rbx, rax                                                       ; +0x41, 0x1800019b1\njmp     short loc_1800019B8                                            ; +0x44, 0x1800019b4\nxor     ebx, ebx                                                       ; +0x46, 0x1800019b6\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x48, 0x1800019b8\nmov     rcx, rax; this                                                 ; +0x4d, 0x1800019bd\nxor     r8d, r8d; bool                                                 ; +0x50, 0x1800019c0\nmov     rdx, r14; char *                                               ; +0x53, 0x1800019c3\ncall    ?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x56, 0x1800019c6\nmov     [rsp+48h+var_28], edi; unsigned int                            ; +0x5b, 0x1800019cb\nmov     r9d, esi; unsigned int                                         ; +0x5f, 0x1800019cf\nmov     r8d, ebp; unsigned int                                         ; +0x62, 0x1800019d2\nmov     rdx, rax; struct cocos2d::CCTexture2D *                        ; +0x65, 0x1800019d5\nmov     rcx, rbx; this                                                 ; +0x68, 0x1800019d8\ncall    ?initWithTexture@CCAtlasNode@cocos2d@@QEAA_NPEAVCCTexture2D@2@III@Z; cocos2d::CCAtlasNode::initWithTexture(cocos2d::CCTexture2D *,uint,uint,uint) ; +0x6b, 0x1800019db\ntest    al, al                                                         ; +0x70, 0x1800019e0\njz      short loc_1800019F1                                            ; +0x72, 0x1800019e2\nmov     rcx, rbx; this                                                 ; +0x74, 0x1800019e4\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x77, 0x1800019e7\nmov     rax, rbx                                                       ; +0x7c, 0x1800019ec\njmp     short loc_180001A06                                            ; +0x7f, 0x1800019ef\ntest    rbx, rbx                                                       ; +0x81, 0x1800019f1\njz      short loc_180001A04                                            ; +0x84, 0x1800019f4\nmov     rax, [rbx]                                                     ; +0x86, 0x1800019f6\nmov     edx, 1                                                         ; +0x89, 0x1800019f9\nmov     rcx, rbx                                                       ; +0x8e, 0x1800019fe\ncall    qword ptr [rax+8]                                              ; +0x91, 0x180001a01\nxor     eax, eax                                                       ; +0x94, 0x180001a04\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x96, 0x180001a06\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x9b, 0x180001a0b\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xa0, 0x180001a10\nmov     rdi, [rsp+48h+arg_18]                                          ; +0xa5, 0x180001a15\nadd     rsp, 40h                                                       ; +0xaa, 0x180001a1a\npop     r14                                                            ; +0xae, 0x180001a1e\nretn                                                                   ; +0xb0, 0x180001a20", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b70cc", "<???> @ 0x1801b70d8"], "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"}