{"type": "func", "start": 3932072, "end": 3932300, "name": "BitmapFontCache::fontWithConfigFile", "pseudocode": "// \n// BitmapFontCache::fontWithConfigFile from 0x3bffa8 to 0x3c008c (228 bytes)\n// \n// 2 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x3d5e88\n// > sub_3E3C78 @ 0x3e3e04\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:30 +0000\n// \n\ncocos2d::CCObject *__fastcall BitmapFontCache::fontWithConfigFile(BitmapFontCache *this, char *a2, const char *a3)\n{\n  cocos2d::CCString *v6; // r0\n  const char *CString; // r0\n  int v8; // r6\n  const char *v9; // r8\n  size_t v10; // r0\n  int v11; // r6\n  float v12; // r2\n  size_t v13; // r0\n  int v14; // r5\n  cocos2d::CCObject *v15; // r5\n  cocos2d::CCObject *v16; // r0\n  int v17; // r9\n  size_t v18; // r0\n  int v20; // [sp+0h] [bp-14h] BYREF\n  int v21; // [sp+4h] [bp-10h]\n  int v22; // [sp+8h] [bp-Ch]\n\n  v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%s%f\", a2, *(float *)&a3);\n  CString = (const char *)cocos2d::CCString::getCString(v6);\n  v20 = 0;\n  v21 = 0;\n  v22 = 0;\n  v8 = *((_DWORD *)this + 13);\n  v9 = CString;\n  v10 = strlen(CString);\n  std::string::__init(&v20, v9, v10);\n  v11 = cocos2d::CCDictionary::objectForKey(v8, &v20);\n  std::string::~string((int)&v20);\n  if ( v11 )\n  {\n    v20 = 0;\n    v21 = 0;\n    v22 = 0;\n    v13 = strlen(v9);\n    v14 = *((_DWORD *)this + 13);\n    std::string::__init(&v20, v9, v13);\n    v15 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v14, &v20);\n  }\n  else\n  {\n    v16 = (cocos2d::CCObject *)FontObject::createWithConfigFile((FontObject *)a2, a3, v12);\n    v20 = 0;\n    v21 = 0;\n    v22 = 0;\n    v17 = *((_DWORD *)this + 13);\n    v15 = v16;\n    v18 = strlen(v9);\n    std::string::__init(&v20, v9, v18);\n    cocos2d::CCDictionary::setObject(v17, v15);\n  }\n  std::string::~string((int)&v20);\n  return v15;\n}", "assembly": "; \n; BitmapFontCache::fontWithConfigFile from 0x3bffa8 to 0x3c008c (228 bytes)\n; \n; 2 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x3d5e88\n; > sub_3E3C78 @ 0x3e3e04\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:30 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x3bffa8\nMOV             R9, R0                                                 ; +0x4, 0x3bffac\nVPUSH           {D8}                                                   ; +0x6, 0x3bffae\nMOV             R5, R1                                                 ; +0xa, 0x3bffb2\nLDR             R7, =(__stack_chk_guard_ptr - 0x3BFFC0)                ; +0xc, 0x3bffb4\nLDR             R0, =(aSF - 0x3BFFC6); \"%s%f\"                          ; +0xe, 0x3bffb6\nVMOV            S16, R2                                                ; +0x10, 0x3bffb8\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x14, 0x3bffbc\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x16, 0x3bffbe\nSUB             SP, SP, #0x14                                          ; +0x18, 0x3bffc0\nADD             R0, PC; \"%s%f\"                                         ; +0x1a, 0x3bffc2\nVCVT.F64.F32    D7, S16                                                ; +0x1c, 0x3bffc4\nLDR             R3, [R7]                                               ; +0x20, 0x3bffc8\nMOV             R4, SP                                                 ; +0x22, 0x3bffca\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x24, 0x3bffcc\nVMOV            R2, R3, D7                                             ; +0x26, 0x3bffce\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x2a, 0x3bffd2\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x2e, 0x3bffd6\nMOVS            R3, #0                                                 ; +0x32, 0x3bffda\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x34, 0x3bffdc\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x36, 0x3bffde\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x38, 0x3bffe0\nLDR.W           R6, [R9,#0x34]                                         ; +0x3a, 0x3bffe2\nMOV             R8, R0                                                 ; +0x3e, 0x3bffe6\nBLX             strlen                                                 ; +0x40, 0x3bffe8\nMOV             R1, R8                                                 ; +0x44, 0x3bffec\nMOV             R2, R0                                                 ; +0x46, 0x3bffee\nMOV             R0, SP                                                 ; +0x48, 0x3bfff0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x4a, 0x3bfff2\nMOV             R0, R6                                                 ; +0x4e, 0x3bfff6\nMOV             R1, SP                                                 ; +0x50, 0x3bfff8\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x52, 0x3bfffa\nMOV             R6, R0                                                 ; +0x56, 0x3bfffe\nMOV             R0, SP                                                 ; +0x58, 0x3c0000\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x5a, 0x3c0002\nCBZ             R6, loc_3C0030                                         ; +0x5e, 0x3c0006\nMOV             R0, R8; char *                                         ; +0x60, 0x3c0008\nMOVS            R3, #0                                                 ; +0x62, 0x3c000a\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x64, 0x3c000c\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x66, 0x3c000e\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x68, 0x3c0010\nBLX             strlen                                                 ; +0x6a, 0x3c0012\nLDR.W           R5, [R9,#0x34]                                         ; +0x6e, 0x3c0016\nMOV             R1, R8                                                 ; +0x72, 0x3c001a\nMOV             R2, R0                                                 ; +0x74, 0x3c001c\nMOV             R0, SP                                                 ; +0x76, 0x3c001e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x78, 0x3c0020\nMOV             R0, R5                                                 ; +0x7c, 0x3c0024\nMOV             R1, SP                                                 ; +0x7e, 0x3c0026\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x80, 0x3c0028\nMOV             R5, R0                                                 ; +0x84, 0x3c002c\nB               loc_3C0060                                             ; +0x86, 0x3c002e\nVMOV            R1, S16; char *                                        ; +0x88, 0x3c0030\nMOV             R0, R5; this                                           ; +0x8c, 0x3c0034\nBL              _ZN10FontObject20createWithConfigFileEPKcf; FontObject::createWithConfigFile(char const*,float) ; +0x8e, 0x3c0036\nSTR             R6, [SP,#0x14+var_14]                                  ; +0x92, 0x3c003a\nSTR             R6, [SP,#0x14+var_10]                                  ; +0x94, 0x3c003c\nSTR             R6, [SP,#0x14+var_C]                                   ; +0x96, 0x3c003e\nLDR.W           R9, [R9,#0x34]                                         ; +0x98, 0x3c0040\nMOV             R5, R0                                                 ; +0x9c, 0x3c0044\nMOV             R0, R8; char *                                         ; +0x9e, 0x3c0046\nBLX             strlen                                                 ; +0xa0, 0x3c0048\nMOV             R1, R8                                                 ; +0xa4, 0x3c004c\nMOV             R2, R0                                                 ; +0xa6, 0x3c004e\nMOV             R0, SP                                                 ; +0xa8, 0x3c0050\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xaa, 0x3c0052\nMOV             R0, R9; int                                            ; +0xae, 0x3c0056\nMOV             R1, R5; this                                           ; +0xb0, 0x3c0058\nMOV             R2, SP                                                 ; +0xb2, 0x3c005a\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0xb4, 0x3c005c\nMOV             R0, R4                                                 ; +0xb8, 0x3c0060\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xba, 0x3c0062\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xbe, 0x3c0066\nLDR             R3, [R7]                                               ; +0xc0, 0x3c0068\nMOV             R0, R5                                                 ; +0xc2, 0x3c006a\nCMP             R2, R3                                                 ; +0xc4, 0x3c006c\nBEQ             loc_3C0082                                             ; +0xc6, 0x3c006e\nBLX             __stack_chk_fail                                       ; +0xc8, 0x3c0070\nB               loc_3C0076                                             ; +0xcc, 0x3c0074\nMOV             R0, R4                                                 ; +0xce, 0x3c0076\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd0, 0x3c0078\nBL              __cxa_end_cleanup                                      ; +0xd4, 0x3c007c\nB               loc_3C0076                                             ; +0xd8, 0x3c0080\nADD             SP, SP, #0x14                                          ; +0xda, 0x3c0082\nVPOP            {D8}                                                   ; +0xdc, 0x3c0084\nPOP.W           {R4-R9,PC}                                             ; +0xe0, 0x3c0088", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x3d5e88", "sub_3E3C78 @ 0x3e3e04"], "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"}