//
// LikeItemLayer::triggerLike from 0x140468e00 to 0x140468eb7 (183 bytes)
//
// 3 xrefs:
// > LikeItemLayer::onLike @ 0x140468de2
// > LikeItemLayer::onDislike @ 0x140468df2
// > ??> @ 0x140927fe0
//
// 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 11:32:35 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall LikeItemLayer::triggerLike(__int64 a1, unsigned __int8 a2)
{
__int64 v4; // rcx
void (__fastcall ***v5)(_QWORD, _QWORD, _QWORD, _QWORD); // rcx
__int64 v6; // rdx
void *v8; // [rsp+40h] [rbp+8h]
v4 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v8 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v8);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v4 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::likeItem(v4, *(_DWORD *)(a1 + 664), *(_DWORD *)(a1 + 668), a2, *(_DWORD *)(a1 + 672));
v5 = *(void (__fastcall ****)(_QWORD, _QWORD, _QWORD, _QWORD))(a1 + 680);
if ( v5 )
(**v5)(v5, *(unsigned int *)(a1 + 664), *(unsigned int *)(a1 + 668), a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
LOBYTE(v6) = 1;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v6);
}