//
// sub_140253AF0 from 0x140253af0 to 0x140253b57 (103 bytes)
//
// 3 xrefs:
// > sub_140251180 @ 0x1402512e3
// > sub_1403BE2B0 @ 0x1403be341
// > ??> @ 0x1406cf6fc
//
// 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
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall sub_140253AF0(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // rbx
__int64 v7; // [rsp+20h] [rbp-28h] BYREF
__int64 v8; // [rsp+28h] [rbp-20h]
__int64 v9; // [rsp+30h] [rbp-18h]
v5 = a1;
v7 = a3;
v8 = a3;
v9 = a4;
if ( a1 == a2 )
return a3;
do
{
sub_140254CF0(&v7, v5);
v5 += 232;
}
while ( v5 != a2 );
return v8;
}