//
// GJMessagePopup::onReply from 0x4af344 to 0x4af430 (236 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 GJMessagePopup::onReply(GJMessagePopup *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // r0
GJUserMessage *v4; // r8
GameLevelManager *v5; // r0
GJWriteMessagePopup *v6; // r0
GJWriteMessagePopup_vtbl *v7; // r3
int v8; // r1
cocos2d::CCObject *v9; // [sp+4h] [bp-Ch] BYREF
_BYTE v10[4]; // [sp+8h] [bp-8h] BYREF
v9 = a2;
v3 = GameLevelManager::sharedState();
if ( !GameLevelManager::getStoredUserMessageReply(v3, a1->m_message->m_messageID) )
{
v4 = GJUserMessage::create(nullptr);
sub_775C20(&v9);
if ( sub_7748A0((int)&v9, "Re: ") == -1 )
{
sub_776584((int)v10, "Re: ");
sub_77441C(v10, &v9);
sub_775D40(&v9, v10);
sub_774008(v10);
}
sub_775C20(v10);
sub_775D40(&v4->m_title, v10);
sub_774008(v10);
v5 = GameLevelManager::sharedState();
GameLevelManager::storeUserMessageReply(v5, a1->m_message->m_messageID, v4);
sub_774008(&v9);
}
v6 = GJWriteMessagePopup::create(a1->m_message->m_accountID, a1->m_message->m_messageID);
v7 = v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6->m_noElasticity = 1;
((void (__fastcall *)(GJWriteMessagePopup *, int, int, void (__fastcall *)(FLAlertLayer *__hidden)))v7->show)(
v6,
v8,
1,
v7->show);
GJMessagePopup::onClose(a1, nullptr);
}