// // sub_18000F050 from 0x18000f050 to 0x18000f10d (189 bytes) // // 3 xrefs: // > @ 0x18016c7b0 // > @ 0x18016ca28 // > @ 0x1801f6d38 // // 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 // __int64 __fastcall sub_18000F050(_QWORD *a1, int a2, _QWORD *a3) { __int64 v3; // rbx __int64 result; // rax __int64 v7; // rbp __int64 v8; // r14 __int64 v9; // r15 int v10; // [rsp+50h] [rbp+18h] BYREF v3 = a2; v10 = 0; if ( !a3 ) return 31; v7 = a1[12]; v8 = a1[13]; v9 = a1[14]; if ( v7 ) { result = (*(__int64 (__fastcall **)(_QWORD *, int *))(*a1 + 296LL))(a1, &v10); if ( (_DWORD)result ) return result; if ( (unsigned int)(v3 + 1) <= 1 ) { *a3 = v7; return 0; } if ( (_DWORD)v3 == v10 - 1 || (_DWORD)v3 == -3 ) { *a3 = v8; return 0; } if ( (_DWORD)v3 == -2 ) { *a3 = v9; return 0; } if ( (int)v3 < v10 ) { *a3 = *(_QWORD *)(a1[2] + 8 * v3); return 0; } } return 9; }