{"type": "func", "start": 6442824528, "end": 6442824668, "name": "cocos2d::CCMenuItemFont::recreateLabel", "pseudocode": "// \n// cocos2d::CCMenuItemFont::recreateLabel from 0x18005b350 to 0x18005b3dc (140 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCMenuItemFont::setFontNameObj @ 0x18005b92e\n// > cocos2d::CCMenuItemFont::setFontSizeObj @ 0x18005b956\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2dd8\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\nvoid __fastcall cocos2d::CCMenuItemFont::recreateLabel(cocos2d::CCMenuItemFont *this)\n{\n  __int64 v2; // rax\n  const char *v3; // rbx\n  float v4; // xmm6_4\n  const char *v5; // rax\n  struct cocos2d::CCLabelTTF *v6; // rax\n\n  v2 = _RTDynamicCast(\n         *((_QWORD *)this + 48),\n         0,\n         &cocos2d::CCNode `RTTI Type Descriptor',\n         &cocos2d::CCLabelProtocol `RTTI Type Descriptor',\n         0);\n  v3 = (char *)this + 408;\n  if ( *((_QWORD *)this + 54) > 0xFu )\n    v3 = *(const char **)v3;\n  v4 = (float)*((int *)this + 100);\n  v5 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 8LL))(v2);\n  v6 = cocos2d::CCLabelTTF::create(v5, v3, v4);\n  ((void (__fastcall *)(cocos2d::CCMenuItemFont *, struct cocos2d::CCLabelTTF *))this->setLabel)(this, v6);\n}", "assembly": "; \n; cocos2d::CCMenuItemFont::recreateLabel from 0x18005b350 to 0x18005b3dc (140 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCMenuItemFont::setFontNameObj @ 0x18005b92e\n; > cocos2d::CCMenuItemFont::setFontSizeObj @ 0x18005b956\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2dd8\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, 0x18005b350\npush    rdi                                                            ; +0x5, 0x18005b355\nsub     rsp, 40h                                                       ; +0x6, 0x18005b356\nmov     rdi, rcx                                                       ; +0xa, 0x18005b35a\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xd, 0x18005b35d\nmov     rcx, [rcx+180h]                                                ; +0x12, 0x18005b362\nlea     r9, ??_R0?AVCCLabelProtocol@cocos2d@@@8; cocos2d::CCLabelProtocol `RTTI Type Descriptor' ; +0x19, 0x18005b369\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x20, 0x18005b370\nmov     [rsp+48h+var_28], 0                                            ; +0x27, 0x18005b377\nxor     edx, edx                                                       ; +0x2f, 0x18005b37f\ncall    __RTDynamicCast                                                ; +0x31, 0x18005b381\nlea     rbx, [rdi+198h]                                                ; +0x36, 0x18005b386\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x3d, 0x18005b38d\njbe     short loc_18005B397                                            ; +0x42, 0x18005b392\nmov     rbx, [rbx]                                                     ; +0x44, 0x18005b394\nmov     ecx, [rdi+190h]                                                ; +0x47, 0x18005b397\nxorps   xmm6, xmm6                                                     ; +0x4d, 0x18005b39d\nmov     r8, [rax]                                                      ; +0x50, 0x18005b3a0\ncvtsi2ss xmm6, rcx                                                     ; +0x53, 0x18005b3a3\nmov     rcx, rax                                                       ; +0x58, 0x18005b3a8\ncall    qword ptr [r8+8]                                               ; +0x5b, 0x18005b3ab\nmovaps  xmm2, xmm6; float                                              ; +0x5f, 0x18005b3af\nmov     rdx, rbx; char *                                               ; +0x62, 0x18005b3b2\nmov     rcx, rax; char *                                               ; +0x65, 0x18005b3b5\ncall    ?create@CCLabelTTF@cocos2d@@SAPEAV12@PEBD0M@Z; cocos2d::CCLabelTTF::create(char const *,char const *,float) ; +0x68, 0x18005b3b8\nmov     r8, [rdi]                                                      ; +0x6d, 0x18005b3bd\nmov     rdx, rax                                                       ; +0x70, 0x18005b3c0\nmov     rcx, rdi                                                       ; +0x73, 0x18005b3c3\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x76, 0x18005b3c6\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x7b, 0x18005b3cb\nadd     rsp, 40h                                                       ; +0x80, 0x18005b3d0\npop     rdi                                                            ; +0x84, 0x18005b3d4\njmp     qword ptr [r8+3C0h]                                            ; +0x85, 0x18005b3d5", "xrefs": ["cocos2d::CCMenuItemFont::setFontNameObj @ 0x18005b92e", "cocos2d::CCMenuItemFont::setFontSizeObj @ 0x18005b956", "<???> @ 0x1801438a8", "<???> @ 0x1801b2dd8"], "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"}