//
// CommunityCreditNode::init from 0xab5bc8 to 0xab5c54 (140 bytes)
//
// 2 xrefs:
// > CommunityCreditNode::create @ 0xab5cf8
// > ??> @ 0xd8940
//
// 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:58 +0000
//
__int64 __fastcall CommunityCreditNode::init(__int64 *a1, int a2, int a3, int a4, __int64 a5)
{
unsigned __int8 v6; // w0
unsigned int v7; // w20
__int64 *v8; // x0
v6 = cocos2d::CCNode::init((cocos2d::CCNode *)a1);
v7 = v6;
if ( v6 )
{
v8 = a1 + 41;
*((_DWORD *)a1 + 79) = a2;
*((_DWORD *)a1 + 80) = a3;
*((_DWORD *)a1 + 81) = a4;
if ( (__int64 *)a5 != a1 + 41 )
{
if ( (*(_BYTE *)a5 & 1) != 0 )
std::string::assign(v8, *(const void **)(a5 + 16), *(_QWORD *)(a5 + 8));
else
std::string::assign(v8, (const void *)(a5 + 1), *(_BYTE *)a5 >> 1);
}
}
return v7;
}