//
// EditorWindowPopup::dismissDropdowns from 0x14017e420 to 0x14017e496 (118 bytes)
//
// 5 xrefs:
// > EditorWindowPopup::layoutWindow @ 0x14017e6ab
// > EditorWindowPopup::onClose @ 0x14017fdfb
// > ??> @ 0x14089de90
// > ??> @ 0x14089dea0
// > ??> @ 0x1409189bc
//
// 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:27:36 +0000
//
_QWORD *__fastcall EditorWindowPopup::dismissDropdowns(__int64 a1)
{
_QWORD *result; // rax
_QWORD *i; // rbx
__int64 v3; // rcx
__int64 v4; // rax
result = *(_QWORD **)(a1 + 984);
if ( result )
{
result = (_QWORD *)result[7];
if ( result )
{
for ( i = (_QWORD *)result[36]; ; i = (_QWORD *)i[36] )
{
v3 = result[33];
v4 = *(_QWORD *)(v3 + 440);
if ( v4 )
{
*(_QWORD *)(v3 + 440) = 0;
(**(void (__fastcall ***)(__int64))(v4 + 336))(v4 + 336);
}
result = i;
if ( !i )
break;
}
}
}
return result;
}