//
// GJNotificationCell::onShowBody from 0x100241860 to 0x10024196d (269 bytes)
//
// 1 xrefs:
// > GJNotificationCell::loadFromNotification @ 0x100234ad9
//
// This function is hookable on this platform (idp: pc, 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:27:18 +0000
//
void __fastcall GJNotificationCell::onShowBody(__int64 a1)
{
__int64 v1; // r14
__int64 v2; // rbx
const char *v3; // r14
size_t v4; // rax
size_t v5; // r15
char *v6; // r12
size_t v7; // r13
__int64 v8; // rax
_QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
v1 = *(_QWORD *)(a1 + 560);
if ( v1 )
{
if ( (*(_BYTE *)(v1 + 88) & 1) != 0 )
{
v2 = *(_QWORD *)(v1 + 104);
if ( (*(_BYTE *)(v1 + 112) & 1) != 0 )
goto LABEL_4;
}
else
{
v2 = v1 + 89;
if ( (*(_BYTE *)(v1 + 112) & 1) != 0 )
{
LABEL_4:
v3 = *(const char **)(v1 + 128);
goto LABEL_7;
}
}
v3 = (const char *)(v1 + 113);
LABEL_7:
v4 = strlen(v3);
if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v5 = v4;
if ( v4 >= 0x17 )
{
v7 = 26;
if ( (v4 | 7) != 0x17 )
v7 = (v4 | 7) + 1;
v6 = (char *)operator new(v7);
__p = v6;
__dst[0] = v7 + 1;
__dst[1] = v5;
}
else
{
LOBYTE(__dst[0]) = 2 * v4;
v6 = (char *)__dst + 1;
if ( !v4 )
{
LABEL_15:
v6[v5] = 0;
v8 = FLAlertLayer::create_1(0, v2, __dst, "OK", 0, 380.0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
return;
}
}
memmove(v6, v3, v5);
goto LABEL_15;
}
}