//
// SetupTeleportPopup::create from 0x6812b0 to 0x6814e8 (568 bytes)
//
// 2 xrefs:
// > EditorUI::editObjectSpecial @ 0x483afe
// > EditorUI::editObject @ 0x486804
//
// 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:56:02 +0000
//
int *__fastcall SetupTeleportPopup::create(
SetupTeleportPopup *this,
TeleportPortalObject *a2,
cocos2d::CCArray *a3,
bool a4,
bool a5)
{
int *v9; // r4
int v10; // r3
int *v11; // r0
v9 = (int *)operator new(0x2CCu);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v9);
v9[111] = 0;
v9[112] = 0;
v9[113] = 0;
*v9 = (int)&off_C86768;
*((_BYTE *)v9 + 456) = 0;
v9[66] = (int)&off_C86A10;
v9[115] = 0;
v9[67] = (int)&off_C86A48;
v9[116] = 0;
v9[68] = (int)&off_C86A54;
*((_BYTE *)v9 + 468) = 0;
v9[69] = (int)&off_C86A64;
*((_BYTE *)v9 + 469) = 0;
v9[70] = (int)&off_C86A78;
*((_BYTE *)v9 + 470) = 0;
v9[79] = (int)&off_C86A90;
*((_BYTE *)v9 + 471) = 0;
v9[83] = (int)&off_C86AD0;
v9[110] = (int)&off_C86AE0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v9 + 118));
v9[120] = 0;
v9[121] = 0;
v9[122] = 0;
v9[123] = -1;
*((_BYTE *)v9 + 496) = 0;
*((_BYTE *)v9 + 497) = 0;
v9[125] = -1;
*((_BYTE *)v9 + 504) = 0;
v9[127] = 0;
v9[128] = 0;
*((_BYTE *)v9 + 516) = 0;
v9[132] = 0;
v9[133] = 0;
*((_BYTE *)v9 + 536) = 0;
*((_BYTE *)v9 + 537) = 0;
v9[135] = 0;
v9[136] = 0;
v9[137] = 0;
*((_BYTE *)v9 + 552) = 0;
v9[139] = 0;
v9[140] = 0;
v9[141] = 0;
*((_BYTE *)v9 + 568) = 0;
v9[143] = 0;
v9[144] = 0;
v9[145] = 0;
v9[146] = 0;
v9[147] = 0;
v9[148] = 0;
v9[149] = 0;
v9[150] = 0;
v9[151] = 0;
v9[152] = 0;
v9[153] = 0;
v9[157] = (int)(v9 + 158);
v9[160] = (int)(v9 + 161);
v9[166] = 1065353216;
v9[177] = 10;
v9[154] = 0;
v9[155] = 0;
v9[156] = 0;
v9[158] = 0;
v9[159] = 0;
v9[161] = 0;
v9[162] = 0;
*((_BYTE *)v9 + 652) = 0;
*((_BYTE *)v9 + 653) = 0;
v9[164] = 0;
v9[165] = 0;
v9[167] = 0;
v9[168] = 0;
v9[169] = 0;
v9[170] = 0;
v9[171] = 0;
v9[172] = 0;
v9[173] = 0;
v9[174] = 0;
*((_BYTE *)v9 + 700) = 0;
v9[176] = 0;
*v9 = (int)&off_CD4E90;
v9[66] = (int)&off_CD5188;
v9[67] = (int)&off_CD51C0;
v9[68] = (int)&off_CD51CC;
v9[69] = (int)&off_CD51DC;
v9[70] = (int)&off_CD51F0;
v9[79] = (int)&off_CD5208;
v9[83] = (int)&off_CD5248;
v9[178] = 0;
v9[110] = (int)&off_CD5258;
v9[130] = (int)&off_CD527C;
v9[131] = (int)&off_CD5288;
if ( SetupTeleportPopup::init((cocos2d::CCArray **)v9, this, a2, (int)a3, a4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
}
else
{
v10 = *v9;
v11 = v9;
v9 = nullptr;
(*(void (__fastcall **)(int *))(v10 + 8))(v11);
}
return v9;
}