// // cocos2d::CCBMFontConfiguration::parseInfoArguments from 0xd57a9c to 0xd57c4c (432 bytes) // // 2 xrefs: // > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0xd592f4 // > @ 0x8b8b8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:07:44 +0000 // __int64 __fastcall cocos2d::CCBMFontConfiguration::parseInfoArguments(__int64 a1, unsigned __int8 *a2) { int v4; // w2 unsigned __int64 v5; // x1 __int64 v6; // x24 unsigned __int64 v7; // x23 unsigned __int64 v8; // x2 int v9; // w25 unsigned __int8 *v10; // x19 int v11; // w24 char *v12; // x0 size_t v14; // x2 void *v15; // x0 int v16; // w19 unsigned __int64 v17; // x19 __int64 v18; // x0 int v19; // w2 __int64 v20[2]; // [xsp+50h] [xbp+50h] BYREF char *s; // [xsp+60h] [xbp+60h] v4 = *a2; if ( (v4 & 1) != 0 ) { v5 = *((_QWORD *)a2 + 1); v6 = *((_QWORD *)a2 + 2); if ( v5 <= 7 ) { v7 = -1; v8 = v5; v9 = -1; goto LABEL_4; } } else { LODWORD(v8) = v4 >> 1; v5 = (int)v8; if ( (int)v8 <= 7 ) { v7 = -1; v9 = -1; goto LABEL_12; } v6 = (__int64)(a2 + 1); } v17 = v6 + v5; v18 = std::__search( v6, v6 + v5, "padding=", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v17 == v18 ) { v7 = -1; v9 = -1; } else { v9 = v18 - v6; v7 = (int)v18 - (int)v6; } v19 = *a2; if ( (v19 & 1) == 0 ) { LODWORD(v8) = v19 >> 1; LABEL_12: v8 = (int)v8; v10 = a2 + 1; v11 = -1; if ( v7 >= (int)v8 ) goto LABEL_5; goto LABEL_13; } v6 = *((_QWORD *)a2 + 2); v8 = *((_QWORD *)a2 + 1); LABEL_4: v10 = (unsigned __int8 *)v6; v11 = -1; if ( v7 >= v8 ) goto LABEL_5; LABEL_13: v14 = v8 - v7; if ( v14 ) { v15 = memchr(&v10[v7], 32, v14); v16 = (_DWORD)v15 - (_DWORD)v10; if ( v15 ) v11 = v16; else v11 = -1; } LABEL_5: std::string::basic_string(v20, (__int64)a2, v7, v11 - v9); v12 = (char *)v20 + 1; if ( (v20[0] & 1) != 0 ) v12 = s; sscanf(v12, "padding=%d,%d,%d,%d", a1 + 72, a1 + 76, a1 + 80, a1 + 68); if ( (v20[0] & 1) != 0 ) operator delete(s); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source