//
// EditorWindowPopup::layoutWindow from 0x78be50 to 0x78bf52 (258 bytes)
//
// 3 xrefs:
// > EditorWindowPopup::moveWindowTo @ 0x78bf6a
// > EditorWindowPopup::applyWindowSize @ 0x78bfe8
// > EditorWindowPopup::initWindow @ 0x78cb5c
//
// 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:59:37 +0000
//
int __fastcall EditorWindowPopup::layoutWindow(EditorWindowPopup *this)
{
int v2; // r8
void (__fastcall *v3)(int, _BYTE *); // r9
int v4; // r0
int v5; // r7
void (__fastcall *v6)(int, _BYTE *); // r8
int v7; // r7
void (__fastcall *v8)(int, _BYTE *); // r8
float v10; // [sp+4h] [bp+0h] BYREF
float v11; // [sp+8h] [bp+4h]
_BYTE v12[8]; // [sp+Ch] [bp+8h] BYREF
EditorWindowPopup::contentCenter((EditorWindowPopup *)&v10);
FLAlertLayer::cancelKeyboardSlide(this);
v2 = *((_DWORD *)this + 115);
v3 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v2 + 92);
cocos2d::CCPoint::operator-(v12, (char *)this + 744, &v10);
v3(v2, v12);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 80))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 185));
v4 = *((_DWORD *)this + 179);
if ( v4 )
(*(void (__fastcall **)(int, float *))(*(_DWORD *)v4 + 92))(v4, &v10);
v5 = *((_DWORD *)this + 181);
if ( v5 )
{
v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v12,
v10 - (float)(*((float *)this + 183) * 0.5),
(float)(v11 - (float)(*((float *)this + 184) * 0.5)) + 2.0);
v6(v5, v12);
}
v7 = *((_DWORD *)this + 180);
if ( v7 )
{
v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v7 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v12,
(float)(v10 - (float)(*((float *)this + 183) * 0.5)) + 4.0,
(float)(v11 + (float)(*((float *)this + 184) * 0.5)) - 4.0);
v8(v7, v12);
}
return EditorWindowPopup::dismissDropdowns((int)this);
}