// // GJChallengeItem::init from 0x8d8b18 to 0x8d8bd8 (192 bytes) // // 2 xrefs: // > GJChallengeItem::create @ 0x8d8cb8 // > @ 0xd9930 // // 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:56:46 +0000 // float __fastcall GJChallengeItem::init(_DWORD *a1, int a2, int a3, int a4, int a5, __int64 a6) { __int64 *v7; // x0 int v10; // w0 int v11; // w0 float result; // s0 v7 = (__int64 *)(a1 + 28); a1[14] = a2; a1[24] = a5; if ( v7 != (__int64 *)a6 ) { if ( (*(_BYTE *)a6 & 1) != 0 ) std::string::assign(v7, *(const void **)(a6 + 16), *(_QWORD *)(a6 + 8)); else std::string::assign(v7, (const void *)(a6 + 1), *(_BYTE *)a6 >> 1); } a1[23] = a3; v10 = rand(); a1[20] = a4; v11 = (int)(float)((float)((float)v10 * 4.6566e-10) * 1000.0); a1[22] = v11; a1[21] = a3 + v11; result = (float)((float)rand() * 4.6566e-10) * 1000.0; a1[19] = (int)result; a1[18] = a4 + (int)result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source