//
// NewThreadPopup::onToggleMode from 0xc7ee40 to 0xc7eec4 (132 bytes)
//
// 4 xrefs:
// > ??> @ 0xae1f0
// > NewThreadPopup::init @ 0xc7dacc
// > NewThreadPopup::init @ 0xc7db7c
// > ??> @ 0x1544f48
//
// 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:05:38 +0000
//
__int64 __fastcall NewThreadPopup::onToggleMode(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
cocos2d::CCArray *v3; // x0
if ( !*(_BYTE *)(this + 736) )
{
v2 = this;
this = (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == 0;
if ( *(unsigned __int8 *)(v2 + 737) != (_DWORD)this )
{
*(_BYTE *)(v2 + 737) = this;
if ( (_DWORD)this )
{
v3 = *(cocos2d::CCArray **)(v2 + 728);
if ( v3 )
{
if ( (unsigned int)cocos2d::CCArray::count(v3) > 1 )
{
cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(v2 + 728));
NewThreadPopup::updateRecipientLabel((NewThreadPopup *)v2);
}
}
}
return NewThreadPopup::applyMode((NewThreadPopup *)v2);
}
}
return this;
}