//
// CommunityCreditNode::init from 0x637856 to 0x637898 (66 bytes)
//
// 1 xrefs:
// > CommunityCreditNode::create @ 0x637910
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:21 +0000
//
int __fastcall CommunityCreditNode::init(cocos2d::CCNode *a1, int a2, int a3, int a4, unsigned __int8 *a5)
{
int v9; // r6
int v10; // r2
const void *v11; // r1
size_t v12; // r2
v9 = cocos2d::CCNode::init(a1);
if ( v9 )
{
*((_DWORD *)a1 + 66) = a2;
*((_DWORD *)a1 + 67) = a3;
*((_DWORD *)a1 + 68) = a4;
if ( (unsigned __int8 *)((char *)a1 + 276) != a5 )
{
v10 = *a5;
if ( (v10 & 1) != 0 )
{
v11 = *((const void **)a5 + 2);
v12 = *((_DWORD *)a5 + 1);
}
else
{
v11 = a5 + 1;
v12 = v10 >> 1;
}
std::string::assign((_DWORD *)a1 + 69, v11, v12);
}
}
return v9;
}