{"type": "func", "start": 5679388, "end": 5679508, "name": "BitmapFontCache::sharedFontCache", "pseudocode": "// \n// BitmapFontCache::sharedFontCache from 0x56a91c to 0x56a994 (120 bytes)\n// \n// 2 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x58ab40\n// > <???> @ 0x831c0\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 *BitmapFontCache::sharedFontCache()\n{\n  BitmapFontCache *result; // x0\n  BitmapFontCache *v1; // x20\n\n  result = (BitmapFontCache *)qword_1241328;\n  if ( !qword_1241328 )\n  {\n    v1 = (BitmapFontCache *)operator new(0x40u);\n    cocos2d::CCObject::CCObject(v1);\n    qword_1241328 = (__int64)v1;\n    v1->m_cache = nullptr;\n    v1->__vftable = (BitmapFontCache_vtbl *)&off_1133D80;\n    BitmapFontCache::init(v1);\n    return (BitmapFontCache *)qword_1241328;\n  }\n  return result;\n}", "assembly": "; \n; BitmapFontCache::sharedFontCache from 0x56a91c to 0x56a994 (120 bytes)\n; \n; 2 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x58ab40\n; > <???> @ 0x831c0\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             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x56a91c\nMOV             X29, SP                                                ; +0x4, 0x56a920\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x56a924\nADRP            X19, #qword_1241328@PAGE                               ; +0xc, 0x56a928\nLDR             X0, [X19,#qword_1241328@PAGEOFF]                       ; +0x10, 0x56a92c\nCBZ             X0, loc_56A940                                         ; +0x14, 0x56a930\nLDP             X19, X20, [SP,#var_s10]                                ; +0x18, 0x56a934\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x1c, 0x56a938\nRET                                                                    ; +0x20, 0x56a93c\nMOV             X0, #0x40 ; '@'; unsigned __int64                      ; +0x24, 0x56a940\nBL              _Znwm; operator new(ulong)                             ; +0x28, 0x56a944\nMOV             X20, X0                                                ; +0x2c, 0x56a948\nBL              _ZN7cocos2d8CCObjectC1Ev; cocos2d::CCObject::CCObject(void) ; +0x30, 0x56a94c\nADRP            X1, #_ZTV15BitmapFontCache_ptr@PAGE                    ; +0x34, 0x56a950\nMOV             X0, X20; this                                          ; +0x38, 0x56a954\nSTR             X20, [X19,#qword_1241328@PAGEOFF]                      ; +0x3c, 0x56a958\nLDR             X1, [X1,#_ZTV15BitmapFontCache_ptr@PAGEOFF]; `vtable for'BitmapFontCache ... ; +0x40, 0x56a95c\nSTR             XZR, [X20,#0x38]                                       ; +0x44, 0x56a960\nADD             X1, X1, #0x10                                          ; +0x48, 0x56a964\nSTR             X1, [X20]                                              ; +0x4c, 0x56a968\nBL              _ZN15BitmapFontCache4initEv; BitmapFontCache::init(void) ; +0x50, 0x56a96c\nLDR             X0, [X19,#qword_1241328@PAGEOFF]                       ; +0x54, 0x56a970\nLDP             X19, X20, [SP,#var_s10]                                ; +0x58, 0x56a974\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x5c, 0x56a978\nRET                                                                    ; +0x60, 0x56a97c\nMOV             X19, X0                                                ; +0x64, 0x56a980\nMOV             X0, X20; p                                             ; +0x68, 0x56a984\nBL              _ZdlPv; operator delete(void *)                        ; +0x6c, 0x56a988\nMOV             X0, X19                                                ; +0x70, 0x56a98c\nBL              _Unwind_Resume                                         ; +0x74, 0x56a990", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x58ab40", "<???> @ 0x831c0"], "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"}