// // GJBaseGameLayer::modifyObjectPhysics from 0x100126ae0 to 0x100126c28 (328 bytes) // // 2 xrefs: // > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x10012651b // > GJBaseGameLayer::modifyGroupPhysics @ 0x100126905 // // This function is hookable on this platform (idp: pc, 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:24:41 +0000 // void __fastcall GJBaseGameLayer::modifyObjectPhysics(__int64 a1, __int64 a2, __int64 a3) { __m128 v4; // xmm0 __m128 v5; // xmm0 __m128 v6; // xmm0 __m128 v7; // [rsp+0h] [rbp-60h] float v8; // [rsp+0h] [rbp-60h] float v9[2]; // [rsp+18h] [rbp-48h] BYREF __m128 v10; // [rsp+20h] [rbp-40h] __m128 inserted; // [rsp+30h] [rbp-30h] v10 = (__m128)*(unsigned int *)(a2 + 2084); v4 = (__m128)*(unsigned int *)(a2 + 2088); inserted = v4; *(double *)v4.i64 = GameToolbox::fast_rand_0_1(); v7 = v4; inserted = _mm_insert_ps(inserted, (__m128)*(unsigned int *)(a2 + 2096), 16); v5 = _mm_insert_ps(v10, (__m128)*(unsigned int *)(a2 + 2092), 16); v10 = v5; *(double *)v5.i64 = GameToolbox::fast_rand_0_1(); _mm_storel_ps( (double *)(a3 + 8), _mm_mul_ps((__m128)*(unsigned __int64 *)(a3 + 8), _mm_add_ps(_mm_mul_ps(_mm_insert_ps(v7, v5, 16), inserted), v10))); v10.i32[0] = *(_DWORD *)(a2 + 1848); v6 = (__m128)*(unsigned int *)(a2 + 1852); inserted.i32[0] = *(_DWORD *)(a2 + 1852); v6.f32[0] = (float)((float)GameToolbox::fast_rand_0_1() * inserted.f32[0]) + v10.f32[0]; if ( v6.f32[0] != 0.0 ) { inserted.i32[0] = *(_DWORD *)(a2 + 1860); v8 = *(float *)(a2 + 1864); v10.i32[0] = v6.i32[0]; *(double *)v6.i64 = GameToolbox::fast_rand_0_1(); v6.f32[0] = (float)(v6.f32[0] * v8) + inserted.f32[0]; GJBaseGameLayer::getFollowSpeedVal( (__int64)v9, a1, *(_QWORD *)a3, *(_DWORD *)(a2 + 1856), *(_DWORD *)(a2 + 1868), v6, v10.f32[0]); if ( !*(_BYTE *)(a2 + 1880) ) *(float *)(a3 + 12) = v9[1] + *(float *)(a3 + 12); if ( !*(_BYTE *)(a2 + 1881) ) *(float *)(a3 + 8) = v9[0] + *(float *)(a3 + 8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source