//
// sub_14035C3E0 from 0x14035c3e0 to 0x14035c447 (103 bytes)
//
// 4 xrefs:
// > sub_14035A160 @ 0x14035a2c3
// > sub_14051E3C0 @ 0x14051e451
// > sub_14054E6E0 @ 0x14054e84c
// > ??> @ 0x140920ee8
//
// 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 11:30:51 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall sub_14035C3E0(__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_14035D9A0(&v7, v5);
v5 += 232;
}
while ( v5 != a2 );
return v8;
}