// // SecretLayer5::incrementChatIdx from 0x6e583c to 0x6e58b6 (122 bytes) // // 1 xrefs: // > SecretLayer5::onSubmit @ 0x6e5a4c // // 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 11:57:24 +0000 // unsigned int __fastcall SecretLayer5::incrementChatIdx(SecretLayer5 *this, int a2) { int v3; // r1 int v4; // r7 unsigned int result; // r0 unsigned int v6; // r6 int v7; // r8 unsigned int v8; // r1 _DWORD v9[2]; // [sp+0h] [bp-8h] BYREF v9[0] = this; v9[1] = a2; v3 = *((_DWORD *)this + 109); v4 = *((_DWORD *)this + 107); result = v3 + 1; v6 = *((_DWORD *)this + 106); *((_DWORD *)this + 109) = v3 + 1; if ( v3 + 1 > (unsigned int)(((int)(v4 - v6) >> 2) - 1) ) { v7 = *(_DWORD *)(v6 + 4 * v3); v8 = rand() % 0x7FFFFFFFu; if ( !v8 ) v8 = 1; v9[0] = v8; result = std::shuffle,std::linear_congruential_engine>( v6, v4, (int)v9); *((_DWORD *)this + 109) = 0; if ( **((_DWORD **)this + 106) == v7 ) *((_DWORD *)this + 109) = 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source