//
// sub_100495310 from 0x100495310 to 0x100495365 (85 bytes)
//
// 13 xrefs:
// > sub_100900E60 @ 0x100900e78
// > sub_100900F30 @ 0x100900f48
// > EditorWindowPopup::beginTouch @ 0x100901237
// > sub_100901D30 @ 0x100901d4f
// > EditorWindowPopup::keyDown @ 0x100901d91
// > EditorWindowPopup::keyDown @ 0x100901df9
// > sub_100901E30 @ 0x100901e6a
// > sub_100901E30 @ 0x100901edc
// > EditorWindowPopup::handleAction @ 0x100901f43
// > EditorWindowPopup::handleAction @ 0x100901f81
// > sub_100901FE0 @ 0x100902022
// > sub_100901FE0 @ 0x100902063
// > EditorWindowPopup::onFieldEnter @ 0x1009020e8
//
// 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 12:30:48 +0000
//
__int64 __fastcall sub_100495310(__int64 a1, __int64 a2, __int64 a3, unsigned int a4)
{
__int64 v4; // rax
v4 = a2;
LOBYTE(a4) = a2 != 0;
if ( a2 != 0 && a2 != a1 )
{
do
{
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 512LL))(v4);
LOBYTE(a4) = v4 != 0;
}
while ( v4 != a1 && v4 );
}
return a4;
}