// // sub_10036EA88 from 0x10036ea88 to 0x10036eb3c (180 bytes) // // 8 xrefs: // > sub_10036582C @ 0x10036585c // > sub_100366FC4 @ 0x1003675bc // > sub_100366FC4 @ 0x10036766c // > sub_100366FC4 @ 0x10036767c // > sub_100366FC4 @ 0x10036779c // > sub_100366FC4 @ 0x100367808 // > sub_100366FC4 @ 0x100367864 // > sub_100366FC4 @ 0x1003678c0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // _QWORD *__fastcall sub_10036EA88(_QWORD *a1, unsigned __int64 *a2) { int8x8_t v2; // x8 unsigned __int64 v3; // x9 uint8x8_t v4; // d0 unsigned __int64 v5; // x11 _QWORD *v6; // x12 _QWORD *result; // x0 unsigned __int64 v8; // x13 v2 = (int8x8_t)a1[1]; if ( !*(_QWORD *)&v2 ) return nullptr; v3 = *a2; v4 = (uint8x8_t)vcnt_s8(v2); v4.i16[0] = vaddlv_u8(v4); if ( v4.u32[0] > 1uLL ) { v5 = *a2; if ( v3 >= *(_QWORD *)&v2 ) v5 = v3 % *(_QWORD *)&v2; } else { v5 = (*(_QWORD *)&v2 - 1LL) & v3; } v6 = *(_QWORD **)(*a1 + 8 * v5); if ( !v6 ) return nullptr; result = (_QWORD *)*v6; if ( *v6 ) { do { v8 = result[1]; if ( v3 == v8 ) { if ( result[2] == v3 ) return result; } else { if ( v4.u32[0] > 1uLL ) { if ( v8 >= *(_QWORD *)&v2 ) v8 %= *(_QWORD *)&v2; } else { v8 &= *(_QWORD *)&v2 - 1LL; } if ( v8 != v5 ) return nullptr; } result = (_QWORD *)*result; } while ( result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source