//
// ThreadViewPopup::createModView from 0x1400d9320 to 0x1400d93a5 (133 bytes)
//
// 3 xrefs:
// > AccountReviewPopup::onHistoryJump @ 0x1400bbd20
// > AccountReviewPopup::onJumpRow @ 0x1400bbf54
// > ??> @ 0x140914858
//
// 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:26:27 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall ThreadViewPopup::createModView(__int64 a1, __int64 a2)
{
__int64 v4; // rsi
void *v6; // [rsp+38h] [rbp+10h]
v6 = operator new(0x4D8u);
v4 = ThreadViewPopup::ThreadViewPopup((__int64)v6);
*(_BYTE *)(v4 + 783) = 1;
*(_QWORD *)(v4 + 784) = a2;
if ( (unsigned __int8)ThreadViewPopup::init(v4, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
return 0;
}
}