// // GJRateLevelLayer::setupRateInfo from 0x9547a0 to 0x955204 (2660 bytes) // // 2 xrefs: // > GJRateLevelLayer::rateInfoFinished @ 0x9552d4 // > @ 0x54da8 // // 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 12:57:24 +0000 // __int64 __fastcall GJRateLevelLayer::setupRateInfo(__int64 a1, unsigned __int8 *a2) { cocos2d::CCString *v3; // x0 const char *CString; // x0 size_t v5; // x0 cocos2d::CCArray *v6; // x26 unsigned int v7; // w22 int v8; // w20 unsigned int v9; // w1 cocos2d::CCString *v10; // x0 const char *v11; // x0 int v12; // w0 float v13; // s8 unsigned int v14; // w22 int v15; // w25 const char *v16; // x1 unsigned int v17; // w28 cocos2d::CCString *v18; // x0 const char *v19; // x0 int v20; // w24 float v21; // s0 int v22; // w22 __int64 v23; // x20 void (__fastcall *v24)(__int64, float); // x22 __int64 v25; // x0 void (__fastcall *v26)(__int64, __int64 *); // x2 void (__fastcall *v27)(__int64, __int64 *); // x22 cocos2d::CCString *v28; // x0 const char *v29; // x0 size_t v30; // x0 cocos2d::CCArray *v31; // x26 unsigned int v32; // w24 int v33; // w20 unsigned int v34; // w1 cocos2d::CCString *v35; // x0 const char *v36; // x0 int v37; // w0 float v38; // s8 unsigned int v39; // w22 int i; // w28 cocos2d::CCString *v41; // x0 const char *v42; // x0 int v43; // w25 float v44; // s0 int v45; // w24 _DWORD *v46; // x4 float v47; // s3 int v48; // w3 float v49; // s1 float v50; // s4 cocos2d::CCString *v51; // x0 char *v52; // x0 const char *v53; // x2 cocos2d::CCLabelBMFont *v54; // x0 __int64 v55; // x19 void (__fastcall *v56)(__int64, __int64 *); // x20 void (__fastcall *v57)(__int64, __int64 *); // x20 cocos2d::CCArray *v59; // [xsp+98h] [xbp+98h] char *v60; // [xsp+A0h] [xbp+A0h] char *v61; // [xsp+A8h] [xbp+A8h] __int64 v62; // [xsp+A8h] [xbp+A8h] __int64 v63; // [xsp+B8h] [xbp+B8h] __int64 v64; // [xsp+C0h] [xbp+C0h] __int64 v65; // [xsp+C8h] [xbp+C8h] BYREF __int64 v66; // [xsp+D0h] [xbp+D0h] BYREF __int64 v67; // [xsp+D8h] [xbp+D8h] BYREF size_t v68; // [xsp+E0h] [xbp+E0h] void *v69; // [xsp+E8h] [xbp+E8h] __int64 v70; // [xsp+F0h] [xbp+F0h] BYREF size_t v71; // [xsp+F8h] [xbp+F8h] void *v72; // [xsp+100h] [xbp+100h] v59 = sub_9543F4(a2, ":"); v3 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v59, 0); CString = (const char *)cocos2d::CCString::getCString(v3); v70 = 0; v61 = (char *)CString; v71 = 0; v72 = nullptr; v5 = strlen(CString); std::string::__init(&v70, v61, v5); v6 = sub_9543F4((unsigned __int8 *)&v70, &byte_1169BE0); if ( (v70 & 1) != 0 ) operator delete(v72); v7 = 0; v8 = 0; while ( v7 < (unsigned int)cocos2d::CCArray::count(v6) ) { v9 = v7++; v10 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v6, v9); v11 = (const char *)cocos2d::CCString::getCString(v10); v12 = atoi(v11); if ( v8 < v12 ) v8 = v12; } v13 = 10.0; if ( (float)((float)v8 * 10.0) > 100.0 ) v13 = 100.0 / (float)v8; v62 = a1 + 1128; v14 = 0; v15 = -120; if ( (unsigned int)cocos2d::CCArray::count(v6) ) { do { v17 = v14 + 1; v18 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v6, v14); v19 = (const char *)cocos2d::CCString::getCString(v18); v20 = atoi(v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, (float)v15, -42.0); cocos2d::CCPoint::operator+(&v65, v62); LOWORD(v64) = 0; LOWORD(v63) = -26986; BYTE2(v63) = -106; BYTE2(v64) = 0; GameToolbox::intToString((unsigned __int64 *)&v67, (GameToolbox *)(v14 + 1)); if ( v20 <= 0 ) { LOWORD(v63) = 12371; BYTE2(v63) = 23; LOWORD(v64) = 8247; BYTE2(v64) = 16; std::string::assign(&v67, &byte_11B8890); if ( v13 < 10.0 ) { v21 = v13; v20 = 1; } else { v21 = v13 * 0.5; v20 = 1; *((float *)&v65 + 1) = *((float *)&v65 + 1) - (float)((float)(v13 * 0.5) * 0.5); } } else { v21 = v13; switch ( v14 ) { case 0u: LOWORD(v63) = -11517; v21 = v13; BYTE2(v63) = -1; break; case 1u: LOWORD(v63) = -27904; v21 = v13; BYTE2(v63) = -1; break; case 2u: LOWORD(v63) = -1536; v21 = v13; BYTE2(v63) = 60; break; case 3u: LOBYTE(v63) = 94; v21 = v13; *(_WORD *)((char *)&v63 + 1) = 216; break; case 4u: LOWORD(v63) = -4610; v21 = v13; BYTE2(v63) = 20; break; case 5u: LOBYTE(v63) = -1; v21 = v13; *(_WORD *)((char *)&v63 + 1) = 183; break; case 6u: LOBYTE(v63) = -1; v21 = v13; *(_WORD *)((char *)&v63 + 1) = 120; break; case 7u: LOWORD(v63) = 30207; v21 = v13; BYTE2(v63) = -21; break; case 8u: LOWORD(v63) = 11775; v21 = v13; BYTE2(v63) = -20; break; case 9u: LOBYTE(v63) = -1; v21 = v13; *(_WORD *)((char *)&v63 + 1) = 45; break; default: break; } } v22 = (int)v21; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, (const cocos2d::CCPoint *)&v65); v70 = 0; v71 = 0; v72 = nullptr; if ( (v67 & 1) != 0 ) { std::string::__init(&v70, v69, v68); } else { v72 = v69; v70 = v67; v71 = v68; } GJRateLevelLayer::createStatPillar(a1, &byte_9[1], v22, v20, v63, v64, (__int64)&v66, (unsigned __int8 *)&v70); if ( (v70 & 1) != 0 ) operator delete(v72); if ( (v67 & 1) != 0 ) operator delete(v69); v14 = v17; v15 += 15; } while ( v17 < (unsigned int)cocos2d::CCArray::count(v6) ); } v23 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v16); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v23 + 128LL))(v23, 0.06); v24 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v23 + 144LL); v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 328LL))(v23); v24(v23, 110.0 / *(float *)(v25 + 4)); v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 960LL); LOWORD(v66) = 11086; BYTE2(v66) = 24; v26(v23, &v66); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v23 + 912LL))(v23, 4294967240LL); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v23, 3); v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, 38.0, 0.0); cocos2d::CCPoint::operator+(&v66, v62); v27(v23, &v66); v28 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v59, 1u); v29 = (const char *)cocos2d::CCString::getCString(v28); v70 = 0; v60 = (char *)v29; v71 = 0; v72 = nullptr; v30 = strlen(v29); std::string::__init(&v70, v60, v30); v31 = sub_9543F4((unsigned __int8 *)&v70, &byte_1169BE0); if ( (v70 & 1) != 0 ) operator delete(v72); v32 = 0; v33 = 0; while ( v32 < (unsigned int)cocos2d::CCArray::count(v31) ) { v34 = v32++; v35 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v31, v34); v36 = (const char *)cocos2d::CCString::getCString(v35); v37 = atoi(v36); if ( v33 < v37 ) v33 = v37; } v38 = 10.0; if ( (float)((float)v33 * 10.0) > 100.0 ) v38 = 100.0 / (float)v33; v39 = 0; for ( i = 60; v39 < (unsigned int)cocos2d::CCArray::count(v31); i += 15 ) { v41 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v31, v39); v42 = (const char *)cocos2d::CCString::getCString(v41); v43 = atoi(v42); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, (float)i, -42.0); cocos2d::CCPoint::operator+(&v65, v62); v67 = 0; v68 = 0; v69 = nullptr; LOWORD(v63) = -26986; BYTE2(v63) = -106; LOWORD(v64) = 0; BYTE2(v64) = 0; std::string::__init(&v67, &byte_11B8890, 0); if ( v43 <= 0 ) { LOWORD(v63) = 12371; BYTE2(v63) = 23; LOWORD(v64) = 8247; BYTE2(v64) = 16; std::string::assign(&v67, &byte_11B8890); if ( v38 < 10.0 ) { v44 = v38; v43 = 1; } else { v44 = v38 * 0.5; v43 = 1; *((float *)&v65 + 1) = *((float *)&v65 + 1) - (float)((float)(v38 * 0.5) * 0.5); } } else { switch ( v39 ) { case 1u: LOBYTE(v63) = -1; *(_WORD *)((char *)&v63 + 1) = 255; std::string::assign(&v67, "F"); break; case 2u: LOWORD(v63) = 32255; BYTE2(v63) = 0; std::string::assign(&v67, "E"); break; case 3u: LOWORD(v63) = 255; BYTE2(v63) = -1; std::string::assign(&v67, "L"); break; case 4u: LOWORD(v63) = -256; BYTE2(v63) = -1; std::string::assign(&v67, &byte_1226080); break; default: std::string::assign(&v67, "R"); break; } v44 = v38; } v45 = (int)v44; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, (const cocos2d::CCPoint *)&v65); v70 = 0; v71 = 0; v72 = nullptr; if ( (v67 & 1) != 0 ) { std::string::__init(&v70, v69, v68); } else { v72 = v69; v70 = v67; v71 = v68; } GJRateLevelLayer::createStatPillar(a1, &byte_9[1], v45, v43, v63, v64, (__int64)&v66, (unsigned __int8 *)&v70); if ( (v70 & 1) != 0 ) operator delete(v72); if ( (v67 & 1) != 0 ) operator delete(v69); ++v39; } v46 = *(_DWORD **)(a1 + 1048); v70 = 0; v71 = 0; v72 = nullptr; v47 = (float)(int)v46[263]; if ( v47 <= 0.0 ) { v51 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Req: %i", (const char *)(unsigned int)v46[261]); } else { v48 = v46[265]; v49 = (float)(int)v46[264]; v50 = (float)(int)v46[266]; v51 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"R: %i (%i- / %i+)\n%.1f | +%.1f | -%.1f | +-%.1f\nReq: %i", (const char *)(unsigned int)(int)v47, (unsigned int)(int)v50, (unsigned int)(int)(float)v48, (unsigned int)v46[261], (float)(v49 / v47), (float)((float)(v49 - v50) / (float)(v47 - v50)), (float)((float)(v49 - (float)((float)v48 * 10.0)) / (float)(v47 - (float)v48)), (float)((float)((float)(v49 - (float)((float)v48 * 10.0)) - v50) / (float)((float)(v47 - (float)v48) - v50))); } v52 = (char *)cocos2d::CCString::getCString(v51); std::string::assign(&v70, v52); if ( (v70 & 1) != 0 ) v54 = (cocos2d::CCLabelBMFont *)v72; else v54 = (cocos2d::CCLabelBMFont *)((char *)&v70 + 1); v55 = cocos2d::CCLabelBMFont::create(v54, "chatFont.fnt", v53); v56 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v55 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, 0.0, 1.0); v56(v55, &v66); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v55 + 160LL))(v55, 0.6); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v55 + 1072LL))(v55, &unk_1168540); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v55 + 1024LL))(v55, 4294967265LL); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v55, 2); v57 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v55 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, -130.0, 48.0); cocos2d::CCPoint::operator+(&v66, v62); v57(v55, &v66); if ( (v70 & 1) != 0 ) operator delete(v72); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source