// // RandTriggerGameObject::getRandomGroupID from 0x87b630 to 0x87b6c0 (144 bytes) // // 2 xrefs: // > RandTriggerGameObject::triggerObject @ 0x898eb4 // > @ 0xf2800 // // 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:55:52 +0000 // __int64 __fastcall RandTriggerGameObject::getRandomGroupID(unsigned int **this) { float v2; // s0 unsigned int *v3; // x4 unsigned int *v4; // x5 signed int v5; // w3 signed int v6; // w1 unsigned int *v7; // x0 unsigned int v8; // w2 GameToolbox *TotalChance; // [xsp+28h] [xbp+28h] TotalChance = (GameToolbox *)RandTriggerGameObject::getTotalChance((RandTriggerGameObject *)this); v2 = GameToolbox::fast_rand_0_1(TotalChance); v3 = *(this + 230); v4 = *(this + 231); v5 = llroundf(v2 * (float)(int)TotalChance); if ( v3 == v4 ) return 0; v6 = v3[2]; v7 = v3 + 4; if ( v5 > v6 ) { while ( 1 ) { v3 = v7; if ( v4 == v7 ) break; v8 = v7[2]; v7 += 4; v6 += v8; if ( v5 <= v6 ) return *v3; } return 0; } return *v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source