{"type": "func", "start": 6442745280, "end": 6442745421, "name": "cocos2d::CCLabelAtlas::initWithString", "pseudocode": "// \n// cocos2d::CCLabelAtlas::initWithString from 0x180047dc0 to 0x180047e4d (141 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCLabelAtlas::create @ 0x180047446\n// > cocos2d::CCLabelAtlas::initWithString @ 0x180047c59\n// > cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005d126\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bb9c8\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:41 +0000\n// \n\nchar __fastcall cocos2d::CCLabelAtlas::initWithString(\n        cocos2d::CCLabelAtlas *this,\n        const char *Str,\n        const char *a3,\n        int a4,\n        unsigned int a5,\n        unsigned int a6)\n{\n  cocos2d::CCTextureCache *v10; // rax\n  struct cocos2d::CCTexture2D *v11; // rbx\n  unsigned int v12; // eax\n\n  v10 = cocos2d::CCTextureCache::sharedTextureCache();\n  v11 = cocos2d::CCTextureCache::addImage(v10, a3, 0);\n  v12 = strlen(Str);\n  if ( !cocos2d::CCAtlasNode::initWithTexture(this, v11, a4, a5, v12) )\n    return 0;\n  *((_DWORD *)this + 112) = a6;\n  (**((void (__fastcall ***)(char *, const char *))this + 51))((char *)this + 408, Str);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCLabelAtlas::initWithString from 0x180047dc0 to 0x180047e4d (141 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCLabelAtlas::create @ 0x180047446\n; > cocos2d::CCLabelAtlas::initWithString @ 0x180047c59\n; > cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005d126\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bb9c8\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:41 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180047dc0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180047dc5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180047dca\npush    rdi                                                            ; +0xf, 0x180047dcf\nsub     rsp, 30h                                                       ; +0x10, 0x180047dd0\nmov     edi, r9d                                                       ; +0x14, 0x180047dd4\nmov     rbx, r8                                                        ; +0x17, 0x180047dd7\nmov     rbp, rdx                                                       ; +0x1a, 0x180047dda\nmov     rsi, rcx                                                       ; +0x1d, 0x180047ddd\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x20, 0x180047de0\nmov     rcx, rax; this                                                 ; +0x25, 0x180047de5\nxor     r8d, r8d; bool                                                 ; +0x28, 0x180047de8\nmov     rdx, rbx; char *                                               ; +0x2b, 0x180047deb\ncall    ?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x2e, 0x180047dee\nmov     rcx, rbp; Str                                                  ; +0x33, 0x180047df3\nmov     rbx, rax                                                       ; +0x36, 0x180047df6\ncall    strlen                                                         ; +0x39, 0x180047df9\nmov     r9d, [rsp+38h+arg_20]; unsigned int                            ; +0x3e, 0x180047dfe\nmov     r8d, edi; unsigned int                                         ; +0x43, 0x180047e03\nmov     rdx, rbx; struct cocos2d::CCTexture2D *                        ; +0x46, 0x180047e06\nmov     [rsp+38h+var_18], eax; unsigned int                            ; +0x49, 0x180047e09\nmov     rcx, rsi; this                                                 ; +0x4d, 0x180047e0d\ncall    ?initWithTexture@CCAtlasNode@cocos2d@@QEAA_NPEAVCCTexture2D@2@III@Z; cocos2d::CCAtlasNode::initWithTexture(cocos2d::CCTexture2D *,uint,uint,uint) ; +0x50, 0x180047e10\ntest    al, al                                                         ; +0x55, 0x180047e15\njz      short loc_180047E36                                            ; +0x57, 0x180047e17\nmov     eax, [rsp+38h+arg_28]                                          ; +0x59, 0x180047e19\nlea     rcx, [rsi+198h]                                                ; +0x5d, 0x180047e1d\nmov     [rsi+1C0h], eax                                                ; +0x64, 0x180047e24\nmov     rdx, rbp                                                       ; +0x6a, 0x180047e2a\nmov     rax, [rcx]                                                     ; +0x6d, 0x180047e2d\ncall    qword ptr [rax]                                                ; +0x70, 0x180047e30\nmov     al, 1                                                          ; +0x72, 0x180047e32\njmp     short loc_180047E38                                            ; +0x74, 0x180047e34\nxor     al, al                                                         ; +0x76, 0x180047e36\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x78, 0x180047e38\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x7d, 0x180047e3d\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x82, 0x180047e42\nadd     rsp, 30h                                                       ; +0x87, 0x180047e47\npop     rdi                                                            ; +0x8b, 0x180047e4b\nretn                                                                   ; +0x8c, 0x180047e4c", "xrefs": ["cocos2d::CCLabelAtlas::create @ 0x180047446", "cocos2d::CCLabelAtlas::initWithString @ 0x180047c59", "cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005d126", "<???> @ 0x18014cf68", "<???> @ 0x1801bb9c8"], "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"}