//
// MemberListPopup::onTransferOwner from 0xc6ea90 to 0xc6ec50 (448 bytes)
//
// 3 xrefs:
// > ??> @ 0x606d0
// > MemberListPopup::buildRows @ 0xc679d0
// > ??> @ 0x1542450
//
// 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:29 +0000
//
__int64 __fastcall MemberListPopup::onTransferOwner(MemberListPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x20
char v4; // w0
char v5; // w0
__int64 v6; // x0
__int64 v7; // x1
char *v8; // x1
cocos2d::CCString *v9; // x0
size_t v10; // x0
__int64 v11; // x20
char *CString; // [xsp+38h] [xbp+38h]
__int64 v14; // [xsp+48h] [xbp+48h] BYREF
__int64 v15; // [xsp+50h] [xbp+50h]
char *v16; // [xsp+58h] [xbp+58h]
__int64 v17[2]; // [xsp+60h] [xbp+60h] BYREF
void *v18; // [xsp+70h] [xbp+70h]
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 640LL))(a2);
v4 = MemberListPopup::opPending(this);
if ( v3 && !v4 )
{
*((_DWORD *)this + 218) = *(_DWORD *)(v3 + 376);
v14 = 0;
v5 = *(_BYTE *)(v3 + 320);
v15 = 0;
v16 = nullptr;
if ( (v5 & 1) != 0 )
{
std::string::__init(&v14, *(void **)(v3 + 336), *(_QWORD *)(v3 + 328));
}
else
{
v6 = *(_QWORD *)(v3 + 320);
v7 = *(_QWORD *)(v3 + 328);
v16 = *(char **)(v3 + 336);
v14 = v6;
v15 = v7;
}
v8 = (char *)&v14 + 1;
if ( (v14 & 1) != 0 )
v8 = v16;
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Make %s the owner of this group chat?\n"
"Only the owner can kick members.",
v8);
CString = (char *)cocos2d::CCString::getCString(v9);
v17[0] = 0;
v17[1] = 0;
v18 = nullptr;
v10 = strlen(CString);
std::string::__init(v17, CString, v10);
v11 = FLAlertLayer::create(
(__int64)this + 792,
(cocos2d::CCLabelBMFont *)"Transfer Ownership",
(char *)v17,
(ButtonSprite *)"Back",
(ButtonSprite *)"Transfer",
0,
380.0,
0.0,
1.0);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
if ( (v14 & 1) != 0 )
operator delete(v16);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 72LL))(v11, 5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 1312LL))(v11);
}
return _stack_chk_guard;
}