{"type": "func", "start": 3017840, "end": 3018036, "name": "BitmapFontCache::fontWithConfigFile", "pseudocode": "// \n// BitmapFontCache::fontWithConfigFile from 0x2e0c70 to 0x2e0d34 (196 bytes)\n// \n// 1 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x2f1572\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 *BitmapFontCache::fontWithConfigFile(BitmapFontCache *a1, const char *a2, float a3)\n{\n  cocos2d::CCString *v6; // r0\n  char *CString; // r0\n  cocos2d::CCDictionary *m_cache; // r10\n  char *v9; // r8\n  int v10; // r10\n  cocos2d::CCDictionary *v11; // r5\n  FontObject *v12; // r5\n  FontObject *v13; // r0\n  cocos2d::CCDictionary *v14; // r9\n  std::string v16; // [sp+8h] [bp+4h] BYREF\n\n  v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%s%f\", a2, a3);\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  m_cache = a1->m_cache;\n  v9 = CString;\n  sub_776584((int)&v16, CString);\n  v10 = cocos2d::CCDictionary::objectForKey(m_cache, &v16);\n  sub_774008(&v16);\n  if ( v10 )\n  {\n    v11 = a1->m_cache;\n    sub_776584((int)&v16, v9);\n    v12 = (FontObject *)cocos2d::CCDictionary::objectForKey(v11, &v16);\n  }\n  else\n  {\n    v13 = FontObject::createWithConfigFile(a2, a3);\n    v14 = a1->m_cache;\n    v12 = v13;\n    sub_776584((int)&v16, v9);\n    cocos2d::CCDictionary::setObject((int)v14, v12);\n  }\n  sub_774008(&v16);\n  return v12;\n}", "assembly": "; \n; BitmapFontCache::fontWithConfigFile from 0x2e0c70 to 0x2e0d34 (196 bytes)\n; \n; 1 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x2f1572\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\nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x2e0c70\nMOV             R9, R0                                                 ; +0x4, 0x2e0c74\nVPUSH           {D8}                                                   ; +0x6, 0x2e0c76\nMOV             R5, R1                                                 ; +0xa, 0x2e0c7a\nLDR             R6, =(__stack_chk_guard_ptr - 0x2E0C88)                ; +0xc, 0x2e0c7c\nLDR             R0, =(aSF - 0x2E0C8E); \"%s%f\"                          ; +0xe, 0x2e0c7e\nVMOV            S16, R2                                                ; +0x10, 0x2e0c80\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x14, 0x2e0c84\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x16, 0x2e0c86\nSUB             SP, SP, #0x10                                          ; +0x18, 0x2e0c88\nADD             R0, PC; \"%s%f\"                                         ; +0x1a, 0x2e0c8a\nVCVT.F64.F32    D7, S16                                                ; +0x1c, 0x2e0c8c\nLDR             R3, [R6]                                               ; +0x20, 0x2e0c90\nADD             R4, SP, #0x10+var_8                                    ; +0x22, 0x2e0c92\nADD             R7, SP, #4                                             ; +0x24, 0x2e0c94\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x26, 0x2e0c96\nVMOV            R2, R3, D7                                             ; +0x28, 0x2e0c98\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x2c, 0x2e0c9c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x30, 0x2e0ca0\nLDR.W           R10, [R9,#0x34]                                        ; +0x34, 0x2e0ca4\nMOV             R2, R7                                                 ; +0x38, 0x2e0ca8\nMOV             R8, R0                                                 ; +0x3a, 0x2e0caa\nMOV             R0, R4; int                                            ; +0x3c, 0x2e0cac\nMOV             R1, R8; char *                                         ; +0x3e, 0x2e0cae\nBL              sub_776584                                             ; +0x40, 0x2e0cb0\nMOV             R0, R10                                                ; +0x44, 0x2e0cb4\nMOV             R1, R4                                                 ; +0x46, 0x2e0cb6\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x48, 0x2e0cb8\nMOV             R10, R0                                                ; +0x4c, 0x2e0cbc\nMOV             R0, R4                                                 ; +0x4e, 0x2e0cbe\nBL              sub_774008                                             ; +0x50, 0x2e0cc0\nCMP.W           R10, #0                                                ; +0x54, 0x2e0cc4\nBEQ             loc_2E0CE4                                             ; +0x58, 0x2e0cc8\nLDR.W           R5, [R9,#0x34]                                         ; +0x5a, 0x2e0cca\nMOV             R1, R8; char *                                         ; +0x5e, 0x2e0cce\nMOV             R0, R4; int                                            ; +0x60, 0x2e0cd0\nMOV             R2, R7                                                 ; +0x62, 0x2e0cd2\nBL              sub_776584                                             ; +0x64, 0x2e0cd4\nMOV             R1, R4                                                 ; +0x68, 0x2e0cd8\nMOV             R0, R5                                                 ; +0x6a, 0x2e0cda\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x6c, 0x2e0cdc\nMOV             R5, R0                                                 ; +0x70, 0x2e0ce0\nB               loc_2E0D08                                             ; +0x72, 0x2e0ce2\nMOV             R0, R5; this                                           ; +0x74, 0x2e0ce4\nVMOV            R1, S16; char *                                        ; +0x76, 0x2e0ce6\nBL              _ZN10FontObject20createWithConfigFileEPKcf; FontObject::createWithConfigFile(char const*,float) ; +0x7a, 0x2e0cea\nLDR.W           R9, [R9,#0x34]                                         ; +0x7e, 0x2e0cee\nMOV             R1, R8; char *                                         ; +0x82, 0x2e0cf2\nMOV             R2, R7                                                 ; +0x84, 0x2e0cf4\nMOV             R5, R0                                                 ; +0x86, 0x2e0cf6\nMOV             R0, R4; int                                            ; +0x88, 0x2e0cf8\nBL              sub_776584                                             ; +0x8a, 0x2e0cfa\nMOV             R0, R9; int                                            ; +0x8e, 0x2e0cfe\nMOV             R1, R5; this                                           ; +0x90, 0x2e0d00\nMOV             R2, R4                                                 ; +0x92, 0x2e0d02\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKSs; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x94, 0x2e0d04\nMOV             R0, R4                                                 ; +0x98, 0x2e0d08\nBL              sub_774008                                             ; +0x9a, 0x2e0d0a\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x9e, 0x2e0d0e\nLDR             R3, [R6]                                               ; +0xa0, 0x2e0d10\nMOV             R0, R5                                                 ; +0xa2, 0x2e0d12\nCMP             R2, R3                                                 ; +0xa4, 0x2e0d14\nBEQ             loc_2E0D2A                                             ; +0xa6, 0x2e0d16\nBLX             __stack_chk_fail                                       ; +0xa8, 0x2e0d18\nB               loc_2E0D1E                                             ; +0xac, 0x2e0d1c\nMOV             R0, R4                                                 ; +0xae, 0x2e0d1e\nBL              sub_774008                                             ; +0xb0, 0x2e0d20\nBL              __cxa_end_cleanup                                      ; +0xb4, 0x2e0d24\nB               loc_2E0D1E                                             ; +0xb8, 0x2e0d28\nADD             SP, SP, #0x10                                          ; +0xba, 0x2e0d2a\nVPOP            {D8}                                                   ; +0xbc, 0x2e0d2c\nPOP.W           {R4-R10,PC}                                            ; +0xc0, 0x2e0d30", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x2f1572"], "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"}