//
// SetupAreaTintTriggerPopup::onClose from 0xb3b818 to 0xb3b8f0 (216 bytes)
//
// 3 xrefs:
// > ??> @ 0x68f08
// > ??> @ 0x14ba7e8
// > ??> @ 0x14bb838
//
// 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:01:48 +0000
//
__int64 __fastcall SetupAreaTintTriggerPopup::onClose(SetupAreaTintTriggerPopup *this, cocos2d::CCObject *a2)
{
__int64 v4; // x0
int v5; // w3
int v6; // w2
char v7; // w4
int v8; // w1
cocos2d::CCArray *v9; // x0
unsigned int v10; // w20
__int64 v11; // x0
int v12; // w3
int v13; // w2
char v14; // w4
int v15; // w1
bool v16; // cf
unsigned int v17; // w1
if ( *((_BYTE *)this + 1064) )
{
v4 = *((_QWORD *)this + 85);
if ( v4 )
{
v5 = *((_DWORD *)this + 262);
v6 = *((_DWORD *)this + 263);
v7 = *((_BYTE *)this + 1061);
v8 = *((_DWORD *)this + 264);
*(_BYTE *)(v4 + 1624) = *((_BYTE *)this + 1060);
*(_BYTE *)(v4 + 1625) = v7;
*(_DWORD *)(v4 + 1612) = v5;
*(_DWORD *)(v4 + 1616) = v6;
*(_DWORD *)(v4 + 1620) = v8;
}
else
{
v9 = *((cocos2d::CCArray **)this + 86);
if ( v9 )
{
v10 = 0;
while ( 1 )
{
v16 = v10 >= (unsigned int)cocos2d::CCArray::count(v9);
v17 = v10++;
if ( v16 )
break;
v11 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v17);
v12 = *((_DWORD *)this + 262);
v13 = *((_DWORD *)this + 263);
v14 = *((_BYTE *)this + 1061);
v15 = *((_DWORD *)this + 264);
*(_BYTE *)(v11 + 1624) = *((_BYTE *)this + 1060);
*(_BYTE *)(v11 + 1625) = v14;
*(_DWORD *)(v11 + 1612) = v12;
*(_DWORD *)(v11 + 1616) = v13;
*(_DWORD *)(v11 + 1620) = v15;
v9 = *((cocos2d::CCArray **)this + 86);
}
}
}
}
return SetupTriggerPopup::onClose((GameObject **)this, a2);
}