//
// NewThreadPopup::create from 0x757040 to 0x757180 (320 bytes)
//
// 3 xrefs:
// > GJMessagePopup::onNewThread @ 0x5e1268
// > MessageThreadsPage::onNewThread @ 0x7571c6
// > ThreadOpenHelper::check @ 0x75724c
//
// 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
//
int __fastcall NewThreadPopup::create(int a1, unsigned __int8 *a2, unsigned __int8 *a3)
{
int v6; // r4
int v7; // r3
int v8; // r0
v6 = operator new(0x2A0u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v6);
*(_DWORD *)v6 = &off_CF1CC8;
*(_DWORD *)(v6 + 264) = &off_CF1FA4;
*(_DWORD *)(v6 + 268) = &off_CF1FDC;
*(_DWORD *)(v6 + 272) = &off_CF1FE8;
*(_DWORD *)(v6 + 276) = &off_CF1FF8;
*(_DWORD *)(v6 + 280) = &off_CF200C;
*(_DWORD *)(v6 + 316) = &off_CF2024;
*(_DWORD *)(v6 + 332) = &off_CF2064;
*(_DWORD *)(v6 + 440) = &off_CF2074;
*(_DWORD *)(v6 + 520) = &off_CF2098;
*(_DWORD *)(v6 + 524) = &off_CF20D8;
*(_DWORD *)(v6 + 528) = &off_CF2104;
*(_DWORD *)(v6 + 532) = &off_CF2118;
*(_BYTE *)(v6 + 557) = 1;
*(_DWORD *)(v6 + 536) = 0;
*(_DWORD *)(v6 + 540) = 0;
*(_DWORD *)(v6 + 544) = 0;
*(_DWORD *)(v6 + 548) = 0;
*(_DWORD *)(v6 + 552) = 0;
*(_BYTE *)(v6 + 556) = 0;
*(_DWORD *)(v6 + 560) = 0;
*(_DWORD *)(v6 + 564) = 0;
*(_DWORD *)(v6 + 568) = 0;
*(_DWORD *)(v6 + 572) = 0;
*(_DWORD *)(v6 + 576) = 0;
*(_DWORD *)(v6 + 580) = 0;
*(_DWORD *)(v6 + 584) = 0;
*(_DWORD *)(v6 + 588) = 0;
*(_DWORD *)(v6 + 592) = 0;
*(_DWORD *)(v6 + 596) = 0;
*(_DWORD *)(v6 + 600) = 0;
*(_DWORD *)(v6 + 604) = 0;
*(_DWORD *)(v6 + 608) = 0;
*(_DWORD *)(v6 + 612) = 0;
*(_DWORD *)(v6 + 616) = 0;
*(_DWORD *)(v6 + 640) = 0;
*(_DWORD *)(v6 + 620) = 0;
*(_DWORD *)(v6 + 624) = 0;
*(_DWORD *)(v6 + 628) = 0;
*(_DWORD *)(v6 + 632) = 0;
*(_DWORD *)(v6 + 636) = 0;
*(_QWORD *)(v6 + 648) = 0;
*(_DWORD *)(v6 + 656) = 0;
*(_DWORD *)(v6 + 660) = 0;
*(_DWORD *)(v6 + 664) = 0;
if ( NewThreadPopup::init(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
v7 = *(_DWORD *)v6;
v8 = v6;
v6 = 0;
(*(void (__fastcall **)(int))(v7 + 8))(v8);
}
return v6;
}