//
// MemberListPopup::refreshPolicyBtn from 0xc67294 to 0xc673f0 (348 bytes)
//
// 4 xrefs:
// > MemberListPopup::init @ 0xc6af10
// > MemberListPopup::threadUpdateFinished @ 0xc7ce78
// > MemberListPopup::threadUpdateFinished @ 0xc7cea4
// > ??> @ 0xe3da0
//
// 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:25 +0000
//
__int64 __fastcall MemberListPopup::refreshPolicyBtn(MemberListPopup *this)
{
__int64 v2; // x0
GJAccountManager *v3; // x0
int v4; // w21
__int64 v5; // x0
const char *v6; // x6
char *v8; // x0
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x22
float v12; // s2
float v13; // s0
float v14; // s3
void (__fastcall *v15)(__int64, _BYTE *); // x19
_BYTE v16[8]; // [xsp+40h] [xbp+40h] BYREF
v2 = *((_QWORD *)this + 104);
if ( v2 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 520LL))(v2);
*((_QWORD *)this + 104) = 0;
}
v3 = *((GJAccountManager **)this + 100);
v4 = *((_DWORD *)v3 + 50);
v5 = GJAccountManager::sharedState(v3);
if ( v4 == *(_DWORD *)(v5 + 352) - *(_DWORD *)(v5 + 356) )
{
if ( *(_DWORD *)(*((_QWORD *)this + 100) + 208LL) == 1 )
v8 = "Adds: Owner Only";
else
v8 = "Adds: Anyone";
v9 = ButtonSprite::create(
(ButtonSprite *)v8,
(const char *)&qword_58 + 2,
0,
1,
0.4,
"bigFont.fnt",
"GJ_button_04.png",
v6,
26.0);
v10 = CCMenuItemSpriteExtra::create(v9, 0, (__int64)this, (__int64)MemberListPopup::onAddPolicy, 0);
*((_QWORD *)this + 104) = v10;
CCMenuItemSpriteExtra::setSizeMult(v10, 1.1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 104));
v11 = *((_QWORD *)this + 104);
v12 = *((float *)this + 168);
v13 = *((float *)this + 166);
v14 = *((float *)this + 165);
v15 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v11 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v14 + 83.0, (float)(v13 - (float)(v12 * 0.5)) + 24.0);
v15(v11, v16);
}
return _stack_chk_guard;
}