// // sub_10042FF38 from 0x10042ff38 to 0x10042ffd8 (160 bytes) // // 1 xrefs: // > RandTriggerGameObject::triggerObject @ 0x100430008 // // 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 11:05:05 +0000 // __int64 __fastcall sub_10042FF38(__int64 a1) { __int64 v2; // x8 __int64 v3; // x9 int v4; // w10 float v5; // s8 float v6; // s0 unsigned int *v7; // x8 unsigned int *v8; // x9 signed int v9; // w10 signed int v10; // w11 v2 = *(_QWORD *)(a1 + 1840); v3 = *(_QWORD *)(a1 + 1848); if ( v2 == v3 ) { v5 = 0.0; } else { v4 = 0; do { v4 += *(_DWORD *)(v2 + 8); v2 += 16; } while ( v2 != v3 ); v5 = (float)v4; } v6 = sub_10004BDB8(); v7 = *(unsigned int **)(a1 + 1840); v8 = *(unsigned int **)(a1 + 1848); if ( v7 == v8 ) return 0; v9 = 0; v10 = llroundf(v6 * v5); while ( 1 ) { v9 += v7[2]; if ( v9 >= v10 ) break; v7 += 4; if ( v7 == v8 ) return 0; } return *v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source