//
// MessageThreadsPage::onNewThread from 0xc7ecb8 to 0xc7ed7c (196 bytes)
//
// 3 xrefs:
// > ??> @ 0xd86e8
// > MessageThreadsPage::init @ 0xc75874
// > ??> @ 0x1546770
//
// 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:37 +0000
//
__int64 __fastcall MessageThreadsPage::onNewThread(MessageThreadsPage *this, cocos2d::CCObject *a2)
{
__int64 v2; // x0
_QWORD v4[2]; // [xsp+28h] [xbp+28h] BYREF
void *v5; // [xsp+38h] [xbp+38h]
_QWORD v6[2]; // [xsp+40h] [xbp+40h] BYREF
void *v7; // [xsp+50h] [xbp+50h]
v4[0] = 0;
v4[1] = 0;
v5 = nullptr;
v6[0] = 0;
v6[1] = 0;
v7 = nullptr;
v2 = NewThreadPopup::create(0, (unsigned __int8 *)v4, (__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
if ( (v4[0] & 1) != 0 )
operator delete(v5);
return _stack_chk_guard;
}