//
// MyStuffPopup::onSocialPage from 0xa5d7fc to 0xa5d8d8 (220 bytes)
//
// 3 xrefs:
// > ??> @ 0xd07b0
// > MyStuffPopup::init @ 0xa560c4
// > ??> @ 0x1546268
//
// 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:00:12 +0000
//
__int64 __fastcall MyStuffPopup::onSocialPage(MyStuffPopup *this, cocos2d::CCObject *a2)
{
_BYTE *v2; // x21
int v3; // w0
cocos2d::CCApplication *v4; // x0
__int64 v6; // x0
char *v7; // x1
__int64 v8; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCApplication *v9; // [xsp+38h] [xbp+38h]
void *v10; // [xsp+40h] [xbp+40h]
v2 = *((_BYTE **)this + 83);
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
sub_A5D29C(v2, v3, &v8);
if ( (v8 & 1) != 0 )
{
v4 = v9;
if ( !v9 )
{
LABEL_3:
operator delete(v10);
return _stack_chk_guard;
}
}
else
{
v4 = (cocos2d::CCApplication *)((int)(unsigned __int8)v8 >> 1);
if ( !(_DWORD)v4 )
return _stack_chk_guard;
}
v6 = cocos2d::CCApplication::sharedApplication(v4);
v7 = (char *)&v8 + 1;
if ( (v8 & 1) != 0 )
v7 = (char *)v10;
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v6 + 104LL))(v6, v7);
if ( (v8 & 1) != 0 )
goto LABEL_3;
return _stack_chk_guard;
}