{"type": "func", "start": 6841420, "end": 6841540, "name": "BitmapFontCache::sharedFontCache", "pseudocode": "// \n// BitmapFontCache::sharedFontCache from 0x68644c to 0x6864c4 (120 bytes)\n// \n// 3 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x6ac048\n// > sub_6C2C04 @ 0x6c2fd0\n// > <???> @ 0xae490\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:50:30 +0000\n// \n\n__int64 __fastcall BitmapFontCache::sharedFontCache(BitmapFontCache *this)\n{\n  __int64 result; // x0\n  cocos2d::CCObject *v2; // x20\n\n  result = qword_155A5D8;\n  if ( !qword_155A5D8 )\n  {\n    v2 = (cocos2d::CCObject *)operator new(0x40u);\n    cocos2d::CCObject::CCObject(v2);\n    qword_155A5D8 = (__int64)v2;\n    *((_QWORD *)v2 + 7) = 0;\n    *(_QWORD *)v2 = &off_1411330;\n    BitmapFontCache::init(v2);\n    return qword_155A5D8;\n  }\n  return result;\n}", "assembly": "; \n; BitmapFontCache::sharedFontCache from 0x68644c to 0x6864c4 (120 bytes)\n; \n; 3 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x6ac048\n; > sub_6C2C04 @ 0x6c2fd0\n; > <???> @ 0xae490\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:50:30 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x68644c\nMOV             X29, SP                                                ; +0x4, 0x686450\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x686454\nADRP            X19, #qword_155A5D8@PAGE                               ; +0xc, 0x686458\nLDR             X0, [X19,#qword_155A5D8@PAGEOFF]                       ; +0x10, 0x68645c\nCBZ             X0, loc_686470                                         ; +0x14, 0x686460\nLDP             X19, X20, [SP,#var_s10]                                ; +0x18, 0x686464\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x1c, 0x686468\nRET                                                                    ; +0x20, 0x68646c\nMOV             X0, #0x40 ; '@'; unsigned __int64                      ; +0x24, 0x686470\nBL              _Znwm; operator new(ulong)                             ; +0x28, 0x686474\nMOV             X20, X0                                                ; +0x2c, 0x686478\nBL              _ZN7cocos2d8CCObjectC1Ev; cocos2d::CCObject::CCObject(void) ; +0x30, 0x68647c\nADRP            X1, #_ZTV15BitmapFontCache_ptr@PAGE                    ; +0x34, 0x686480\nMOV             X0, X20; this                                          ; +0x38, 0x686484\nSTR             X20, [X19,#qword_155A5D8@PAGEOFF]                      ; +0x3c, 0x686488\nLDR             X1, [X1,#_ZTV15BitmapFontCache_ptr@PAGEOFF]; `vtable for'BitmapFontCache ... ; +0x40, 0x68648c\nSTR             XZR, [X20,#0x38]                                       ; +0x44, 0x686490\nADD             X1, X1, #0x10                                          ; +0x48, 0x686494\nSTR             X1, [X20]                                              ; +0x4c, 0x686498\nBL              _ZN15BitmapFontCache4initEv; BitmapFontCache::init(void) ; +0x50, 0x68649c\nLDR             X0, [X19,#qword_155A5D8@PAGEOFF]                       ; +0x54, 0x6864a0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x58, 0x6864a4\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x5c, 0x6864a8\nRET                                                                    ; +0x60, 0x6864ac\nMOV             X19, X0                                                ; +0x64, 0x6864b0\nMOV             X0, X20; void *                                        ; +0x68, 0x6864b4\nBL              _ZdlPv; operator delete(void *)                        ; +0x6c, 0x6864b8\nMOV             X0, X19                                                ; +0x70, 0x6864bc\nBL              _Unwind_Resume                                         ; +0x74, 0x6864c0", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x6ac048", "sub_6C2C04 @ 0x6c2fd0", "<???> @ 0xae490"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}