//
// SetItemIDLayer::onClose from 0x140598ac0 to 0x140598b56 (150 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407e6288
// > ??> @ 0x14092d248
//
// 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:34 +0000
//
__int64 __fastcall SetItemIDLayer::onClose(__int64 a1, __int64 a2)
{
cocos2d::CCArray *v4; // rdi
unsigned int i; // ebx
struct cocos2d::CCObject *v6; // rax
if ( *(_QWORD *)(a1 + 680) )
{
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
cocos2d::CCArray::addObject(v4, *(struct cocos2d::CCObject **)(a1 + 680));
}
else
{
v4 = *(cocos2d::CCArray **)(a1 + 688);
}
for ( i = 0; i < cocos2d::CCArray::count(v4); ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(v4, i);
LabelGameObject::updatePreviewLabel(v6);
}
return SetupTriggerPopup::onClose(a1, a2);
}