{"type": "func", "start": 4298062156, "end": 4298062244, "name": "BitmapFontCache::sharedFontCache", "pseudocode": "// \n// BitmapFontCache::sharedFontCache from 0x1002f394c to 0x1002f39a4 (88 bytes)\n// \n// 1 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x100234508\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; // x0\n  _QWORD *v1; // x19\n  cocos2d::CCDictionary *v2; // x0\n\n  result = (BitmapFontCache *)qword_10086DCE0;\n  if ( !qword_10086DCE0 )\n  {\n    v1 = operator new(0x40u);\n    cocos2d::CCObject::CCObject((__int64)v1);\n    *v1 = off_1007E8AD8;\n    v1[7] = 0;\n    qword_10086DCE0 = (__int64)v1;\n    v2 = cocos2d::CCDictionary::create();\n    v1[7] = v2;\n    cocos2d::CCObject::retain(v2);\n    return (BitmapFontCache *)qword_10086DCE0;\n  }\n  return result;\n}", "assembly": "; \n; BitmapFontCache::sharedFontCache from 0x1002f394c to 0x1002f39a4 (88 bytes)\n; \n; 1 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x100234508\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002f394c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002f3950\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002f3954\nADRP            X20, #qword_10086DCE0@PAGE                             ; +0xc, 0x1002f3958\nLDR             X0, [X20,#qword_10086DCE0@PAGEOFF]                     ; +0x10, 0x1002f395c\nCBNZ            X0, loc_1002F3998                                      ; +0x14, 0x1002f3960\nMOV             W0, #0x40 ; '@'; __sz                                  ; +0x18, 0x1002f3964\nBL              __Znwm; operator new(ulong)                            ; +0x1c, 0x1002f3968\nMOV             X19, X0                                                ; +0x20, 0x1002f396c\nBL              cocos2d__CCObject__CCObject                            ; +0x24, 0x1002f3970\nADRL            X8, off_1007E8AD8                                      ; +0x28, 0x1002f3974\nSTR             X8, [X19]                                              ; +0x30, 0x1002f397c\nSTR             XZR, [X19,#0x38]                                       ; +0x34, 0x1002f3980\nSTR             X19, [X20,#qword_10086DCE0@PAGEOFF]                    ; +0x38, 0x1002f3984\nBL              cocos2d__CCDictionary__create                          ; +0x3c, 0x1002f3988\nSTR             X0, [X19,#0x38]                                        ; +0x40, 0x1002f398c\nBL              cocos2d__CCObject__retain                              ; +0x44, 0x1002f3990\nLDR             X0, [X20,#qword_10086DCE0@PAGEOFF]                     ; +0x48, 0x1002f3994\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x1002f3998\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x1002f399c\nRET                                                                    ; +0x54, 0x1002f39a0", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x100234508"], "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"}