//
// SetLevelOrderPopup::onOrderButton from 0x140431320 to 0x140431357 (55 bytes)
//
// 3 xrefs:
// > SetLevelOrderPopup::init @ 0x1404311b1
// > SetLevelOrderPopup::init @ 0x140431283
// > ??> @ 0x140926cb4
//
// 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:32:15 +0000
//
__int64 __fastcall SetLevelOrderPopup::onOrderButton(__int64 a1, __int64 a2)
{
int v3; // eax
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1 )
v3 = *(_DWORD *)(a1 + 684);
else
v3 = 1;
*(_DWORD *)(a1 + 672) = v3;
return SetIDPopup::updateTextInputLabel(a1);
}