// // GJBaseGameLayer::generatePickupAnimRandVal from 0x5a4708 to 0x5a47f8 (240 bytes) // // 1 xrefs: // > GameObject::playDestroyObjectAnim @ 0x65f372 // // 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:53:19 +0000 // float *__fastcall GJBaseGameLayer::generatePickupAnimRandVal( GJBaseGameLayer *this, GameObject *a2, float *a3, float *a4) { float *v8; // r9 int v9; // r0 _DWORD *v10; // r3 int v11; // r2 int v12; // r1 int v13; // r0 int v14; // r0 int v15; // s16 int v16; // s17 float *v17; // r0 int **v18; // r5 float *result; // r0 int v20[2]; // [sp+4h] [bp-10h] BYREF v8 = (float *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 96))(a2); v9 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 96))(a2); v10 = *((_DWORD **)this + 2634); v11 = (int)*v8; v20[0] = v11; v12 = (int)*(float *)(v9 + 4); v20[1] = v12; while ( v10 ) { v13 = v10[4]; if ( v11 < v13 ) goto LABEL_10; if ( v13 < v11 ) goto LABEL_11; v14 = v10[5]; if ( v12 < v14 ) { LABEL_10: v10 = (_DWORD *)*v10; } else { if ( v14 >= v12 ) goto LABEL_9; LABEL_11: v10 = (_DWORD *)v10[1]; } } v15 = rand(); v16 = rand(); v17 = (float *)std::map,std::pair>::operator[]((int **)this + 2633, v20); v17[1] = (float)v16 * 4.6566e-10; *v17 = (float)((float)((float)v15 * 4.6566e-10) + (float)((float)v15 * 4.6566e-10)) - 1.0; LABEL_9: v18 = (int **)((char *)this + 10532); *a3 = *(float *)std::map,std::pair>::operator[](v18, v20); result = (float *)std::map,std::pair>::operator[](v18, v20); *a4 = result[1]; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source