{"type": "func", "start": 3929656, "end": 3929724, "name": "BitmapFontCache::sharedFontCache", "pseudocode": "// \n// BitmapFontCache::sharedFontCache from 0x3bf638 to 0x3bf67c (68 bytes)\n// \n// 2 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x3d5e80\n// > sub_3E3C78 @ 0x3e3dfa\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:29 +0000\n// \n\nint __fastcall BitmapFontCache::sharedFontCache(BitmapFontCache *this)\n{\n  cocos2d::CCObject *v1; // r4\n\n  if ( !dword_D2A23C )\n  {\n    v1 = (cocos2d::CCObject *)operator new(0x38u);\n    cocos2d::CCObject::CCObject(v1);\n    *(_DWORD *)v1 = &off_C823D0;\n    *((_DWORD *)v1 + 13) = 0;\n    dword_D2A23C = (int)v1;\n    BitmapFontCache::init(v1);\n  }\n  return dword_D2A23C;\n}", "assembly": "; \n; BitmapFontCache::sharedFontCache from 0x3bf638 to 0x3bf67c (68 bytes)\n; \n; 2 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x3d5e80\n; > sub_3E3C78 @ 0x3e3dfa\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:29 +0000\n; \nLDR             R3, =(dword_D2A23C - 0x3BF640)                         ; +0x0, 0x3bf638\nPUSH            {R4,LR}                                                ; +0x2, 0x3bf63a\nADD             R3, PC; dword_D2A23C                                   ; +0x4, 0x3bf63c\nLDR             R3, [R3]                                               ; +0x6, 0x3bf63e\nCBNZ            R3, loc_3BF674                                         ; +0x8, 0x3bf640\nMOVS            R0, #0x38 ; '8'; unsigned int                          ; +0xa, 0x3bf642\nBL              _Znwj; operator new(uint)                              ; +0xc, 0x3bf644\nMOV             R4, R0                                                 ; +0x10, 0x3bf648\nBL              _ZN7cocos2d8CCObjectC2Ev; cocos2d::CCObject::CCObject(void) ; +0x12, 0x3bf64a\nLDR             R3, =(_ZTV15BitmapFontCache_ptr - 0x3BF656)            ; +0x16, 0x3bf64e\nMOV             R0, R4; this                                           ; +0x18, 0x3bf650\nADD             R3, PC; _ZTV15BitmapFontCache_ptr                      ; +0x1a, 0x3bf652\nLDR             R3, [R3]; `vtable for'BitmapFontCache ...              ; +0x1c, 0x3bf654\nADDS            R3, #8                                                 ; +0x1e, 0x3bf656\nSTR             R3, [R4]                                               ; +0x20, 0x3bf658\nMOVS            R3, #0                                                 ; +0x22, 0x3bf65a\nSTR             R3, [R4,#0x34]                                         ; +0x24, 0x3bf65c\nLDR             R3, =(dword_D2A23C - 0x3BF664)                         ; +0x26, 0x3bf65e\nADD             R3, PC; dword_D2A23C                                   ; +0x28, 0x3bf660\nSTR             R4, [R3]                                               ; +0x2a, 0x3bf662\nBL              _ZN15BitmapFontCache4initEv; BitmapFontCache::init(void) ; +0x2c, 0x3bf664\nB               loc_3BF674                                             ; +0x30, 0x3bf668\nMOV             R0, R4; void *                                         ; +0x32, 0x3bf66a\nBL              _ZdlPv; operator delete(void *)                        ; +0x34, 0x3bf66c\nBL              __cxa_end_cleanup                                      ; +0x38, 0x3bf670\nLDR             R3, =(dword_D2A23C - 0x3BF67A)                         ; +0x3c, 0x3bf674\nADD             R3, PC; dword_D2A23C                                   ; +0x3e, 0x3bf676\nLDR             R0, [R3]                                               ; +0x40, 0x3bf678\nPOP             {R4,PC}                                                ; +0x42, 0x3bf67a", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x3d5e80", "sub_3E3C78 @ 0x3e3dfa"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}