// // EditorWindowPopup::onClose from 0x78d2e4 to 0x78d450 (364 bytes) // // 1 xrefs: // > EmotePickerPopup::onClose @ 0x7787dc // // 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:38 +0000 // int __fastcall EditorWindowPopup::onClose(EditorWindowPopup *this, cocos2d::CCObject *a2) { EditorUI *v4; // r0 GameManager *v5; // r0 int v6; // r3 int v7; // s21 int v8; // s20 int v9; // s19 int v10; // s18 int v11; // s17 int v12; // s16 int v13; // r10 char v14; // r9 int v15; // r0 int v16; // r3 _DWORD *v17; // r5 int v18; // r11 int v19; // r2 _DWORD *v20; // r6 _DWORD *v21; // r6 _DWORD *v22; // r5 int v23; // r3 int v24; // r3 int v26; // [sp+4h] [bp-20h] _BYTE v27[8]; // [sp+Ch] [bp-18h] BYREF _DWORD v28[2]; // [sp+14h] [bp-10h] BYREF v4 = *((EditorUI **)this + 178); if ( v4 ) EditorUI::windowClosed(v4, this); EditorWindowPopup::dismissDropdowns((int)this); if ( *((_DWORD *)this + 207) ) { v5 = (GameManager *)EditorWindowPopup::syncWindowCenter(this); if ( *((_BYTE *)this + 470) ) { EditorWindowPopup::contentCenter((EditorWindowPopup *)v27); cocos2d::CCPoint::operator+(v28, (char *)this + 472, v27); v5 = (GameManager *)cocos2d::CCPoint::operator=((char *)this + 744, v28); } v6 = *((_DWORD *)this + 181); v7 = *((_DWORD *)this + 186); v8 = *((_DWORD *)this + 187); v9 = *((_DWORD *)this + 183); v10 = *((_DWORD *)this + 184); v11 = *((_DWORD *)this + 185); if ( v6 ) v12 = *(_DWORD *)(v6 + 336); else v12 = 0; v13 = *((_DWORD *)this + 208); v14 = *((_BYTE *)this + 836); v15 = GameManager::sharedState(v5); v16 = *((_DWORD *)this + 207); v17 = *(_DWORD **)(v15 + 896); v18 = v15; if ( v17 ) { while ( 1 ) { v19 = v17[4]; if ( v16 >= v19 ) { if ( v19 >= v16 ) { v28[0] = v17; v21 = v28; goto LABEL_19; } v20 = (_DWORD *)v17[1]; if ( !v20 ) { v28[0] = v17; v21 = v17 + 1; goto LABEL_19; } } else { v20 = (_DWORD *)*v17; if ( !*v17 ) { v28[0] = v17; v21 = v17; goto LABEL_19; } } v17 = v20; } } v21 = (_DWORD *)(v15 + 896); v28[0] = v15 + 896; LABEL_19: v22 = (_DWORD *)*v21; if ( !*v21 ) { v26 = v16; v22 = (_DWORD *)operator new(0x34u); v22[4] = v26; memset(v22 + 5, 0, 0x20u); *((_BYTE *)v22 + 48) = 0; v22[9] = 1065353216; v23 = v28[0]; *v22 = 0; v22[1] = 0; v22[2] = v23; *v21 = v22; v24 = **(_DWORD **)(v18 + 892); if ( v24 ) *(_DWORD *)(v18 + 892) = v24; std::__tree_balance_after_insert *>(*(_DWORD **)(v18 + 896), (_DWORD *)*v21); ++*(_DWORD *)(v18 + 900); } v22[11] = v13; *((_BYTE *)v22 + 48) = v14; v22[6] = v8; v22[9] = v11; v22[5] = v7; v22[7] = v9; v22[10] = v12; v22[8] = v10; } return SetupTriggerPopup::onClose(this, a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source