//
// __AdjustPointer from 0x180124c54 to 0x180124c77 (35 bytes)
//
// 4 xrefs:
// > sub_180125984 @ 0x180125aa7
// > sub_180125984 @ 0x180125af2
// > BuildCatchObjectInternal<__FrameHandler3> @ 0x180125bc9
// > BuildCatchObjectInternal<__FrameHandler3> @ 0x180125c00
//
// This function is hookable on this platform (idp: pc, 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 10:54:54 +0000
//
__int64 __fastcall _AdjustPointer(__int64 a1, int *a2)
{
__int64 result; // rax
result = a1 + *a2;
if ( a2[1] >= 0 )
result += a2[1] + (__int64)*(int *)(a2[2] + *(_QWORD *)(a2[1] + a1));
return result;
}