//
// sub_1000CC360 from 0x1000cc360 to 0x1000cc414 (180 bytes)
//
// 6 xrefs:
// > LevelInfoLayer::updateSideButtons @ 0x10002bcf4
// > GameLevelManager::likeItem @ 0x1000cbeb0
// > CommentCell::onLike @ 0x100138764
// > LevelListLayer::updateSideButtons @ 0x1002e2330
// > sub_1004D24B0 @ 0x1004d24ec
// > sub_1004D254C @ 0x1004d2598
//
// 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 10:58:52 +0000
//
__int64 __fastcall sub_1000CC360(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
if ( (_DWORD)a2 == 3 )
{
if ( (sub_1000CC95C(a1, a2, a3, 1, a4) & 1) == 0 )
return sub_1000CC95C(a1, 3, a3, 0, a4);
return 1;
}
if ( (GameLevelManager::hasLikedItem(a1, a2, a3, 1, a4) & 1) != 0 )
return 1;
return GameLevelManager::hasLikedItem(a1, a2, a3, 0, a4);
}