// // EditorWindowPopup::beginTouch from 0xcd9cc0 to 0xcd9ff4 (820 bytes) // // 2 xrefs: // > EditorWindowPopup::ccTouchBegan @ 0xcda0bc // > @ 0x69718 // // 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:32 +0000 // __int64 __fastcall EditorWindowPopup::beginTouch(__int64 a1, cocos2d::CCTouch *this, __int64 a3) { float v6; // s8 float v7; // s9 float v8; // s10 unsigned int v9; // w21 __int64 v11; // x0 unsigned __int8 v12; // w0 unsigned __int8 v13; // w0 unsigned __int8 v14; // w0 unsigned int v15; // w26 __int64 v16; // x0 int ResizeCorner; // w0 float v18; // s1 float v19; // s8 float v20; // s9 float v21; // s8 long double v22; // q0 unsigned __int8 v23; // w0 long double v24; // q0 ScrollableContentLayer *v25; // x0 cocos2d::CCNode *v26; // x0 __int64 v27; // x0 __int64 v28; // x0 unsigned __int8 v29; // w0 __int64 v30; // [xsp+80h] [xbp+80h] BYREF __int64 v31; // [xsp+88h] [xbp+88h] BYREF float v32[2]; // [xsp+90h] [xbp+90h] BYREF _QWORD v33[2]; // [xsp+98h] [xbp+98h] BYREF cocos2d::CCTouch::getLocation(&v30, this); v6 = *(float *)(a1 + 1056); v7 = *(float *)(a1 + 1064); v8 = *(float *)(a1 + 1060); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (const cocos2d::CCPoint *)&v30); if ( (unsigned __int8)EditorWindowPopup::touchIsOnField(a1, (const cocos2d::CCPoint *)v33) ) return 1; EditorWindowPopup::blurField((EditorWindowPopup *)a1); *(_BYTE *)(a1 + 1095) = 0; v11 = *(_QWORD *)(a1 + 552); if ( v11 ) { v12 = (*(__int64 (__fastcall **)(__int64, cocos2d::CCTouch *, __int64))(*(_QWORD *)v11 + 896LL))(v11, this, a3); v9 = v12; if ( v12 ) { *(_BYTE *)(a1 + 1093) = 1; return v9; } } EditorWindowPopup::touchRect((EditorWindowPopup *)a1, (cocos2d::CCRect *)v33); v13 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v33, (const cocos2d::CCPoint *)&v30); v9 = v13; if ( !v13 ) return v9; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (const cocos2d::CCPoint *)&v30); v14 = EditorWindowPopup::isInCloseButton(a1, (const cocos2d::CCPoint *)v33); v15 = v14; if ( v14 ) { v16 = *(_QWORD *)(a1 + 1032); *(_BYTE *)(a1 + 1094) = 1; if ( v16 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 912LL))(v16, 4294967190LL); *(_BYTE *)(a1 + 1092) = 0; return v15; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (const cocos2d::CCPoint *)&v30); ResizeCorner = EditorWindowPopup::getResizeCorner(a1, (const cocos2d::CCPoint *)v33); if ( ResizeCorner ) { *(_DWORD *)(a1 + 1096) = ResizeCorner; if ( ResizeCorner == 1 ) v18 = -1.0; else v18 = 1.0; v19 = v6 * v7; v20 = v7 * v8; v21 = v19 * v18; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v33, *(float *)(a1 + 1068) - (float)(v21 * 0.5), *(float *)(a1 + 1072) + (float)(v20 * 0.5)); cocos2d::CCPoint::operator=(a1 + 1100, v33); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v32, *(float *)(a1 + 1068) + (float)(v21 * 0.5), *(float *)(a1 + 1072) - (float)(v20 * 0.5)); cocos2d::CCPoint::operator-(v33, &v30, v32, v22); cocos2d::CCPoint::operator=(a1 + 1108, v33); *(_BYTE *)(a1 + 1092) = 0; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (const cocos2d::CCPoint *)&v30); v23 = EditorWindowPopup::isInDragHandle((float *)a1, (const cocos2d::CCPoint *)v33); v9 = v23; if ( v23 ) { *(_BYTE *)(a1 + 1080) = 1; cocos2d::CCPoint::operator-(v33, &v30, a1 + 1068, v24); cocos2d::CCPoint::operator=(a1 + 1084, v33); *(_BYTE *)(a1 + 1092) = 0; return v9; } v25 = *(ScrollableContentLayer **)(a1 + 1040); if ( !v25 || (ScrollableContentLayer::handleTouchBegan(v25, this), (v26 = *(cocos2d::CCNode **)(a1 + 1040)) == nullptr) || (cocos2d::CCNode::convertToNodeSpace(&v31, v26, (const cocos2d::CCPoint *)&v30), cocos2d::CCSize::CCSize((cocos2d::CCSize *)v32, (const cocos2d::CCSize *)(*(_QWORD *)(a1 + 1040) + 424LL)), cocos2d::CCRect::CCRect((cocos2d::CCRect *)v33, 0.0, 0.0, v32[0], v32[1]), (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v33, (const cocos2d::CCPoint *)&v31)) ) { v28 = *(_QWORD *)(a1 + 1048); if ( v28 ) { v29 = (*(__int64 (__fastcall **)(__int64, cocos2d::CCTouch *, __int64))(*(_QWORD *)v28 + 896LL))( v28, this, a3); v9 = v29; if ( v29 ) { *(_BYTE *)(a1 + 1092) = 1; return v9; } } } v9 = *(unsigned __int8 *)(a1 + 1081); *(_BYTE *)(a1 + 1092) = 0; if ( !v9 ) return 1; v27 = *(_QWORD *)(a1 + 1040); if ( v27 ) ScrollableContentLayer::handleTouchCancelled(v27, this); *(_BYTE *)(a1 + 1080) = 1; cocos2d::CCPoint::operator-(v33, &v30, a1 + 1068, v24); cocos2d::CCPoint::operator=(a1 + 1084, v33); } } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source