//
// SetGroupIDLayer::valuePopupClosed from 0x140593d20 to 0x140593dac (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407e5508
// > ??> @ 0x14092cf00
//
// 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:34:33 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall SetGroupIDLayer::valuePopupClosed(__int64 a1, __int64 a2, float a3)
{
int v4; // edi
__int64 result; // rax
__int64 v6; // rax
void *v7; // [rsp+38h] [rbp+10h]
v4 = (int)fmaxf(0.0, roundf(a3));
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
if ( (_DWORD)result == 26 )
{
v6 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v7 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v6 = qword_14090BFD0;
}
result = *(_QWORD *)(v6 + 568);
*(_DWORD *)(*(_QWORD *)(result + 3528) + 444LL) = v4;
}
return result;
}