//
// NewThreadPopup::onToggleMode from 0x1400f0700 to 0x1400f0771 (113 bytes)
//
// 3 xrefs:
// > NewThreadPopup::init @ 0x1400ef840
// > NewThreadPopup::init @ 0x1400ef916
// > ??> @ 0x14091508c
//
// 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:26:36 +0000
//
void __fastcall NewThreadPopup::onToggleMode(__int64 a1, __int64 a2)
{
int v3; // eax
cocos2d::CCArray *v4; // rcx
if ( !*(_BYTE *)(a1 + 744) )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
if ( (v3 == 0) != *(_BYTE *)(a1 + 745) )
{
*(_BYTE *)(a1 + 745) = v3 == 0;
if ( !v3 )
{
v4 = *(cocos2d::CCArray **)(a1 + 736);
if ( v4 )
{
if ( cocos2d::CCArray::count(v4) > 1 )
{
cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(a1 + 736));
NewThreadPopup::updateRecipientLabel(a1);
}
}
}
NewThreadPopup::applyMode(a1);
}
}
}