//
// sub_1003DC170 from 0x1003dc170 to 0x1003dc209 (153 bytes)
//
// 1 xrefs:
// > ??> @ 0x100931628
//
// 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
//
char __fastcall sub_1003DC170(__int64 a1, cocos2d::CCObject *a2, const char *a3)
{
LevelLeaderboard *v4; // r14
char result; // al
cocos2d::CCObject *v6; // rdi
v4 = (LevelLeaderboard *)(a1 - 632);
result = LevelLeaderboard::isCorrect((LevelLeaderboard *)(a1 - 632), a3);
if ( result )
{
v6 = *(cocos2d::CCObject **)(a1 + 32);
if ( v6 )
cocos2d::CCObject::release(v6);
*(_QWORD *)(a1 + 32) = a2;
cocos2d::CCObject::retain(a2);
LevelLeaderboard::setupLeaderboard(v4, *(cocos2d::CCArray **)(a1 + 32));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 48) + 328LL))(*(_QWORD *)(a1 + 48), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 56) + 328LL))(*(_QWORD *)(a1 + 56), 0);
return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 64) + 328LL))(
*(_QWORD *)(a1 + 64),
*(_DWORD *)(a1 + 24) != 3);
}
return result;
}