{"type": "func", "start": 6442478304, "end": 6442478412, "name": "cocos2d::extension::CCControlButton::getTitleBMFontForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::getTitleBMFontForState from 0x180006ae0 to 0x180006b4c (108 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800241f0\n// > <???> @ 0x180028038\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x1800496b4\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::extension::CCControlButton::getTitleBMFontForState(cocos2d::extension::CCControlButton *this)\n{\n  __int64 v1; // rax\n  __int64 v2; // rax\n  cocos2d::CCLabelBMFont *v3; // rax\n\n  v1 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1224LL))(this);\n  v2 = _RTDynamicCast(\n         v1,\n         0,\n         &cocos2d::CCNode `RTTI Type Descriptor',\n         &cocos2d::CCLabelProtocol `RTTI Type Descriptor',\n         0);\n  v3 = (cocos2d::CCLabelBMFont *)_RTDynamicCast(\n                                   v2,\n                                   0,\n                                   &cocos2d::CCLabelProtocol `RTTI Type Descriptor',\n                                   &cocos2d::CCLabelBMFont `RTTI Type Descriptor',\n                                   0);\n  if ( v3 )\n    return (char *)cocos2d::CCLabelBMFont::getFntFile(v3);\n  else\n    return byte_180023460;\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::getTitleBMFontForState from 0x180006ae0 to 0x180006b4c (108 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800241f0\n; > <???> @ 0x180028038\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x1800496b4\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\nsub     rsp, 38h                                                       ; +0x0, 0x180006ae0\nmov     rax, [rcx]                                                     ; +0x4, 0x180006ae4\ncall    qword ptr [rax+4C8h]                                           ; +0x7, 0x180006ae7\nlea     r9, ??_R0?AVCCLabelProtocol@cocos2d@@@8; cocos2d::CCLabelProtocol `RTTI Type Descriptor' ; +0xd, 0x180006aed\nmov     [rsp+38h+var_18], 0                                            ; +0x14, 0x180006af4\nmov     rcx, rax                                                       ; +0x1c, 0x180006afc\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x1f, 0x180006aff\nxor     edx, edx                                                       ; +0x26, 0x180006b06\ncall    __RTDynamicCast                                                ; +0x28, 0x180006b08\nlea     r9, ??_R0?AVCCLabelBMFont@cocos2d@@@8; cocos2d::CCLabelBMFont `RTTI Type Descriptor' ; +0x2d, 0x180006b0d\nmov     [rsp+38h+var_18], 0                                            ; +0x34, 0x180006b14\nlea     r8, ??_R0?AVCCLabelProtocol@cocos2d@@@8; cocos2d::CCLabelProtocol `RTTI Type Descriptor' ; +0x3c, 0x180006b1c\nxor     edx, edx                                                       ; +0x43, 0x180006b23\nmov     rcx, rax                                                       ; +0x45, 0x180006b25\ncall    __RTDynamicCast                                                ; +0x48, 0x180006b28\ntest    rax, rax                                                       ; +0x4d, 0x180006b2d\njz      short loc_180006B40                                            ; +0x50, 0x180006b30\nmov     rcx, rax                                                       ; +0x52, 0x180006b32\nadd     rsp, 38h                                                       ; +0x55, 0x180006b35\njmp     cs:?getFntFile@CCLabelBMFont@cocos2d@@QEAAPEBDXZ; cocos2d::CCLabelBMFont::getFntFile(void) ; +0x59, 0x180006b39\nlea     rax, byte_180023460                                            ; +0x60, 0x180006b40\nadd     rsp, 38h                                                       ; +0x67, 0x180006b47\nretn                                                                   ; +0x6b, 0x180006b4b", "xrefs": ["<???> @ 0x1800241f0", "<???> @ 0x180028038", "<???> @ 0x18002fdf8", "<???> @ 0x1800496b4"], "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"}