//
// LikeItemLayer::triggerLike from 0x10024cf8c to 0x10024d008 (124 bytes)
//
// 2 xrefs:
// > LikeItemLayer::onLike @ 0x10024cf80
// > LikeItemLayer::onDislike @ 0x10024cf88
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall LikeItemLayer::triggerLike(LikeItemLayer *a1, bool a2)
{
_BOOL8 v2; // x20
GameLevelManager *v4; // x0
LikeItemDelegate *m_likeDelegate; // x0
v2 = a2;
v4 = GameLevelManager::sharedState();
GameLevelManager::likeItem(v4, a1->m_itemType, a1->m_itemID, v2, a1->m_commentSourceID);
m_likeDelegate = a1->m_likeDelegate;
if ( m_likeDelegate )
((void (__fastcall *)(LikeItemDelegate *, _QWORD, _QWORD, _BOOL8))m_likeDelegate->likedItem)(
m_likeDelegate,
(unsigned int)a1->m_itemType,
(unsigned int)a1->m_itemID,
v2);
((void (__fastcall *)(LikeItemLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(LikeItemLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}