//
// GJNotificationCell::onShowBody from 0x736574 to 0x7366c8 (340 bytes)
//
// 3 xrefs:
// > ??> @ 0x9d510
// > GJNotificationCell::loadFromNotification @ 0x74aa7c
// > ??> @ 0x1544578
//
// 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 12:52:39 +0000
//
__int64 __fastcall GJNotificationCell::onShowBody(GJNotificationCell *this, cocos2d::CCObject *a2)
{
__int64 v2; // x1
cocos2d::CCLabelBMFont *v3; // x24
const char *v4; // x19
size_t v5; // x0
size_t v6; // x20
unsigned __int64 v7; // x0
char *v8; // x3
__int64 v9; // x0
__int64 v11; // [xsp+40h] [xbp+40h] BYREF
size_t v12; // [xsp+48h] [xbp+48h]
void *v13; // [xsp+50h] [xbp+50h]
v2 = *((_QWORD *)this + 70);
if ( !v2 )
return _stack_chk_guard;
v3 = (cocos2d::CCLabelBMFont *)(v2 + 89);
if ( (*(_BYTE *)(v2 + 88) & 1) != 0 )
v3 = *(cocos2d::CCLabelBMFont **)(v2 + 104);
v4 = (const char *)(v2 + 113);
if ( (*(_BYTE *)(v2 + 112) & 1) != 0 )
v4 = *(const char **)(v2 + 128);
v11 = 0;
v12 = 0;
v13 = nullptr;
v5 = strlen(v4);
v6 = v5;
if ( v5 > 0xFFFFFFFFFFFFFFEFLL )
sub_62C05C();
if ( v5 > 0x16 )
{
v7 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v11 = v7 | 1;
v8 = (char *)operator new(v7);
v13 = v8;
v12 = v6;
LABEL_9:
v8 = (char *)memcpy(v8, v4, v6);
goto LABEL_10;
}
LOBYTE(v11) = 2 * v5;
v8 = (char *)&v11 + 1;
if ( v5 )
goto LABEL_9;
LABEL_10:
v8[v6] = 0;
v9 = FLAlertLayer::create(0, v3, (char *)&v11, (ButtonSprite *)"OK", nullptr, 380.0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
if ( (v11 & 1) != 0 )
operator delete(v13);
return _stack_chk_guard;
}