// // RandTriggerGameObject::getTotalChance from 0x87b4f0 to 0x87b630 (320 bytes) // // 4 xrefs: // > RandTriggerGameObject::getRandomGroupID @ 0x87b640 // > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0xaef8d8 // > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0xaefd00 // > @ 0x69df0 // // 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::getTotalChance(RandTriggerGameObject *this) { char *v1; // x1 char *v2; // x2 char *v3; // x5 unsigned __int64 v4; // x0 bool v5; // cc unsigned __int64 v6; // x3 unsigned __int64 v7; // x0 unsigned __int64 v8; // x3 int32x4_t v9; // q0 const float *v10; // x7 unsigned __int64 v11; // x5 bool v12; // zf __int64 result; // x0 float32x4_t v14; // 0:q1.16 v1 = *((char **)this + 230); v2 = *((char **)this + 231); if ( v1 == v2 ) return 0; v3 = v1 + 16; v4 = (unsigned __int64)(v2 - (v1 + 16)) >> 4; v5 = v4 > 3; v6 = (v4 - 4) >> 2; v7 = v4 + 1; v8 = v6 + 1; if ( v5 ) { v9 = 0u; v10 = (const float *)(v1 + 8); v11 = 0; do { v14 = vld4q_f32(v10).val[0]; v10 += 16; ++v11; v9 = vaddq_s32(v9, v14); } while ( v8 > v11 ); v12 = v7 == 4 * v8; v1 += 64 * v8; result = (unsigned int)vaddvq_s32(v9); if ( v12 ) return result; v3 = v1 + 16; } else { LODWORD(result) = 0; } result = (unsigned int)(result + *((_DWORD *)v1 + 2)); if ( v2 != v3 ) { result = (unsigned int)(result + *((_DWORD *)v1 + 6)); if ( v2 != v1 + 32 ) { result = (unsigned int)(result + *((_DWORD *)v1 + 10)); if ( v2 != v1 + 48 ) { result = (unsigned int)(result + *((_DWORD *)v1 + 14)); if ( v2 != v1 + 64 ) { result = (unsigned int)(result + *((_DWORD *)v1 + 18)); if ( v2 != v1 + 80 ) { result = (unsigned int)(result + *((_DWORD *)v1 + 22)); if ( v2 != v1 + 96 ) return (unsigned int)(result + *((_DWORD *)v1 + 26)); } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source