//
// sub_1007FF020 from 0x1007ff020 to 0x1007ff07d (93 bytes)
//
// 3 xrefs:
// > cocos2d::CCDictionary::randomObject @ 0x1002fa8b2
// > LevelTools::sortSpeedObjects @ 0x1005014ba
// > CurrencyRewardLayer::createObjectsFull @ 0x10088b9fc
//
// 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:36:36 +0000
//
__int64 __fastcall sub_1007FF020(__int64 a1, __m128 a2)
{
if ( !**(_DWORD **)(a1 + 56) )
return 0;
a2.f32[0] = (float)rand() * 4.6566129e-10;
return *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 16LL)
+ 8LL
* (int)(float)((float)**(int **)(a1 + 56)
* _mm_andnot_ps(_mm_cmpeq_ss((__m128)0x3F800000u, a2), a2).f32[0]));
}