//
// GJLocalScore::create from 0x806b00 to 0x806bb4 (180 bytes)
//
// 2 xrefs:
// > LevelLeaderboard::getLocalScores @ 0xa81cc4
// > ??> @ 0xc6238
//
// 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:54:45 +0000
//
__int64 __fastcall GJLocalScore::create(GJLocalScore *this, int a2)
{
int v2; // w21
__int64 v4; // x19
v2 = (int)this;
v4 = operator new(0x48u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v4);
*(_DWORD *)(v4 + 56) = 0;
*(_DWORD *)(v4 + 60) = 0;
*(_QWORD *)v4 = &off_143F340;
*(_BYTE *)(v4 + 64) = 0;
if ( (unsigned __int8)GJLocalScore::init((GJLocalScore *)v4, v2, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
return 0;
}
}