// // GJBaseGameLayer::generatePickupAnimRandVal from 0x9c1390 to 0x9c1550 (448 bytes) // // 2 xrefs: // > GameObject::playDestroyObjectAnim @ 0xaf417c // > @ 0xc8f68 // // 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:58:29 +0000 // __int64 __fastcall GJBaseGameLayer::generatePickupAnimRandVal( GJBaseGameLayer *this, GameObject *a2, float *a3, float *a4) { char *v6; // x19 float *v7; // x20 __int64 v8; // x0 __int64 *v9; // x1 __int64 **v10; // x19 int v11; // w2 int v12; // w3 int v13; // w0 int v14; // w0 int v15; // w5 float v17; // s8 int v18; // w0 int v19; // w27 __int64 v20; // x0 int v22[2]; // [xsp+88h] [xbp+88h] BYREF int *v23; // [xsp+90h] [xbp+90h] BYREF v6 = (char *)this + 0x2000; v7 = (float *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 192LL))(a2); v8 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 192LL))(a2); v9 = *((__int64 **)v6 + 491); v10 = (__int64 **)(v6 + 3920); v11 = (int)*v7; v12 = (int)*(float *)(v8 + 4); v22[0] = v11; v22[1] = v12; while ( v9 ) { while ( 1 ) { v13 = *((_DWORD *)v9 + 7); if ( v11 >= v13 ) { if ( v11 > v13 ) goto LABEL_10; v14 = *((_DWORD *)v9 + 8); if ( v12 >= v14 ) break; } v9 = (__int64 *)*v9; if ( !v9 ) goto LABEL_9; } if ( v12 <= v14 ) goto LABEL_7; LABEL_10: v9 = (__int64 *)v9[1]; } LABEL_9: v17 = (float)((float)((float)rand() * 4.6566e-10) * 2.0) + -1.0; v18 = rand(); v23 = v22; v19 = v18; v20 = std::__tree,std::pair>,std::__map_value_compare,std::__value_type,std::pair>,std::less>,true>,std::allocator,std::pair>>>::__emplace_unique_key_args,std::piecewise_construct_t const&,std::tuple const&>,std::tuple<>>( v10, v22, (__int64)&unk_116CF80, (_QWORD **)&v23); *(float *)(v20 + 36) = v17; *(float *)(v20 + 40) = (float)v19 * 4.6566e-10; LABEL_7: v23 = v22; v15 = *(_DWORD *)(std::__tree,std::pair>,std::__map_value_compare,std::__value_type,std::pair>,std::less>,true>,std::allocator,std::pair>>>::__emplace_unique_key_args,std::piecewise_construct_t const&,std::tuple const&>,std::tuple<>>( v10, v22, (__int64)&unk_116CF80, (_QWORD **)&v23) + 36); v23 = v22; *(_DWORD *)a3 = v15; *a4 = *(float *)(std::__tree,std::pair>,std::__map_value_compare,std::__value_type,std::pair>,std::less>,true>,std::allocator,std::pair>>>::__emplace_unique_key_args,std::piecewise_construct_t const&,std::tuple const&>,std::tuple<>>( v10, v22, (__int64)&unk_116CF80, (_QWORD **)&v23) + 40); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source