{"type": "func", "start": 6442779664, "end": 6442779807, "name": "cocos2d::CCLabelTTF::initWithStringAndTextDefinition", "pseudocode": "// \n// cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0x180050410 to 0x18005049f (143 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCLabelTTF::createWithFontDefinition @ 0x18004fdb6\n// > <???> @ 0x180140fd8\n// > <???> @ 0x180140fe8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbf38\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:45 +0000\n// \n\nchar __fastcall cocos2d::CCLabelTTF::initWithStringAndTextDefinition(\n        cocos2d::CCLabelTTF *this,\n        const char *a2,\n        struct cocos2d::_ccFontDefinition *a3)\n{\n  __int64 v6; // rbx\n  cocos2d::CCShaderCache *v7; // rax\n  struct cocos2d::CCGLProgram *v8; // rax\n\n  if ( !cocos2d::CCSprite::init(this) )\n    return 0;\n  v6 = *(_QWORD *)this;\n  v7 = cocos2d::CCShaderCache::sharedShaderCache();\n  v8 = cocos2d::CCShaderCache::programForKey(v7, \"ShaderPositionTextureColor\");\n  (*(void (__fastcall **)(cocos2d::CCLabelTTF *, struct cocos2d::CCGLProgram *))(v6 + 656))(this, v8);\n  cocos2d::CCLabelTTF::_updateWithTextDefinition(this, a3, 0);\n  (**((void (__fastcall ***)(char *, const char *))this + 75))((char *)this + 600, a2);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0x180050410 to 0x18005049f (143 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCLabelTTF::createWithFontDefinition @ 0x18004fdb6\n; > <???> @ 0x180140fd8\n; > <???> @ 0x180140fe8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbf38\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:45 +0000\n; \nmov     [rsp+arg_8], rbp                                               ; +0x0, 0x180050410\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180050415\npush    rdi                                                            ; +0xa, 0x18005041a\nsub     rsp, 20h                                                       ; +0xb, 0x18005041b\nmov     rsi, r8                                                        ; +0xf, 0x18005041f\nmov     rbp, rdx                                                       ; +0x12, 0x180050422\nmov     rdi, rcx                                                       ; +0x15, 0x180050425\ncall    ?init@CCSprite@cocos2d@@UEAA_NXZ; cocos2d::CCSprite::init(void) ; +0x18, 0x180050428\ntest    al, al                                                         ; +0x1d, 0x18005042d\njz      short loc_18005048D                                            ; +0x1f, 0x18005042f\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x180050431\nmov     rbx, [rdi]                                                     ; +0x26, 0x180050436\ncall    ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x29, 0x180050439\nmov     rcx, rax; this                                                 ; +0x2e, 0x18005043e\nlea     rdx, aShaderposition_3; \"ShaderPositionTextureColor\"           ; +0x31, 0x180050441\ncall    ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x38, 0x180050448\nmov     rdx, rax                                                       ; +0x3d, 0x18005044d\nmov     rcx, rdi                                                       ; +0x40, 0x180050450\ncall    qword ptr [rbx+290h]                                           ; +0x43, 0x180050453\nxor     r8d, r8d; bool                                                 ; +0x49, 0x180050459\nmov     rdx, rsi; Src                                                  ; +0x4c, 0x18005045c\nmov     rcx, rdi; this                                                 ; +0x4f, 0x18005045f\ncall    ?_updateWithTextDefinition@CCLabelTTF@cocos2d@@IEAAXAEAU_ccFontDefinition@2@_N@Z; cocos2d::CCLabelTTF::_updateWithTextDefinition(cocos2d::_ccFontDefinition &,bool) ; +0x52, 0x180050462\nlea     rcx, [rdi+258h]                                                ; +0x57, 0x180050467\nmov     rdx, rbp                                                       ; +0x5e, 0x18005046e\nmov     rax, [rcx]                                                     ; +0x61, 0x180050471\ncall    qword ptr [rax]                                                ; +0x64, 0x180050474\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x180050476\nmov     al, 1                                                          ; +0x6b, 0x18005047b\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x6d, 0x18005047d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x72, 0x180050482\nadd     rsp, 20h                                                       ; +0x77, 0x180050487\npop     rdi                                                            ; +0x7b, 0x18005048b\nretn                                                                   ; +0x7c, 0x18005048c\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x7d, 0x18005048d\nxor     al, al                                                         ; +0x82, 0x180050492\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x84, 0x180050494\nadd     rsp, 20h                                                       ; +0x89, 0x180050499\npop     rdi                                                            ; +0x8d, 0x18005049d\nretn                                                                   ; +0x8e, 0x18005049e", "xrefs": ["cocos2d::CCLabelTTF::createWithFontDefinition @ 0x18004fdb6", "<???> @ 0x180140fd8", "<???> @ 0x180140fe8", "<???> @ 0x18014cf68", "<???> @ 0x1801bbf38"], "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"}