//
// CommunityCreditNode::create from 0x970068 to 0x9701f8 (400 bytes)
//
// 73 xrefs:
// > CommunityCreditsPage::init @ 0x97066c
// > CommunityCreditsPage::init @ 0x9706b8
// > CommunityCreditsPage::init @ 0x970700
// > CommunityCreditsPage::init @ 0x970748
// > CommunityCreditsPage::init @ 0x970790
// > CommunityCreditsPage::init @ 0x9707d8
// > CommunityCreditsPage::init @ 0x970820
// > CommunityCreditsPage::init @ 0x970868
// > CommunityCreditsPage::init @ 0x9708b0
// > CommunityCreditsPage::init @ 0x9708f8
// > CommunityCreditsPage::init @ 0x970940
// > CommunityCreditsPage::init @ 0x970984
// > CommunityCreditsPage::init @ 0x9709cc
// > CommunityCreditsPage::init @ 0x970a14
// > CommunityCreditsPage::init @ 0x970a58
// > CommunityCreditsPage::init @ 0x970a9c
// > CommunityCreditsPage::init @ 0x970ae4
// > CommunityCreditsPage::init @ 0x970b28
// > CommunityCreditsPage::init @ 0x970b70
// > CommunityCreditsPage::init @ 0x970bb8
// > CommunityCreditsPage::init @ 0x970c00
// > CommunityCreditsPage::init @ 0x970c48
// > CommunityCreditsPage::init @ 0x970c90
// > CommunityCreditsPage::init @ 0x970cd8
// > CommunityCreditsPage::init @ 0x970d20
// > CommunityCreditsPage::init @ 0x970d64
// > CommunityCreditsPage::init @ 0x970dac
// > CommunityCreditsPage::init @ 0x970df4
// > CommunityCreditsPage::init @ 0x970e3c
// > CommunityCreditsPage::init @ 0x970e84
// > CommunityCreditsPage::init @ 0x970ecc
// > CommunityCreditsPage::init @ 0x970f14
// > CommunityCreditsPage::init @ 0x970f58
// > CommunityCreditsPage::init @ 0x970f9c
// > CommunityCreditsPage::init @ 0x970fe4
// > CommunityCreditsPage::init @ 0x97102c
// > CommunityCreditsPage::init @ 0x971074
// > CommunityCreditsPage::init @ 0x9710bc
// > CommunityCreditsPage::init @ 0x971100
// > CommunityCreditsPage::init @ 0x971148
// > CommunityCreditsPage::init @ 0x971190
// > CommunityCreditsPage::init @ 0x9711d8
// > CommunityCreditsPage::init @ 0x971220
// > CommunityCreditsPage::init @ 0x971268
// > CommunityCreditsPage::init @ 0x9712ac
// > CommunityCreditsPage::init @ 0x9712f0
// > CommunityCreditsPage::init @ 0x971334
// > CommunityCreditsPage::init @ 0x971378
// > CommunityCreditsPage::init @ 0x9713c0
// > CommunityCreditsPage::init @ 0x971408
// > CommunityCreditsPage::init @ 0x971450
// > CommunityCreditsPage::init @ 0x971498
// > CommunityCreditsPage::init @ 0x9714e0
// > CommunityCreditsPage::init @ 0x971524
// > CommunityCreditsPage::init @ 0x97156c
// > CommunityCreditsPage::init @ 0x9715b0
// > CommunityCreditsPage::init @ 0x9715f8
// > CommunityCreditsPage::init @ 0x971640
// > CommunityCreditsPage::init @ 0x971688
// > CommunityCreditsPage::init @ 0x9716d0
// > CommunityCreditsPage::init @ 0x971714
// > CommunityCreditsPage::init @ 0x971758
// > CommunityCreditsPage::init @ 0x97179c
// > CommunityCreditsPage::init @ 0x9717e0
// > CommunityCreditsPage::init @ 0x971828
// > CommunityCreditsPage::init @ 0x971870
// > CommunityCreditsPage::init @ 0x9718b8
// > CommunityCreditsPage::init @ 0x971900
// > CommunityCreditsPage::init @ 0x971948
// > CommunityCreditsPage::init @ 0x971990
// > CommunityCreditsPage::init @ 0x9719d4
// > CommunityCreditsPage::init @ 0x971a1c
// > ??> @ 0xc7080
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall CommunityCreditNode::create(int a1, int a2, int a3)
{
__int64 v6; // x19
_BOOL4 v7; // w22
void *v8; // x0
__int64 v9; // x1
__int64 v10; // x0
unsigned int *v12; // x2
int v13; // w1
__int64 v14; // [xsp+70h] [xbp+70h] BYREF
v6 = operator new(0x150u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v6);
*(_DWORD *)(v6 + 316) = 0;
*(_DWORD *)(v6 + 320) = 0;
*(_QWORD *)v6 = &off_11C1240;
*(_DWORD *)(v6 + 324) = 0;
*(_QWORD *)(v6 + 328) = &byte_124B6C8;
sub_D18D28(&v14);
v7 = CommunityCreditNode::init(v6, a1, a2, a3, (__int64)&v14);
v8 = (void *)(v14 - 24);
if ( (__int64 *)(v14 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v12 = (unsigned int *)(v14 - 8);
do
v13 = __ldaxr(v12);
while ( __stlxr(v13 - 1, v12) );
}
else
{
v13 = *(_DWORD *)(v14 - 8);
*(_DWORD *)(v14 - 8) = v13 - 1;
}
if ( v13 <= 0 )
operator delete(v8);
}
if ( v7 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
v9 = *(_QWORD *)v6;
v10 = v6;
v6 = 0;
(*(void (__fastcall **)(__int64))(v9 + 16))(v10);
}
return v6;
}