// // sub_640A0 from 0x640a0 to 0x640f4 (84 bytes) // // 1 xrefs: // > @ 0x10c900 // // 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 // // positive sp value has been detected, the output may be wrong! __int64 __fastcall sub_640A0(__int64 a1, __int64 a2, __int64 a3, __int64 a4) { unsigned __int8 v4; // w20 _QWORD *v5; // x23 _QWORD *v6; // x24 __int64 v7; // x30 __int64 result; // x0 __int64 v9; // x0 __int64 v10; // x8 result = ((__int64 (__fastcall *)(__int64, __int64, __int64, __int64, __int64))sub_642F4)(a1, a2, a3, a4, v7); while ( 1 ) { v6 = (_QWORD *)*v6; if ( v6 == v5 ) break; result = ((__int64 (__fastcall *)(__int64))sub_64228)(result); if ( (unsigned __int8)result == v4 ) { v9 = sub_642C4(); result = (*(__int64 (__fastcall **)(__int64))(v10 + 88))(v9); if ( (_DWORD)result ) return result; } } return 0; }