//
// SetupKeyframePopup::onClose from 0x1405bc500 to 0x1405bc5a8 (168 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407f5c60
// > ??> @ 0x1408e0080
// > ??> @ 0x1408e0090
// > ??> @ 0x14092df2c
//
// 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:46 +0000
//
__int64 __fastcall SetupKeyframePopup::onClose(__int64 a1, __int64 a2)
{
__int64 v4; // rcx
__int64 v5; // rax
int v6; // edi
struct cocos2d::CCObject *v7; // rax
unsigned int *v8; // rcx
__int64 v9; // rax
__int64 *v10; // rcx
__int64 *i; // rdx
__int64 v12; // rax
if ( *(_BYTE *)(a1 + 1016) )
{
v4 = *(_QWORD *)(a1 + 1008);
if ( v4 )
{
v5 = *(_QWORD *)(a1 + 680);
v6 = *(_DWORD *)(v5 + 1480);
v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v4 + 13872), *(int *)(v5 + 1872));
if ( v7 )
{
v8 = *((unsigned int **)v7 + 7);
v9 = *v8;
if ( (_DWORD)v9 )
{
v10 = *((__int64 **)v8 + 2);
for ( i = &v10[v9 - 1]; v10 <= i; *(_BYTE *)(v12 + 1897) = 1 )
{
v12 = *v10;
if ( !*v10 )
break;
++v10;
*(_DWORD *)(v12 + 1480) = v6;
}
}
}
}
}
return SetupTriggerPopup::onClose(a1, a2);
}