// // EditorWindowPopup::clampWindowCenter from 0x78c25c to 0x78c34e (242 bytes) // // 4 xrefs: // > EditorWindowPopup::ccTouchMoved @ 0x78c5da // > EditorWindowPopup::ccTouchEnded @ 0x78c6f4 // > EditorWindowPopup::ccTouchCancelled @ 0x78c7d2 // > EditorWindowPopup::initWindow @ 0x78cc9e // // 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 // cocos2d::CCDirector *__fastcall EditorWindowPopup::clampWindowCenter(cocos2d::CCDirector *a1, int a2, float *a3) { float v5; // s15 int v6; // r3 float v7; // s18 float v8; // s17 float v9; // s16 cocos2d::CCDirector *v10; // r0 float v11; // r0 float v12; // s17 float v13; // s16 cocos2d::CCDirector *v14; // r0 float v15; // s20 float v16; // s19 cocos2d::CCDirector *v17; // r0 float v18; // r0 float v19; // s18 float v20; // s21 cocos2d::CCDirector *v21; // r0 float v22; // r0 float v23; // s21 float v24; // s18 float v25; // s15 float v26; // s17 v5 = *(float *)(a2 + 740); v6 = *(_DWORD *)(a2 + 712); v7 = v5 * *(float *)(a2 + 732); v8 = v5 * *(float *)(a2 + 736); if ( v6 ) v9 = *(float *)(v6 + 632); else v9 = 0.0; v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); v11 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v10)); v12 = v8 * 0.5; v13 = (float)((float)((float)(v11 + v9) + 10.0) - v12) + 6.0; v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v11)); v15 = v7 * 0.3; v16 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v14)); v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v16)); v18 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v17)); v19 = v7 * 0.5; v20 = v18 - v19; v21 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v18)); v22 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v21)); v23 = v20 + v15; if ( *a3 >= v23 ) { v24 = (float)(v22 + v19) - v15; if ( *a3 > v24 ) *a3 = v24; } else { *a3 = v23; } v25 = a3[1]; if ( v25 >= v13 ) { v26 = v16 - v12; if ( v25 > v26 ) a3[1] = v26; } else { a3[1] = v13; } cocos2d::CCPoint::CCPoint(a1, (const cocos2d::CCPoint *)a3); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source