{"type": "func", "start": 6442457536, "end": 6442457713, "name": "cocos2d::CCAtlasNode::create", "pseudocode": "// \n// cocos2d::CCAtlasNode::create from 0x1800019c0 to 0x180001a71 (177 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad0cc\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::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 *)operator new(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))v9->~CCAtlasNode)(v9, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCAtlasNode::create from 0x1800019c0 to 0x180001a71 (177 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad0cc\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, 0x1800019c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800019c5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800019ca\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800019cf\npush    r14                                                            ; +0x14, 0x1800019d4\nsub     rsp, 40h                                                       ; +0x16, 0x1800019d6\nmov     edi, r9d                                                       ; +0x1a, 0x1800019da\nmov     esi, r8d                                                       ; +0x1d, 0x1800019dd\nmov     ebp, edx                                                       ; +0x20, 0x1800019e0\nmov     r14, rcx                                                       ; +0x22, 0x1800019e2\nmov     ecx, 198h; Size                                                ; +0x25, 0x1800019e5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x1800019ea\nmov     [rsp+48h+var_18], rax                                          ; +0x2f, 0x1800019ef\ntest    rax, rax                                                       ; +0x34, 0x1800019f4\njz      short loc_180001A06                                            ; +0x37, 0x1800019f7\nmov     rcx, rax; this                                                 ; +0x39, 0x1800019f9\ncall    ??0CCAtlasNode@cocos2d@@QEAA@XZ; cocos2d::CCAtlasNode::CCAtlasNode(void) ; +0x3c, 0x1800019fc\nmov     rbx, rax                                                       ; +0x41, 0x180001a01\njmp     short loc_180001A08                                            ; +0x44, 0x180001a04\nxor     ebx, ebx                                                       ; +0x46, 0x180001a06\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x48, 0x180001a08\nmov     rcx, rax; this                                                 ; +0x4d, 0x180001a0d\nxor     r8d, r8d; bool                                                 ; +0x50, 0x180001a10\nmov     rdx, r14; char *                                               ; +0x53, 0x180001a13\ncall    ?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x56, 0x180001a16\nmov     [rsp+48h+var_28], edi; unsigned int                            ; +0x5b, 0x180001a1b\nmov     r9d, esi; unsigned int                                         ; +0x5f, 0x180001a1f\nmov     r8d, ebp; unsigned int                                         ; +0x62, 0x180001a22\nmov     rdx, rax; struct cocos2d::CCTexture2D *                        ; +0x65, 0x180001a25\nmov     rcx, rbx; this                                                 ; +0x68, 0x180001a28\ncall    ?initWithTexture@CCAtlasNode@cocos2d@@QEAA_NPEAVCCTexture2D@2@III@Z; cocos2d::CCAtlasNode::initWithTexture(cocos2d::CCTexture2D *,uint,uint,uint) ; +0x6b, 0x180001a2b\ntest    al, al                                                         ; +0x70, 0x180001a30\njz      short loc_180001A41                                            ; +0x72, 0x180001a32\nmov     rcx, rbx; this                                                 ; +0x74, 0x180001a34\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x77, 0x180001a37\nmov     rax, rbx                                                       ; +0x7c, 0x180001a3c\njmp     short loc_180001A56                                            ; +0x7f, 0x180001a3f\ntest    rbx, rbx                                                       ; +0x81, 0x180001a41\njz      short loc_180001A54                                            ; +0x84, 0x180001a44\nmov     rax, [rbx]                                                     ; +0x86, 0x180001a46\nmov     edx, 1                                                         ; +0x89, 0x180001a49\nmov     rcx, rbx                                                       ; +0x8e, 0x180001a4e\ncall    qword ptr [rax+8]                                              ; +0x91, 0x180001a51\nxor     eax, eax                                                       ; +0x94, 0x180001a54\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x96, 0x180001a56\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x9b, 0x180001a5b\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xa0, 0x180001a60\nmov     rdi, [rsp+48h+arg_18]                                          ; +0xa5, 0x180001a65\nadd     rsp, 40h                                                       ; +0xaa, 0x180001a6a\npop     r14                                                            ; +0xae, 0x180001a6e\nretn                                                                   ; +0xb0, 0x180001a70", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ad0cc"], "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"}