// // cocos2d::CCBMFontConfiguration::parseCommonArguments from 0x7d4534 to 0x7d47de (682 bytes) // // 1 xrefs: // > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x7d5576 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:00:37 +0000 // int __fastcall cocos2d::CCBMFontConfiguration::parseCommonArguments(int a1, unsigned __int8 *a2) { unsigned __int8 *v2; // r5 int v5; // r6 bool v6; // zf unsigned int v7; // r6 unsigned int v8; // r5 unsigned __int8 *v9; // r6 int v10; // r0 char *v11; // r0 int v12; // r5 unsigned int v13; // r5 unsigned __int8 *v14; // r7 int v15; // r7 unsigned __int8 *v16; // r5 unsigned int v17; // r7 int v18; // r0 int v19; // r0 int v20; // r1 char *v21; // r2 cocos2d::CCConfiguration *v22; // r0 cocos2d::CCConfiguration *v23; // r0 int v24; // r2 unsigned int v25; // r2 unsigned __int8 *v26; // r7 int v27; // r7 unsigned __int8 *v28; // r10 unsigned int v29; // r7 int v30; // r0 int v31; // r0 int v32; // r1 char *v33; // r2 cocos2d::CCConfiguration *v34; // r0 cocos2d::CCConfiguration *v35; // r0 int v36; // r3 unsigned int v37; // r3 unsigned __int8 *v38; // r11 int v39; // r7 unsigned __int8 *v40; // r10 unsigned int v41; // r7 int v42; // r0 int v43; // r0 int v44; // r1 char *v45; // r2 int v47; // [sp+4h] [bp-38h] char v48; // [sp+8h] [bp-34h] char v49; // [sp+Ch] [bp-30h] unsigned __int8 *v50[2]; // [sp+14h] [bp-28h] BYREF int v51; // [sp+1Ch] [bp-20h] BYREF int v52; // [sp+20h] [bp-1Ch] char *s; // [sp+24h] [bp-18h] int v54; // [sp+28h] [bp-14h] BYREF int v55; // [sp+2Ch] [bp-10h] char *v56; // [sp+30h] [bp-Ch] v5 = *a2; v6 = (v5 & 1) == 0; if ( (v5 & 1) != 0 ) { v7 = *((_DWORD *)a2 + 1); } else { v7 = v5 >> 1; v2 = a2 + 1; } if ( !v6 ) v2 = *((unsigned __int8 **)a2 + 2); if ( v7 <= 0xA || (v9 = &v2[v7], v48 = 0, v49 = 0, std::__search( v50, v2, v9, "lineHeight=", (unsigned __int8 *)"", (int (__fastcall *)(int, _DWORD))std::char_traits::eq), v50[0] == v9) ) { v8 = -1; } else { v8 = v50[0] - v2; } v10 = std::string::find(a2, 32, v8); std::string::basic_string(&v51, a2, v8, v10 - v8); if ( (v51 & 1) != 0 ) v11 = s; else v11 = (char *)&v51 + 1; sscanf(v11, "lineHeight=%d", a1 + 56, (unsigned __int8)v51, a2, v47, v48, v49); v12 = *a2; if ( (v12 & 1) != 0 ) { v13 = *((_DWORD *)a2 + 1); v14 = *((unsigned __int8 **)a2 + 2); } else { v13 = v12 >> 1; v14 = a2 + 1; } if ( v13 <= 6 || (v16 = &v14[v13], std::__search( v50, v14, v16, "scaleW=", (unsigned __int8 *)"", (int (__fastcall *)(int, _DWORD))std::char_traits::eq), v50[0] == v16) ) { v15 = -1; } else { v15 = v50[0] - v14; } v17 = v15 + 7; v18 = std::string::find(a2, 32, v17); std::string::basic_string(&v54, a2, v17, v18 - v17); if ( (v51 & 1) != 0 ) { *s = 0; v52 = 0; } else { LOWORD(v51) = 0; } std::string::reserve(&v51, 0); v19 = v54; v20 = v55; v21 = v56; v54 = 0; v55 = 0; v56 = nullptr; v51 = v19; v52 = v20; s = v21; v22 = (cocos2d::CCConfiguration *)std::string::~string((int)&v54); v23 = (cocos2d::CCConfiguration *)cocos2d::CCConfiguration::sharedConfiguration(v22); cocos2d::CCConfiguration::getMaxTextureSize(v23); v24 = *a2; if ( (v24 & 1) != 0 ) { v25 = *((_DWORD *)a2 + 1); v26 = *((unsigned __int8 **)a2 + 2); } else { v25 = v24 >> 1; v26 = a2 + 1; } if ( v25 <= 6 || (v28 = &v26[v25], std::__search( v50, v26, &v26[v25], "scaleH=", (unsigned __int8 *)"", (int (__fastcall *)(int, _DWORD))std::char_traits::eq), v50[0] == v28) ) { v27 = -1; } else { v27 = v50[0] - v26; } v29 = v27 + 7; v30 = std::string::find(a2, 32, v29); std::string::basic_string(&v54, a2, v29, v30 - v29); if ( (v51 & 1) != 0 ) { *s = 0; v52 = 0; } else { LOWORD(v51) = 0; } std::string::reserve(&v51, 0); v31 = v54; v32 = v55; v33 = v56; v54 = 0; v55 = 0; v56 = nullptr; v51 = v31; v52 = v32; s = v33; v34 = (cocos2d::CCConfiguration *)std::string::~string((int)&v54); v35 = (cocos2d::CCConfiguration *)cocos2d::CCConfiguration::sharedConfiguration(v34); cocos2d::CCConfiguration::getMaxTextureSize(v35); v36 = *a2; if ( (v36 & 1) != 0 ) { v37 = *((_DWORD *)a2 + 1); v38 = *((unsigned __int8 **)a2 + 2); } else { v37 = v36 >> 1; v38 = a2 + 1; } if ( v37 <= 5 || (v40 = &v38[v37], std::__search( v50, v38, &v38[v37], "pages=", (unsigned __int8 *)"", (int (__fastcall *)(int, _DWORD))std::char_traits::eq), v50[0] == v40) ) { v39 = -1; } else { v39 = v50[0] - v38; } v41 = v39 + 6; v42 = std::string::find(a2, 32, v41); std::string::basic_string(&v54, a2, v41, v42 - v41); if ( (v51 & 1) != 0 ) { *s = 0; v52 = 0; } else { LOWORD(v51) = 0; } std::string::reserve(&v51, 0); v43 = v54; v44 = v55; v45 = v56; v54 = 0; v55 = 0; v56 = nullptr; v51 = v43; v52 = v44; s = v45; std::string::~string((int)&v54); return std::string::~string((int)&v51); }
GD Web Decomp Icon

GD Web Decomp

Raw Source