{"type": "func", "start": 4298062392, "end": 4298062644, "name": "BitmapFontCache::fontWithConfigFile", "pseudocode": "// \n// BitmapFontCache::fontWithConfigFile from 0x1002f3a38 to 0x1002f3b34 (252 bytes)\n// \n// 1 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x100234514\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\nFontObject *__fastcall BitmapFontCache::fontWithConfigFile(BitmapFontCache *a1, const char *a2, float a3)\n{\n  cocos2d::CCString *v6; // x0\n  char *CString; // x21\n  cocos2d::CCDictionary *m_cache; // x22\n  __int64 v9; // x0\n  __int64 v10; // x22\n  cocos2d::CCDictionary *v11; // x19\n  FontObject *v12; // x20\n  cocos2d::CCDictionary *v13; // x19\n  void *__p[2]; // [xsp+18h] [xbp-48h] BYREF\n  char v16; // [xsp+2Fh] [xbp-31h]\n\n  v6 = (cocos2d::CCString *)sub_100268F4C(\"%s%f\", a2, a3);\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  m_cache = a1->m_cache;\n  sub_100009900(__p, CString);\n  v9 = cocos2d::CCDictionary::objectForKey_1(m_cache, __p);\n  v10 = v9;\n  if ( v16 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( v10 )\n      goto LABEL_3;\n  }\n  else if ( v9 )\n  {\nLABEL_3:\n    v11 = a1->m_cache;\n    sub_100009900(__p, CString);\n    v12 = (FontObject *)cocos2d::CCDictionary::objectForKey_1(v11, __p);\n    goto LABEL_6;\n  }\n  v12 = FontObject::createWithConfigFile(a2, a3);\n  v13 = a1->m_cache;\n  sub_100009900(__p, CString);\n  cocos2d::CCDictionary::setObject_1(v13, v12, __p);\nLABEL_6:\n  if ( v16 < 0 )\n    operator delete(__p[0]);\n  return v12;\n}", "assembly": "; \n; BitmapFontCache::fontWithConfigFile from 0x1002f3a38 to 0x1002f3b34 (252 bytes)\n; \n; 1 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x100234514\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\nSUB             SP, SP, #0x70                                          ; +0x0, 0x1002f3a38\nSTP             D9, D8, [SP,#0x60+var_30]                              ; +0x4, 0x1002f3a3c\nSTP             X22, X21, [SP,#0x60+var_20]                            ; +0x8, 0x1002f3a40\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0xc, 0x1002f3a44\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x10, 0x1002f3a48\nADD             X29, SP, #0x60                                         ; +0x14, 0x1002f3a4c\nFMOV            S8, S0                                                 ; +0x18, 0x1002f3a50\nMOV             X20, X1                                                ; +0x1c, 0x1002f3a54\nMOV             X19, X0                                                ; +0x20, 0x1002f3a58\nFCVT            D0, S0                                                 ; +0x24, 0x1002f3a5c\nSTR             D0, [SP,#0x60+var_58]                                  ; +0x28, 0x1002f3a60\nSTR             X1, [SP,#0x60+var_60]                                  ; +0x2c, 0x1002f3a64\nADRL            X0, aSF; \"%s%f\"                                        ; +0x30, 0x1002f3a68\nBL              sub_100268F4C                                          ; +0x38, 0x1002f3a70\nBL              cocos2d__CCString__getCString                          ; +0x3c, 0x1002f3a74\nMOV             X21, X0                                                ; +0x40, 0x1002f3a78\nLDR             X22, [X19,#0x38]                                       ; +0x44, 0x1002f3a7c\nADD             X0, SP, #0x60+__p; int                                 ; +0x48, 0x1002f3a80\nMOV             X1, X21; __s                                           ; +0x4c, 0x1002f3a84\nBL              sub_100009900                                          ; +0x50, 0x1002f3a88\nADD             X1, SP, #0x60+__p                                      ; +0x54, 0x1002f3a8c\nMOV             X0, X22                                                ; +0x58, 0x1002f3a90\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x5c, 0x1002f3a94\nMOV             X22, X0                                                ; +0x60, 0x1002f3a98\nLDRSB           W8, [SP,#0x60+var_31]                                  ; +0x64, 0x1002f3a9c\nTBNZ            W8, #0x1F, loc_1002F3ACC                               ; +0x68, 0x1002f3aa0\nCBZ             X22, loc_1002F3AD8                                     ; +0x6c, 0x1002f3aa4\nLDR             X19, [X19,#0x38]                                       ; +0x70, 0x1002f3aa8\nADD             X0, SP, #0x60+__p; int                                 ; +0x74, 0x1002f3aac\nMOV             X1, X21; __s                                           ; +0x78, 0x1002f3ab0\nBL              sub_100009900                                          ; +0x7c, 0x1002f3ab4\nADD             X1, SP, #0x60+__p                                      ; +0x80, 0x1002f3ab8\nMOV             X0, X19                                                ; +0x84, 0x1002f3abc\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x88, 0x1002f3ac0\nMOV             X20, X0                                                ; +0x8c, 0x1002f3ac4\nB               loc_1002F3B08                                          ; +0x90, 0x1002f3ac8\nLDR             X0, [SP,#0x60+__p]; __p                                ; +0x94, 0x1002f3acc\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x1002f3ad0\nCBNZ            X22, loc_1002F3AA8                                     ; +0x9c, 0x1002f3ad4\nMOV             X0, X20                                                ; +0xa0, 0x1002f3ad8\nFMOV            S0, S8                                                 ; +0xa4, 0x1002f3adc\nBL              FontObject__createWithConfigFile                       ; +0xa8, 0x1002f3ae0\nMOV             X20, X0                                                ; +0xac, 0x1002f3ae4\nLDR             X19, [X19,#0x38]                                       ; +0xb0, 0x1002f3ae8\nADD             X0, SP, #0x60+__p; int                                 ; +0xb4, 0x1002f3aec\nMOV             X1, X21; __s                                           ; +0xb8, 0x1002f3af0\nBL              sub_100009900                                          ; +0xbc, 0x1002f3af4\nADD             X2, SP, #0x60+__p                                      ; +0xc0, 0x1002f3af8\nMOV             X0, X19                                                ; +0xc4, 0x1002f3afc\nMOV             X1, X20                                                ; +0xc8, 0x1002f3b00\nBL              cocos2d__CCDictionary__setObject_1                     ; +0xcc, 0x1002f3b04\nLDRSB           W8, [SP,#0x60+var_31]                                  ; +0xd0, 0x1002f3b08\nTBZ             W8, #0x1F, loc_1002F3B18                               ; +0xd4, 0x1002f3b0c\nLDR             X0, [SP,#0x60+__p]; __p                                ; +0xd8, 0x1002f3b10\nBL              __ZdlPv; operator delete(void *)                       ; +0xdc, 0x1002f3b14\nMOV             X0, X20                                                ; +0xe0, 0x1002f3b18\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0xe4, 0x1002f3b1c\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0xe8, 0x1002f3b20\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0xec, 0x1002f3b24\nLDP             D9, D8, [SP,#0x60+var_30]                              ; +0xf0, 0x1002f3b28\nADD             SP, SP, #0x70 ; 'p'                                    ; +0xf4, 0x1002f3b2c\nRET                                                                    ; +0xf8, 0x1002f3b30", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x100234514"], "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"}