//
// EditorWindowPopup::applyWindowSize from 0xcd8864 to 0xcd895c (248 bytes)
//
// 3 xrefs:
// > EditorWindowPopup::ccTouchMoved @ 0xcd8fa4
// > EditorWindowPopup::initWindow @ 0xcd9788
// > ??> @ 0x100858
//
// This function is hookable on this platform (idp: arm, 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 13:06:31 +0000
//
__int64 __fastcall EditorWindowPopup::applyWindowSize(EditorWindowPopup *this)
{
__int64 v2; // x21
void (__fastcall *v3)(__int64, _BYTE *); // x22
float v4; // s0
__int64 v5; // x0
float v6; // s1
ScrollableContentLayer *v7; // x22
_BYTE v9[8]; // [xsp+48h] [xbp+48h] BYREF
_BYTE v10[8]; // [xsp+50h] [xbp+50h] BYREF
v2 = *((_QWORD *)this + 128);
if ( v2 )
{
v3 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v2 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v10, *((float *)this + 264), *((float *)this + 265));
v3(v2, v10);
}
v4 = *((float *)this + 264);
v5 = *((_QWORD *)this + 130);
v6 = *((float *)this + 265);
*((float *)this + 183) = v4;
*((float *)this + 184) = v6;
if ( v5 )
{
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v9, v4, v6 - 4.0);
v7 = *((ScrollableContentLayer **)this + 130);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v10, (const cocos2d::CCSize *)v9);
ScrollableContentLayer::setViewSize(v7, (__int64)v10);
}
EditorWindowPopup::layoutWindow(this);
if ( *((_DWORD *)this + 279) == 1 )
(*(void (__fastcall **)(EditorWindowPopup *))(*(_QWORD *)this + 1520LL))(this);
return _stack_chk_guard;
}