//
// ThreadOptionsPopup::onDismissRemoved from 0x1400f51e0 to 0x1400f5371 (401 bytes)
//
// 2 xrefs:
// > ThreadOptionsPopup::init @ 0x1400f4902
// > ??> @ 0x14091520c
//
// 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:38 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall ThreadOptionsPopup::onDismissRemoved(__int64 a1)
{
__int64 v1; // rdi
__int64 *v2; // rbx
__int64 v3; // rax
__int128 v5; // [rsp+50h] [rbp-48h] BYREF
__int64 v6; // [rsp+60h] [rbp-38h]
__int64 v7; // [rsp+68h] [rbp-30h]
_BYTE v8[32]; // [rsp+70h] [rbp-28h] BYREF
void *v9; // [rsp+B0h] [rbp+18h]
v1 = a1 + 1008;
if ( !a1 )
v1 = 0;
v5 = 0;
*(_QWORD *)&v5 = sub_14003D460(0x60u);
v6 = 80;
v7 = 95;
strcpy((char *)v5, "Remove this group chat?\nYou will no longer be able to read or report it.");
v9 = operator new(0x298u);
v2 = (__int64 *)FLAlertLayer::FLAlertLayer((__int64)v9);
if ( v2 )
{
v3 = sub_14003F4F0((__int64)v8, (__int64)&v5);
if ( FLAlertLayer::init(
(cocos2d::CCLayerColor *)v2,
v1,
"Remove Group Chat",
v3,
(__int64)"Back",
(__int64)"Remove",
380.0,
0,
0,
1.0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(__int64 *, __int64))(*v2 + 8))(v2, 1);
v2 = nullptr;
}
}
sub_14003D310((__int64)&v5);
(*(void (__fastcall **)(__int64 *, __int64))(*v2 + 64))(v2, 13);
ButtonSprite::updateBGImage(v2[77], "GJ_button_06.png");
return (*(__int64 (__fastcall **)(__int64 *))(*v2 + 1064))(v2);
}