//
// NewThreadPopup::onToggleMode from 0x757284 to 0x7572d4 (80 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:56 +0000
//
cocos2d::CCArray *__fastcall NewThreadPopup::onToggleMode(cocos2d::CCArray *this, cocos2d::CCObject *a2)
{
cocos2d::CCArray *v2; // r4
cocos2d::CCArray *v3; // r0
v2 = this;
if ( !*((_BYTE *)this + 556) )
{
this = (cocos2d::CCArray *)((*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) == 0);
if ( (cocos2d::CCArray *)*((unsigned __int8 *)v2 + 557) != this )
{
*((_BYTE *)v2 + 557) = (_BYTE)this;
if ( this )
{
v3 = *((cocos2d::CCArray **)v2 + 138);
if ( v3 )
{
if ( cocos2d::CCArray::count(v3) > 1u )
{
cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)v2 + 138));
NewThreadPopup::updateRecipientLabel(v2);
}
}
}
return NewThreadPopup::applyMode(v2);
}
}
return this;
}