{"type": "func", "start": 6845540, "end": 6845940, "name": "BitmapFontCache::fontWithConfigFile", "pseudocode": "// \n// BitmapFontCache::fontWithConfigFile from 0x687464 to 0x6875f4 (400 bytes)\n// \n// 3 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x6ac054\n// > sub_6C2C04 @ 0x6c2fdc\n// > <???> @ 0x67ee8\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:31 +0000\n// \n\ncocos2d::CCObject *__fastcall BitmapFontCache::fontWithConfigFile(BitmapFontCache *this, char *a2, float a3)\n{\n  cocos2d::CCString *v6; // x0\n  char *CString; // x21\n  size_t v8; // x0\n  __int64 v9; // x23\n  const char *v10; // x1\n  __int64 v11; // x23\n  size_t v12; // x0\n  __int64 v13; // x22\n  cocos2d::CCObject *v14; // x23\n  size_t v16; // x0\n  __int64 v17; // x22\n  __int64 v18; // [xsp+50h] [xbp+50h] BYREF\n  __int64 v19; // [xsp+58h] [xbp+58h]\n  void *v20; // [xsp+60h] [xbp+60h]\n\n  v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%s%f\", a2, a3);\n  v18 = 0;\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  v19 = 0;\n  v20 = nullptr;\n  v8 = strlen(CString);\n  v9 = *((_QWORD *)this + 7);\n  std::string::__init(&v18, CString, v8);\n  v11 = cocos2d::CCDictionary::objectForKey(v9, &v18);\n  if ( (v18 & 1) == 0 )\n  {\n    if ( v11 )\n      goto LABEL_3;\nLABEL_6:\n    v14 = FontObject::createWithConfigFile((FontObject *)a2, v10, a3);\n    v18 = 0;\n    v19 = 0;\n    v20 = nullptr;\n    v16 = strlen(CString);\n    v17 = *((_QWORD *)this + 7);\n    std::string::__init(&v18, CString, v16);\n    cocos2d::CCDictionary::setObject(v17, v14);\n    if ( (v18 & 1) == 0 )\n      return v14;\nLABEL_7:\n    operator delete(v20);\n    return v14;\n  }\n  operator delete(v20);\n  if ( !v11 )\n    goto LABEL_6;\nLABEL_3:\n  v18 = 0;\n  v19 = 0;\n  v20 = nullptr;\n  v12 = strlen(CString);\n  v13 = *((_QWORD *)this + 7);\n  std::string::__init(&v18, CString, v12);\n  v14 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v13, &v18);\n  if ( (v18 & 1) != 0 )\n    goto LABEL_7;\n  return v14;\n}", "assembly": "; \n; BitmapFontCache::fontWithConfigFile from 0x687464 to 0x6875f4 (400 bytes)\n; \n; 3 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x6ac054\n; > sub_6C2C04 @ 0x6c2fdc\n; > <???> @ 0x67ee8\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:31 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x687464\nMOV             X29, SP                                                ; +0x4, 0x687468\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x68746c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x687470\nADD             X20, X29, #0x70+var_20                                 ; +0x10, 0x687474\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0x687478\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x18, 0x68747c\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x687480\nMOV             X22, X0                                                ; +0x20, 0x687484\nSTR             D8, [SP,#0x70+var_30]                                  ; +0x24, 0x687488\nADRP            X0, #aSF@PAGE; \"%s%f\"                                  ; +0x28, 0x68748c\nFMOV            S8, S0                                                 ; +0x2c, 0x687490\nADD             X0, X0, #aSF@PAGEOFF; \"%s%f\"                           ; +0x30, 0x687494\nFCVT            D0, S0                                                 ; +0x34, 0x687498\nLDR             X2, [X2]                                               ; +0x38, 0x68749c\nMOV             X24, X1                                                ; +0x3c, 0x6874a0\nSTR             X2, [X29,#0x70+var_8]                                  ; +0x40, 0x6874a4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x44, 0x6874a8\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x48, 0x6874ac\nSTR             XZR, [X29,#0x70+var_20]                                ; +0x4c, 0x6874b0\nMOV             X21, X0                                                ; +0x50, 0x6874b4\nSTR             XZR, [X29,#0x70+var_18]                                ; +0x54, 0x6874b8\nSTR             XZR, [X29,#0x70+var_10]                                ; +0x58, 0x6874bc\nBL              .strlen                                                ; +0x5c, 0x6874c0\nMOV             X1, X21                                                ; +0x60, 0x6874c4\nMOV             X2, X0                                                 ; +0x64, 0x6874c8\nMOV             X0, X20                                                ; +0x68, 0x6874cc\nLDR             X23, [X22,#0x38]                                       ; +0x6c, 0x6874d0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x70, 0x6874d4\nMOV             X0, X23                                                ; +0x74, 0x6874d8\nMOV             X1, X20                                                ; +0x78, 0x6874dc\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x7c, 0x6874e0\nMOV             X23, X0                                                ; +0x80, 0x6874e4\nLDRB            W0, [X29,#0x70+var_20]                                 ; +0x84, 0x6874e8\nTBNZ            W0, #0, loc_687564                                     ; +0x88, 0x6874ec\nCBZ             X23, loc_687570                                        ; +0x8c, 0x6874f0\nMOV             X0, X21; char *                                        ; +0x90, 0x6874f4\nSTR             XZR, [X29,#0x70+var_20]                                ; +0x94, 0x6874f8\nSTR             XZR, [X29,#0x70+var_18]                                ; +0x98, 0x6874fc\nSTR             XZR, [X29,#0x70+var_10]                                ; +0x9c, 0x687500\nBL              .strlen                                                ; +0xa0, 0x687504\nMOV             X1, X21                                                ; +0xa4, 0x687508\nMOV             X2, X0                                                 ; +0xa8, 0x68750c\nMOV             X0, X20                                                ; +0xac, 0x687510\nLDR             X22, [X22,#0x38]                                       ; +0xb0, 0x687514\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xb4, 0x687518\nMOV             X0, X22                                                ; +0xb8, 0x68751c\nMOV             X1, X20                                                ; +0xbc, 0x687520\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0xc0, 0x687524\nMOV             X23, X0                                                ; +0xc4, 0x687528\nLDRB            W0, [X29,#0x70+var_20]                                 ; +0xc8, 0x68752c\nTBNZ            W0, #0, loc_6875C0                                     ; +0xcc, 0x687530\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xd0, 0x687534\nMOV             X0, X23                                                ; +0xd4, 0x687538\nLDR             X2, [X29,#0x70+var_8]                                  ; +0xd8, 0x68753c\nLDR             X1, [X19]                                              ; +0xdc, 0x687540\nCMP             X2, X1                                                 ; +0xe0, 0x687544\nB.NE            loc_6875CC                                             ; +0xe4, 0x687548\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xe8, 0x68754c\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xec, 0x687550\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0xf0, 0x687554\nLDR             D8, [SP,#0x70+var_30]                                  ; +0xf4, 0x687558\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xf8, 0x68755c\nRET                                                                    ; +0xfc, 0x687560\nLDR             X0, [X29,#0x70+var_10]; void *                         ; +0x100, 0x687564\nBL              _ZdlPv; operator delete(void *)                        ; +0x104, 0x687568\nCBNZ            X23, loc_6874F4                                        ; +0x108, 0x68756c\nFMOV            S0, S8; float                                          ; +0x10c, 0x687570\nMOV             X0, X24; this                                          ; +0x110, 0x687574\nBL              _ZN10FontObject20createWithConfigFileEPKcf; FontObject::createWithConfigFile(char const*,float) ; +0x114, 0x687578\nMOV             X23, X0                                                ; +0x118, 0x68757c\nMOV             X0, X21; char *                                        ; +0x11c, 0x687580\nSTR             XZR, [X29,#0x70+var_20]                                ; +0x120, 0x687584\nSTR             XZR, [X29,#0x70+var_18]                                ; +0x124, 0x687588\nSTR             XZR, [X29,#0x70+var_10]                                ; +0x128, 0x68758c\nBL              .strlen                                                ; +0x12c, 0x687590\nMOV             X1, X21                                                ; +0x130, 0x687594\nMOV             X2, X0                                                 ; +0x134, 0x687598\nMOV             X0, X20                                                ; +0x138, 0x68759c\nLDR             X22, [X22,#0x38]                                       ; +0x13c, 0x6875a0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x140, 0x6875a4\nMOV             X0, X22; int                                           ; +0x144, 0x6875a8\nMOV             X1, X23; this                                          ; +0x148, 0x6875ac\nMOV             X2, X20                                                ; +0x14c, 0x6875b0\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x150, 0x6875b4\nLDRB            W0, [X29,#0x70+var_20]                                 ; +0x154, 0x6875b8\nTBZ             W0, #0, loc_687534                                     ; +0x158, 0x6875bc\nLDR             X0, [X29,#0x70+var_10]; void *                         ; +0x15c, 0x6875c0\nBL              _ZdlPv; operator delete(void *)                        ; +0x160, 0x6875c4\nB               loc_687534                                             ; +0x164, 0x6875c8\nBL              .__stack_chk_fail                                      ; +0x168, 0x6875cc\nLDRB            W1, [X29,#0x70+var_20]                                 ; +0x16c, 0x6875d0\nMOV             X19, X0                                                ; +0x170, 0x6875d4\nTBZ             W1, #0, loc_6875E4                                     ; +0x174, 0x6875d8\nLDR             X0, [X29,#0x70+var_10]; void *                         ; +0x178, 0x6875dc\nBL              _ZdlPv; operator delete(void *)                        ; +0x17c, 0x6875e0\nMOV             X0, X19                                                ; +0x180, 0x6875e4\nBL              _Unwind_Resume                                         ; +0x184, 0x6875e8\nB               loc_6875D0                                             ; +0x188, 0x6875ec\nB               loc_6875D0                                             ; +0x18c, 0x6875f0", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x6ac054", "sub_6C2C04 @ 0x6c2fdc", "<???> @ 0x67ee8"], "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"}