//
// ThreadOptionsPopup::create from 0x757b28 to 0x757bf4 (204 bytes)
//
// 2 xrefs:
// > GJThreadCell::onThreadOptions @ 0x42471a
// > ThreadViewPopup::onThreadOptions @ 0x757c04
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:56 +0000
//
SetupTriggerPopup *__fastcall ThreadOptionsPopup::create(
ThreadOptionsPopup *this,
GJMessageThread *a2,
ThreadViewPopup *a3,
bool a4)
{
char v6; // r5
SetupTriggerPopup *v7; // r4
int v8; // r3
int *v9; // r0
v6 = (char)a3;
v7 = (SetupTriggerPopup *)operator new(0x2E4u);
SetupTriggerPopup::SetupTriggerPopup(v7);
*(_DWORD *)v7 = &off_CF2130;
*((_DWORD *)v7 + 66) = &off_CF244C;
*((_DWORD *)v7 + 67) = &off_CF2484;
*((_DWORD *)v7 + 68) = &off_CF2490;
*((_DWORD *)v7 + 69) = &off_CF24A0;
*((_DWORD *)v7 + 70) = &off_CF24B4;
*((_DWORD *)v7 + 79) = &off_CF24CC;
*((_DWORD *)v7 + 83) = &off_CF250C;
*((_DWORD *)v7 + 110) = &off_CF251C;
*((_DWORD *)v7 + 130) = &off_CF2540;
*((_DWORD *)v7 + 131) = &off_CF254C;
*((_DWORD *)v7 + 178) = &off_CF255C;
*((_DWORD *)v7 + 179) = &off_CF259C;
*((_DWORD *)v7 + 183) = -1;
*((_DWORD *)v7 + 180) = 0;
*((_DWORD *)v7 + 181) = 0;
*((_DWORD *)v7 + 182) = 0;
*((_BYTE *)v7 + 736) = 0;
if ( ThreadOptionsPopup::init(v7, this, a2, v6) )
{
cocos2d::CCObject::autorelease(v7);
}
else
{
v8 = *(_DWORD *)v7;
v9 = (int *)v7;
v7 = nullptr;
(*(void (__fastcall **)(int *))(v8 + 8))(v9);
}
return v7;
}