//
// LikeItemLayer::triggerLike from 0x1005f9260 to 0x1005f92d7 (119 bytes)
//
// 0 xrefs:
//
// 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
//
void __fastcall LikeItemLayer::triggerLike(LikeItemLayer *a1, bool a2)
{
GameLevelManager *v3; // rax
LikeItemDelegate *m_likeDelegate; // rdi
v3 = GameLevelManager::sharedState();
GameLevelManager::likeItem(v3, a1->m_itemType, a1->m_itemID, a2, a1->m_commentSourceID);
m_likeDelegate = a1->m_likeDelegate;
if ( m_likeDelegate )
((void (__fastcall *)(LikeItemDelegate *, _QWORD, _QWORD, bool))m_likeDelegate->likedItem)(
m_likeDelegate,
(unsigned int)a1->m_itemType,
(unsigned int)a1->m_itemID,
a2);
((void (__fastcall *)(LikeItemLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(LikeItemLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}