//
// sub_1008F6C60 from 0x1008f6c60 to 0x1008f6d0d (173 bytes)
//
// 1 xrefs:
// > sub_1008F3770 @ 0x1008f4cb2
//
// This function is hookable on this platform (idp: pc, 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:37:58 +0000
//
char __fastcall sub_1008F6C60(__int64 a1, __m128 a2)
{
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
char *v6; // rax
v2 = *(_QWORD *)(a1 + 1088);
if ( v2 )
{
if ( !*(_BYTE *)(v2 + 497) )
{
if ( !GameLevelManager::sharedState()
|| (v3 = GameLevelManager::sharedState(),
LOBYTE(v2) = GameLevelManager::hasLikedItemFullCheck(v3, 5, *(_DWORD *)(*(_QWORD *)(a1 + 1088) + 316LL), 0),
!(_BYTE)v2) )
{
v4 = GameManager::sharedState();
if ( *(_DWORD *)(v4 + 660) == *(_DWORD *)(v4 + 664) )
{
v5 = GameLevelManager::sharedState();
GameLevelManager::updateUserScore(v5, a2);
}
v6 = LikeItemLayer::create(5u, *(_DWORD *)(*(_QWORD *)(a1 + 1088) + 316LL), 0);
*((_QWORD *)v6 + 84) = a1 + 1048;
LOBYTE(v2) = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v6 + 1312LL))(v6);
}
}
}
return v2;
}