{"type": "func", "start": 5368962592, "end": 5368962694, "name": "BitmapFontCache::sharedFontCache", "pseudocode": "// \n// BitmapFontCache::sharedFontCache from 0x14003de20 to 0x14003de86 (102 bytes)\n// \n// 3 xrefs:\n// > sub_140053E20 @ 0x140053fa8\n// > MultilineBitmapFont::initWithFont @ 0x140078f6b\n// > <???> @ 0x14090f170\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:25:28 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 BitmapFontCache::sharedFontCache()\n{\n  __int64 result; // rax\n  cocos2d::CCObject *v1; // rax\n  cocos2d::CCObject *v2; // [rsp+30h] [rbp+8h]\n\n  result = qword_14090BF50;\n  if ( !qword_14090BF50 )\n  {\n    v2 = (cocos2d::CCObject *)operator new(0x40u);\n    cocos2d::CCObject::CCObject(v2);\n    *(_QWORD *)v2 = &BitmapFontCache::`vftable';\n    *((_QWORD *)v2 + 7) = 0;\n    qword_14090BF50 = (__int64)v2;\n    v1 = (cocos2d::CCObject *)cocos2d::CCDictionary::create();\n    *((_QWORD *)v2 + 7) = v1;\n    cocos2d::CCObject::retain(v1);\n    return qword_14090BF50;\n  }\n  return result;\n}", "assembly": "; \n; BitmapFontCache::sharedFontCache from 0x14003de20 to 0x14003de86 (102 bytes)\n; \n; 3 xrefs:\n; > sub_140053E20 @ 0x140053fa8\n; > MultilineBitmapFont::initWithFont @ 0x140078f6b\n; > <???> @ 0x14090f170\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:25:28 +0000\n; \npush    rbx                                                            ; +0x0, 0x14003de20\nsub     rsp, 20h                                                       ; +0x2, 0x14003de22\nmov     rax, cs:qword_14090BF50                                        ; +0x6, 0x14003de26\ntest    rax, rax                                                       ; +0xd, 0x14003de2d\njnz     short loc_14003DE80                                            ; +0x10, 0x14003de30\nmov     ecx, 40h ; '@'; Size                                           ; +0x12, 0x14003de32\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x14003de37\nmov     rbx, rax                                                       ; +0x1c, 0x14003de3c\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x14003de3f\nmov     rcx, rax                                                       ; +0x24, 0x14003de44\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x27, 0x14003de47\nlea     rax, ??_7BitmapFontCache@@6B@; const BitmapFontCache::`vftable' ; +0x2d, 0x14003de4d\nmov     [rbx], rax                                                     ; +0x34, 0x14003de54\nmov     qword ptr [rbx+38h], 0                                         ; +0x37, 0x14003de57\nmov     cs:qword_14090BF50, rbx                                        ; +0x3f, 0x14003de5f\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x46, 0x14003de66\nmov     [rbx+38h], rax                                                 ; +0x4c, 0x14003de6c\nmov     rcx, rax                                                       ; +0x50, 0x14003de70\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x53, 0x14003de73\nmov     rax, cs:qword_14090BF50                                        ; +0x59, 0x14003de79\nadd     rsp, 20h                                                       ; +0x60, 0x14003de80\npop     rbx                                                            ; +0x64, 0x14003de84\nretn                                                                   ; +0x65, 0x14003de85", "xrefs": ["sub_140053E20 @ 0x140053fa8", "MultilineBitmapFont::initWithFont @ 0x140078f6b", "<???> @ 0x14090f170"], "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"}