{"type": "func", "start": 4297195104, "end": 4297195203, "name": "BitmapFontCache::sharedFontCache", "pseudocode": "// \n// BitmapFontCache::sharedFontCache from 0x10021fe60 to 0x10021fec3 (99 bytes)\n// \n// 1 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x10048725f\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\nBitmapFontCache *__fastcall BitmapFontCache::sharedFontCache()\n{\n  BitmapFontCache *result; // rax\n  _QWORD *v1; // rbx\n  cocos2d::CCDictionary *v2; // rax\n\n  result = (BitmapFontCache *)qword_10099F450;\n  if ( !qword_10099F450 )\n  {\n    v1 = operator new(0x40u);\n    cocos2d::CCObject::CCObject(v1);\n    *v1 = off_1008E0C40;\n    v1[7] = 0;\n    qword_10099F450 = (__int64)v1;\n    v2 = cocos2d::CCDictionary::create();\n    v1[7] = v2;\n    cocos2d::CCObject::retain(v2);\n    return (BitmapFontCache *)qword_10099F450;\n  }\n  return result;\n}", "assembly": "; \n; BitmapFontCache::sharedFontCache from 0x10021fe60 to 0x10021fec3 (99 bytes)\n; \n; 1 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x10048725f\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\npush    rbp                                                            ; +0x0, 0x10021fe60\nmov     rbp, rsp                                                       ; +0x1, 0x10021fe61\npush    r14                                                            ; +0x4, 0x10021fe64\npush    rbx                                                            ; +0x6, 0x10021fe66\nmov     rax, cs:qword_10099F450                                        ; +0x7, 0x10021fe67\ntest    rax, rax                                                       ; +0xe, 0x10021fe6e\njz      short loc_10021FE78                                            ; +0x11, 0x10021fe71\npop     rbx                                                            ; +0x13, 0x10021fe73\npop     r14                                                            ; +0x14, 0x10021fe74\npop     rbp                                                            ; +0x16, 0x10021fe76\nretn                                                                   ; +0x17, 0x10021fe77\nmov     edi, 40h ; '@'; __sz                                           ; +0x18, 0x10021fe78\ncall    __Znwm; operator new(ulong)                                    ; +0x1d, 0x10021fe7d\nmov     rbx, rax                                                       ; +0x22, 0x10021fe82\nmov     rdi, rax                                                       ; +0x25, 0x10021fe85\ncall    cocos2d__CCObject__CCObject                                    ; +0x28, 0x10021fe88\nlea     rax, off_1008E0C40                                             ; +0x2d, 0x10021fe8d\nmov     [rbx], rax                                                     ; +0x34, 0x10021fe94\nmov     qword ptr [rbx+38h], 0                                         ; +0x37, 0x10021fe97\nmov     cs:qword_10099F450, rbx                                        ; +0x3f, 0x10021fe9f\ncall    cocos2d__CCDictionary__create                                  ; +0x46, 0x10021fea6\nmov     [rbx+38h], rax                                                 ; +0x4b, 0x10021feab\nmov     rdi, rax                                                       ; +0x4f, 0x10021feaf\ncall    cocos2d__CCObject__retain                                      ; +0x52, 0x10021feb2\nmov     rax, cs:qword_10099F450                                        ; +0x57, 0x10021feb7\npop     rbx                                                            ; +0x5e, 0x10021febe\npop     r14                                                            ; +0x5f, 0x10021febf\npop     rbp                                                            ; +0x61, 0x10021fec1\nretn                                                                   ; +0x62, 0x10021fec2", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x10048725f"], "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"}