{"type": "func", "start": 6442780256, "end": 6442780690, "name": "cocos2d::CCLabelTTF::updateTexture", "pseudocode": "// \n// cocos2d::CCLabelTTF::updateTexture from 0x180050660 to 0x180050812 (434 bytes)\n// \n// 9 xrefs:\n// > cocos2d::CCLabelTTF::_updateWithTextDefinition @ 0x18004fac0\n// > cocos2d::CCLabelTTF::setDimensions @ 0x1800504e2\n// > cocos2d::CCLabelTTF::setFontName @ 0x180050566\n// > cocos2d::CCLabelTTF::setFontSize @ 0x18005059f\n// > cocos2d::CCLabelTTF::setHorizontalAlignment @ 0x1800505c6\n// > cocos2d::CCLabelTTF::setString @ 0x180050610\n// > cocos2d::CCLabelTTF::setVerticalAlignment @ 0x180050656\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbf80\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\n// Hidden C++ exception states: #wind=1\nchar __fastcall cocos2d::CCLabelTTF::updateTexture(cocos2d::CCLabelTTF *this)\n{\n  cocos2d::CCTexture2D *v2; // rax\n  cocos2d::CCObject *v3; // rbp\n  _QWORD *v5; // rsi\n  _QWORD *v6; // r14\n  float v7; // xmm6_4\n  cocos2d::CCDirector *v8; // rax\n  float v9; // xmm9_4\n  float v10; // xmm6_4\n  cocos2d::CCDirector *v11; // rax\n  float v12; // xmm7_4\n  cocos2d::CCDirector *v13; // rax\n  _DWORD *v14; // rax\n  _BYTE v15[8]; // [rsp+40h] [rbp-68h] BYREF\n  _DWORD v16[10]; // [rsp+48h] [rbp-60h] BYREF\n  cocos2d::CCTexture2D *v17; // [rsp+B8h] [rbp+10h] BYREF\n\n  v2 = (cocos2d::CCTexture2D *)sub_1800E4AC0(0x68u);\n  v17 = v2;\n  if ( v2 )\n    v3 = (cocos2d::CCObject *)cocos2d::CCTexture2D::CCTexture2D(v2);\n  else\n    v3 = nullptr;\n  if ( !v3 )\n    return 0;\n  v5 = *((_QWORD **)this + 78);\n  if ( v5[3] > 0xFu )\n    v5 = (_QWORD *)*v5;\n  v6 = (_QWORD *)((char *)this + 640);\n  if ( *((_QWORD *)this + 83) > 0xFu )\n    v6 = (_QWORD *)*v6;\n  v7 = *((float *)this + 153);\n  v8 = cocos2d::CCDirector::sharedDirector();\n  v9 = cocos2d::CCDirector::getContentScaleFactor(v8) * v7;\n  v10 = *((float *)this + 152);\n  v11 = cocos2d::CCDirector::sharedDirector();\n  v12 = cocos2d::CCDirector::getContentScaleFactor(v11) * v10;\n  v13 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getContentScaleFactor(v13);\n  kmVec2Fill((float *)&v17, v12, v9);\n  cocos2d::CCTexture2D::initWithString(v3, v6, v5);\n  (*(void (__fastcall **)(char *, cocos2d::CCObject *))(*((_QWORD *)this + 43) + 24LL))((char *)this + 344, v3);\n  cocos2d::CCObject::release(v3);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v15, (const struct cocos2d::CCRect *)&unk_1801B23E8);\n  v14 = (_DWORD *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCTexture2D **))(**((_QWORD **)this + 52) + 136LL))(\n                    *((_QWORD *)this + 52),\n                    &v17);\n  cocos2d::CCSize::operator=(v16, v14);\n  (*(void (__fastcall **)(cocos2d::CCLabelTTF *, _BYTE *))(*(_QWORD *)this + 992LL))(this, v15);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCLabelTTF::updateTexture from 0x180050660 to 0x180050812 (434 bytes)\n; \n; 9 xrefs:\n; > cocos2d::CCLabelTTF::_updateWithTextDefinition @ 0x18004fac0\n; > cocos2d::CCLabelTTF::setDimensions @ 0x1800504e2\n; > cocos2d::CCLabelTTF::setFontName @ 0x180050566\n; > cocos2d::CCLabelTTF::setFontSize @ 0x18005059f\n; > cocos2d::CCLabelTTF::setHorizontalAlignment @ 0x1800505c6\n; > cocos2d::CCLabelTTF::setString @ 0x180050610\n; > cocos2d::CCLabelTTF::setVerticalAlignment @ 0x180050656\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbf80\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     rax, rsp                                                       ; +0x0, 0x180050660\nmov     [rax+8], rbx                                                   ; +0x3, 0x180050663\nmov     [rax+18h], rbp                                                 ; +0x7, 0x180050667\nmov     [rax+20h], rsi                                                 ; +0xb, 0x18005066b\npush    rdi                                                            ; +0xf, 0x18005066f\npush    r14                                                            ; +0x10, 0x180050670\npush    r15                                                            ; +0x12, 0x180050672\nsub     rsp, 90h                                                       ; +0x14, 0x180050674\nmovaps  xmmword ptr [rax-28h], xmm6                                    ; +0x1b, 0x18005067b\nmovaps  xmmword ptr [rax-38h], xmm7                                    ; +0x1f, 0x18005067f\nmovaps  xmmword ptr [rax-48h], xmm8                                    ; +0x23, 0x180050683\nmovaps  xmmword ptr [rax-58h], xmm9                                    ; +0x28, 0x180050688\nmov     r15, rcx                                                       ; +0x2d, 0x18005068d\nmov     ecx, 68h ; 'h'; Size                                           ; +0x30, 0x180050690\ncall    sub_1800E4AC0                                                  ; +0x35, 0x180050695\nmov     [rsp+0A8h+arg_8], rax                                          ; +0x3a, 0x18005069a\ntest    rax, rax                                                       ; +0x42, 0x1800506a2\njz      short loc_1800506B4                                            ; +0x45, 0x1800506a5\nmov     rcx, rax; this                                                 ; +0x47, 0x1800506a7\ncall    ??0CCTexture2D@cocos2d@@QEAA@XZ; cocos2d::CCTexture2D::CCTexture2D(void) ; +0x4a, 0x1800506aa\nmov     rbp, rax                                                       ; +0x4f, 0x1800506af\njmp     short loc_1800506B6                                            ; +0x52, 0x1800506b2\nxor     ebp, ebp                                                       ; +0x54, 0x1800506b4\ntest    rbp, rbp                                                       ; +0x56, 0x1800506b6\njnz     short loc_1800506C2                                            ; +0x59, 0x1800506b9\nxor     al, al                                                         ; +0x5b, 0x1800506bb\njmp     loc_1800507E1                                                  ; +0x5d, 0x1800506bd\nmov     rsi, [r15+270h]                                                ; +0x62, 0x1800506c2\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0x69, 0x1800506c9\njbe     short loc_1800506D3                                            ; +0x6e, 0x1800506ce\nmov     rsi, [rsi]                                                     ; +0x70, 0x1800506d0\nlea     r14, [r15+280h]                                                ; +0x73, 0x1800506d3\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x7a, 0x1800506da\njbe     short loc_1800506E4                                            ; +0x7f, 0x1800506df\nmov     r14, [r14]                                                     ; +0x81, 0x1800506e1\nmov     ebx, [r15+26Ch]                                                ; +0x84, 0x1800506e4\nmov     edi, [r15+268h]                                                ; +0x8b, 0x1800506eb\nmovss   xmm6, dword ptr [r15+264h]                                     ; +0x92, 0x1800506f2\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9b, 0x1800506fb\nmov     rcx, rax; this                                                 ; +0xa0, 0x180050700\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xa3, 0x180050703\nmovaps  xmm9, xmm0                                                     ; +0xa8, 0x180050708\nmulss   xmm9, xmm6                                                     ; +0xac, 0x18005070c\nmovss   xmm6, dword ptr [r15+260h]                                     ; +0xb1, 0x180050711\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xba, 0x18005071a\nmov     rcx, rax; this                                                 ; +0xbf, 0x18005071f\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xc2, 0x180050722\nmovaps  xmm7, xmm0                                                     ; +0xc7, 0x180050727\nmulss   xmm7, xmm6                                                     ; +0xca, 0x18005072a\nmovss   xmm6, dword ptr [r15+278h]                                     ; +0xce, 0x18005072e\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd7, 0x180050737\nmov     rcx, rax; this                                                 ; +0xdc, 0x18005073c\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xdf, 0x18005073f\nmovaps  xmm8, xmm0                                                     ; +0xe4, 0x180050744\nmulss   xmm8, xmm6                                                     ; +0xe8, 0x180050748\nmovaps  xmm2, xmm9                                                     ; +0xed, 0x18005074d\nmovaps  xmm1, xmm7                                                     ; +0xf1, 0x180050751\nlea     rcx, [rsp+0A8h+arg_8]                                          ; +0xf4, 0x180050754\ncall    kmVec2Fill                                                     ; +0xfc, 0x18005075c\nmov     [rsp+0A8h+var_78], ebx                                         ; +0x101, 0x180050761\nmov     [rsp+0A8h+var_80], edi                                         ; +0x105, 0x180050765\nmov     [rsp+0A8h+var_88], rax                                         ; +0x109, 0x180050769\nmovaps  xmm3, xmm8                                                     ; +0x10e, 0x18005076e\nmov     r8, rsi                                                        ; +0x112, 0x180050772\nmov     rdx, r14                                                       ; +0x115, 0x180050775\nmov     rcx, rbp                                                       ; +0x118, 0x180050778\ncall    ?initWithString@CCTexture2D@cocos2d@@QEAA_NPEBD0MAEBVCCSize@2@W4CCTextAlignment@2@W4CCVerticalTextAlignment@2@@Z; cocos2d::CCTexture2D::initWithString(char const *,char const *,float,cocos2d::CCSize const &,cocos2d::CCTextAlignment,cocos2d::CCVerticalTextAlignment) ; +0x11b, 0x18005077b\nlea     rcx, [r15+158h]                                                ; +0x120, 0x180050780\nmov     rax, [rcx]                                                     ; +0x127, 0x180050787\nmov     rdx, rbp                                                       ; +0x12a, 0x18005078a\ncall    qword ptr [rax+18h]                                            ; +0x12d, 0x18005078d\nmov     rcx, rbp; this                                                 ; +0x130, 0x180050790\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x133, 0x180050793\nlea     rdx, unk_1801B23E8; struct cocos2d::CCRect *                   ; +0x138, 0x180050798\nlea     rcx, [rsp+0A8h+var_68]; this                                   ; +0x13f, 0x18005079f\ncall    ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x144, 0x1800507a4\nmov     rcx, [r15+1A0h]                                                ; +0x149, 0x1800507a9\nmov     rax, [rcx]                                                     ; +0x150, 0x1800507b0\nlea     rdx, [rsp+0A8h+arg_8]                                          ; +0x153, 0x1800507b3\ncall    qword ptr [rax+88h]                                            ; +0x15b, 0x1800507bb\nmov     rdx, rax                                                       ; +0x161, 0x1800507c1\nlea     rcx, [rsp+0A8h+var_60]                                         ; +0x164, 0x1800507c4\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x169, 0x1800507c9\nmov     rax, [r15]                                                     ; +0x16e, 0x1800507ce\nlea     rdx, [rsp+0A8h+var_68]                                         ; +0x171, 0x1800507d1\nmov     rcx, r15                                                       ; +0x176, 0x1800507d6\ncall    qword ptr [rax+3E0h]                                           ; +0x179, 0x1800507d9\nmov     al, 1                                                          ; +0x17f, 0x1800507df\nlea     r11, [rsp+0A8h+var_18]                                         ; +0x181, 0x1800507e1\nmov     rbx, [r11+20h]                                                 ; +0x189, 0x1800507e9\nmov     rbp, [r11+30h]                                                 ; +0x18d, 0x1800507ed\nmov     rsi, [r11+38h]                                                 ; +0x191, 0x1800507f1\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x195, 0x1800507f5\nmovaps  xmm7, [rsp+0A8h+var_38]                                        ; +0x19a, 0x1800507fa\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x19f, 0x1800507ff\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x1a4, 0x180050804\nmov     rsp, r11                                                       ; +0x1a9, 0x180050809\npop     r15                                                            ; +0x1ac, 0x18005080c\npop     r14                                                            ; +0x1ae, 0x18005080e\npop     rdi                                                            ; +0x1b0, 0x180050810\nretn                                                                   ; +0x1b1, 0x180050811", "xrefs": ["cocos2d::CCLabelTTF::_updateWithTextDefinition @ 0x18004fac0", "cocos2d::CCLabelTTF::setDimensions @ 0x1800504e2", "cocos2d::CCLabelTTF::setFontName @ 0x180050566", "cocos2d::CCLabelTTF::setFontSize @ 0x18005059f", "cocos2d::CCLabelTTF::setHorizontalAlignment @ 0x1800505c6", "cocos2d::CCLabelTTF::setString @ 0x180050610", "cocos2d::CCLabelTTF::setVerticalAlignment @ 0x180050656", "<???> @ 0x18014cf68", "<???> @ 0x1801bbf80"], "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"}