//
// MemberListPopup::onAddPolicy from 0x74b24c to 0x74b2d8 (140 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:46 +0000
//
GameLevelManager *__fastcall MemberListPopup::onAddPolicy(MemberListPopup *this, cocos2d::CCObject *a2, int a3, int a4)
{
GameLevelManager *result; // r0
int v6; // r0
int v7; // r3
const char *v8; // r7
GameManager *v9; // r8
const __int16 *v10; // r1
int updated; // r7
MemberListPopup *v12; // [sp+0h] [bp-10h] BYREF
cocos2d::CCObject *v13; // [sp+4h] [bp-Ch]
int v14; // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v12 = this;
v13 = a2;
v14 = a3;
v15 = a4;
result = (GameLevelManager *)MemberListPopup::opPending(this);
if ( !result )
{
v6 = GameLevelManager::sharedState(nullptr);
v7 = *((_DWORD *)this + 152);
v8 = *(const char **)(v7 + 52);
v9 = (GameManager *)v6;
if ( *(_DWORD *)(v7 + 140) == 1 )
v10 = (const __int16 *)"0";
else
v10 = a1i2r3e45s789g;
v12 = nullptr;
v13 = nullptr;
v14 = 0;
std::string::__init((int *)&v12, v10, 1u);
updated = GameLevelManager::updateThread(v9, v8, 13, (unsigned __int8 *)&v12);
result = (GameLevelManager *)std::string::~string((int)&v12);
if ( updated )
{
*((_BYTE *)this + 632) = 1;
result = (GameLevelManager *)GameLevelManager::sharedState(result);
*((_DWORD *)result + 210) = (char *)this + 596;
}
}
return result;
}