//
// SetupKeyframePopup::onClose from 0x1001e45f0 to 0x1001e469d (173 bytes)
//
// 1 xrefs:
// > ??> @ 0x100adf200
//
// 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:26:29 +0000
//
__int64 __fastcall SetupKeyframePopup::onClose(__int64 a1, __int64 a2)
{
__int64 v2; // rax
int v4; // ebx
__int64 v5; // rax
unsigned int *v6; // rax
__int64 v7; // rcx
__int64 *v8; // rax
unsigned __int64 v9; // rcx
__int64 v10; // rdx
if ( *(_BYTE *)(a1 + 1032) == 1 )
{
v2 = *(_QWORD *)(a1 + 1024);
if ( v2 )
{
v4 = *(_DWORD *)(*(_QWORD *)(a1 + 680) + 1464LL);
v5 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v2 + 13272));
if ( v5 )
{
v6 = *(unsigned int **)(v5 + 56);
v7 = *v6;
if ( *v6 )
{
v8 = *((__int64 **)v6 + 2);
v9 = (unsigned __int64)&v8[v7 - 1];
do
{
v10 = *v8;
if ( !*v8 )
break;
*(_DWORD *)(v10 + 1464) = v4;
*(_BYTE *)(v10 + 1881) = 1;
++v8;
}
while ( (unsigned __int64)v8 <= v9 );
}
}
}
}
return SetupTriggerPopup::onClose(a1, a2);
}