{"type": "func", "start": 3017012, "end": 3017080, "name": "BitmapFontCache::sharedFontCache", "pseudocode": "// \n// BitmapFontCache::sharedFontCache from 0x2e0934 to 0x2e0978 (68 bytes)\n// \n// 1 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x2f156a\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 *v0; // r4\n\n  if ( !dword_AC5074 )\n  {\n    v0 = (BitmapFontCache *)operator new(0x38u);\n    cocos2d::CCObject::CCObject(v0);\n    v0->__vftable = (BitmapFontCache_vtbl *)&off_A3B020;\n    v0->m_cache = nullptr;\n    dword_AC5074 = (int)v0;\n    BitmapFontCache::init(v0);\n  }\n  return (BitmapFontCache *)dword_AC5074;\n}", "assembly": "; \n; BitmapFontCache::sharedFontCache from 0x2e0934 to 0x2e0978 (68 bytes)\n; \n; 1 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x2f156a\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\nLDR             R3, =(dword_AC5074 - 0x2E093C)                         ; +0x0, 0x2e0934\nPUSH            {R4,LR}                                                ; +0x2, 0x2e0936\nADD             R3, PC; dword_AC5074                                   ; +0x4, 0x2e0938\nLDR             R3, [R3]                                               ; +0x6, 0x2e093a\nCBNZ            R3, loc_2E0970                                         ; +0x8, 0x2e093c\nMOVS            R0, #0x38 ; '8'; unsigned int                          ; +0xa, 0x2e093e\nBL              _Znwj; operator new(uint)                              ; +0xc, 0x2e0940\nMOV             R4, R0                                                 ; +0x10, 0x2e0944\nBL              _ZN7cocos2d8CCObjectC2Ev; cocos2d::CCObject::CCObject(void) ; +0x12, 0x2e0946\nLDR             R3, =(_ZTV15BitmapFontCache_ptr - 0x2E0952)            ; +0x16, 0x2e094a\nMOV             R0, R4; this                                           ; +0x18, 0x2e094c\nADD             R3, PC; _ZTV15BitmapFontCache_ptr                      ; +0x1a, 0x2e094e\nLDR             R3, [R3]; `vtable for'BitmapFontCache ...              ; +0x1c, 0x2e0950\nADDS            R3, #8                                                 ; +0x1e, 0x2e0952\nSTR             R3, [R4]                                               ; +0x20, 0x2e0954\nMOVS            R3, #0                                                 ; +0x22, 0x2e0956\nSTR             R3, [R4,#0x34]                                         ; +0x24, 0x2e0958\nLDR             R3, =(dword_AC5074 - 0x2E0960)                         ; +0x26, 0x2e095a\nADD             R3, PC; dword_AC5074                                   ; +0x28, 0x2e095c\nSTR             R4, [R3]                                               ; +0x2a, 0x2e095e\nBL              _ZN15BitmapFontCache4initEv; BitmapFontCache::init(void) ; +0x2c, 0x2e0960\nB               loc_2E0970                                             ; +0x30, 0x2e0964\nMOV             R0, R4; p                                              ; +0x32, 0x2e0966\nBL              _ZdlPv; operator delete(void *)                        ; +0x34, 0x2e0968\nBL              __cxa_end_cleanup                                      ; +0x38, 0x2e096c\nLDR             R3, =(dword_AC5074 - 0x2E0976)                         ; +0x3c, 0x2e0970\nADD             R3, PC; dword_AC5074                                   ; +0x3e, 0x2e0972\nLDR             R0, [R3]                                               ; +0x40, 0x2e0974\nPOP             {R4,PC}                                                ; +0x42, 0x2e0976", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x2f156a"], "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"}