{"type": "func", "start": 6442771920, "end": 6442772063, "name": "cocos2d::CCLabelTTF::initWithStringAndTextDefinition", "pseudocode": "// \n// cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0x18004e5d0 to 0x18004e65f (143 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCLabelTTF::createWithFontDefinition @ 0x18004dfa6\n// > <???> @ 0x180137dcc\n// > <???> @ 0x180137ddc\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1ca4\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\nchar __fastcall cocos2d::CCLabelTTF::initWithStringAndTextDefinition(\n        cocos2d::CCLabelTTF *this,\n        const char *a2,\n        struct cocos2d::_ccFontDefinition *a3)\n{\n  cocos2d::CCLabelTTF_vtbl *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 = this->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v7 = cocos2d::CCShaderCache::sharedShaderCache();\n  v8 = cocos2d::CCShaderCache::programForKey(v7, \"ShaderPositionTextureColor\");\n  ((void (__fastcall *)(cocos2d::CCLabelTTF *, struct cocos2d::CCGLProgram *))v6->setShaderProgram)(this, v8);\n  cocos2d::CCLabelTTF::_updateWithTextDefinition(this, a3, 0);\n  ((void (__fastcall *)(cocos2d::CCLabelProtocol *, const char *))this->setString)(&this->cocos2d::CCLabelProtocol, a2);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0x18004e5d0 to 0x18004e65f (143 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCLabelTTF::createWithFontDefinition @ 0x18004dfa6\n; > <???> @ 0x180137dcc\n; > <???> @ 0x180137ddc\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1ca4\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_8], rbp                                               ; +0x0, 0x18004e5d0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18004e5d5\npush    rdi                                                            ; +0xa, 0x18004e5da\nsub     rsp, 20h                                                       ; +0xb, 0x18004e5db\nmov     rsi, r8                                                        ; +0xf, 0x18004e5df\nmov     rbp, rdx                                                       ; +0x12, 0x18004e5e2\nmov     rdi, rcx                                                       ; +0x15, 0x18004e5e5\ncall    ?init@CCSprite@cocos2d@@UEAA_NXZ; cocos2d::CCSprite::init(void) ; +0x18, 0x18004e5e8\ntest    al, al                                                         ; +0x1d, 0x18004e5ed\njz      short loc_18004E64D                                            ; +0x1f, 0x18004e5ef\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x18004e5f1\nmov     rbx, [rdi]                                                     ; +0x26, 0x18004e5f6\ncall    ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x29, 0x18004e5f9\nmov     rcx, rax; this                                                 ; +0x2e, 0x18004e5fe\nlea     rdx, aShaderposition_3; \"ShaderPositionTextureColor\"           ; +0x31, 0x18004e601\ncall    ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x38, 0x18004e608\nmov     rdx, rax                                                       ; +0x3d, 0x18004e60d\nmov     rcx, rdi                                                       ; +0x40, 0x18004e610\ncall    qword ptr [rbx+280h]                                           ; +0x43, 0x18004e613\nxor     r8d, r8d; bool                                                 ; +0x49, 0x18004e619\nmov     rdx, rsi; Src                                                  ; +0x4c, 0x18004e61c\nmov     rcx, rdi; this                                                 ; +0x4f, 0x18004e61f\ncall    ?_updateWithTextDefinition@CCLabelTTF@cocos2d@@IEAAXAEAU_ccFontDefinition@2@_N@Z; cocos2d::CCLabelTTF::_updateWithTextDefinition(cocos2d::_ccFontDefinition &,bool) ; +0x52, 0x18004e622\nlea     rcx, [rdi+258h]                                                ; +0x57, 0x18004e627\nmov     rdx, rbp                                                       ; +0x5e, 0x18004e62e\nmov     rax, [rcx]                                                     ; +0x61, 0x18004e631\ncall    qword ptr [rax]                                                ; +0x64, 0x18004e634\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x18004e636\nmov     al, 1                                                          ; +0x6b, 0x18004e63b\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x6d, 0x18004e63d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x72, 0x18004e642\nadd     rsp, 20h                                                       ; +0x77, 0x18004e647\npop     rdi                                                            ; +0x7b, 0x18004e64b\nretn                                                                   ; +0x7c, 0x18004e64c\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x7d, 0x18004e64d\nxor     al, al                                                         ; +0x82, 0x18004e652\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x84, 0x18004e654\nadd     rsp, 20h                                                       ; +0x89, 0x18004e659\npop     rdi                                                            ; +0x8d, 0x18004e65d\nretn                                                                   ; +0x8e, 0x18004e65e", "xrefs": ["cocos2d::CCLabelTTF::createWithFontDefinition @ 0x18004dfa6", "<???> @ 0x180137dcc", "<???> @ 0x180137ddc", "<???> @ 0x1801438a8", "<???> @ 0x1801b1ca4"], "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"}