//
// SetupKeyframePopup::onClose from 0xb69240 to 0xb692e4 (164 bytes)
//
// 2 xrefs:
// > ??> @ 0x7b4a8
// > ??> @ 0x14c7528
//
// This function is hookable on this platform (idp: arm, 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 13:02:16 +0000
//
__int64 __fastcall SetupKeyframePopup::onClose(SetupKeyframePopup *this, cocos2d::CCObject *a2)
{
__int64 v4; // x0
__int64 v5; // x2
int v6; // w21
__int64 v7; // x0
unsigned int *v8; // x0
unsigned int v9; // w1
__int64 *v10; // x0
__int64 *v11; // x2
__int64 i; // x1
if ( *((_BYTE *)this + 1032) )
{
v4 = *((_QWORD *)this + 128);
if ( v4 )
{
v5 = *((_QWORD *)this + 85);
v6 = *(_DWORD *)(v5 + 1464);
v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v4 + 13272), *(int *)(v5 + 1856));
if ( v7 )
{
v8 = *(unsigned int **)(v7 + 56);
v9 = *v8;
if ( *v8 )
{
v10 = *((__int64 **)v8 + 2);
v11 = &v10[v9 - 1];
if ( v10 <= v11 )
{
for ( i = *v10; *v10; i = *v10 )
{
++v10;
*(_DWORD *)(i + 1464) = v6;
*(_BYTE *)(i + 1881) = 1;
if ( v11 < v10 )
break;
}
}
}
}
}
}
return SetupTriggerPopup::onClose((GameObject **)this, a2);
}