//
// sub_749E58 from 0x749e58 to 0x74a074 (540 bytes)
//
// 2 xrefs:
// > GJNotificationCell::loadFromNotification @ 0x74a250
// > GJNotificationCell::loadFromNotification @ 0x74a2f4
//
// 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:50 +0000
//
__int64 __fastcall sub_749E58(__int64 *a1, __int64 *a2)
{
__int64 v4; // x0
cocos2d::CCArray *v5; // x0
__int64 v6; // x0
const char *v7; // x0
size_t i; // x22
__int64 v9; // x0
cocos2d::CCArray *v10; // x0
size_t v11; // x2
char *v12; // x1
__int64 v14; // [xsp+50h] [xbp+50h] BYREF
size_t v15; // [xsp+58h] [xbp+58h]
void *v16; // [xsp+60h] [xbp+60h]
__int64 v17; // [xsp+68h] [xbp+68h] BYREF
size_t v18; // [xsp+70h] [xbp+70h]
void *v19; // [xsp+78h] [xbp+78h]
__int64 v20; // [xsp+80h] [xbp+80h] BYREF
size_t v21; // [xsp+88h] [xbp+88h]
void *v22; // [xsp+90h] [xbp+90h]
v4 = a1[76];
if ( !v4 )
return 0;
v5 = *(cocos2d::CCArray **)(v4 + 648);
if ( !v5 || (int)cocos2d::CCArray::count(v5) <= 1 )
return 0;
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1[76] + 648), 0);
v7 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 944LL))(v6);
v14 = 0;
v15 = 0;
v16 = nullptr;
for ( i = strlen(v7); i > 4; i -= 4LL )
{
GameToolbox::singleLineSnippet((__int64)a2, i, (__int64)&v17);
if ( (v14 & 1) != 0 )
{
*(_BYTE *)v16 = 0;
v15 = 0;
}
else
{
LOWORD(v14) = 0;
}
std::string::reserve(&v14, 0);
v20 = 0;
v14 = v17;
v15 = v18;
v16 = v19;
v21 = 0;
v22 = nullptr;
if ( (v17 & 1) != 0 )
{
std::string::__init(&v20, v19, v15);
}
else
{
v20 = v17;
v21 = v18;
v22 = v19;
}
TextArea::setString(a1, (char *)&v20);
if ( (v20 & 1) != 0 )
operator delete(v22);
v9 = a1[76];
if ( !v9 )
break;
v10 = *(cocos2d::CCArray **)(v9 + 648);
if ( !v10 )
break;
if ( (int)cocos2d::CCArray::count(v10) <= 1 )
break;
}
if ( (v14 & 1) != 0 )
{
v11 = v15;
if ( !v15 )
goto LABEL_26;
v12 = (char *)v16;
}
else
{
LODWORD(v11) = (int)(unsigned __int8)v14 >> 1;
if ( !(_DWORD)v11 )
return 1;
v11 = (int)v11;
v12 = (char *)&v14 + 1;
}
std::string::assign(a2, v12, v11);
if ( (v14 & 1) == 0 )
return 1;
LABEL_26:
operator delete(v16);
return 1;
}