// // EditorUI::ccTouchMoved from 0xbd5940 to 0xbd5fdc (1692 bytes) // // 3 xrefs: // > `non-virtual thunk to'EditorUI::ccTouchMoved @ 0xbd5fe8 // > @ 0xa8dc0 // > @ 0x14370f8 // // 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:03:40 +0000 // __int64 __fastcall EditorUI::ccTouchMoved(__int64 a1, cocos2d::CCTouch *a2, __int64 a3) { int v5; // w3 __int64 v7; // x4 const cocos2d::CCPoint *v9; // x25 cocos2d *v10; // x24 int v11; // w0 __int64 v12; // x27 void (__fastcall *v13)(__int64, __int64 *); // x28 long double v14; // q0 const cocos2d::CCPoint *v15; // x2 float v16; // s0 float v17; // s1 float v18; // s0 __int64 v19; // x3 const cocos2d::CCPoint *v20; // x2 long double v21; // q0 EditorSFXManager *v22; // x0 GameManager *v23; // x0 EditorSFXManager *v24; // x0 unsigned int v25; // w22 unsigned int v26; // w1 __int64 v27; // x24 long double v28; // q0 __int64 v29; // x21 void (__fastcall *v30)(__int64, __int64 *); // x22 __int64 v31; // x0 __int64 v32; // x0 void (__fastcall *v33)(__int64, __int64 *); // x2 const cocos2d::CCPoint *v34; // x2 long double v35; // q0 float v36; // s0 float v37; // s0 const cocos2d::CCPoint *v38; // x0 __int64 v39; // x22 __int64 v40; // x21 void (__fastcall *v41)(__int64, __int64 *); // x22 __int64 v42; // x0 __int64 v43; // [xsp+60h] [xbp+60h] float v44; // [xsp+60h] [xbp+60h] __int64 v45; // [xsp+70h] [xbp+70h] BYREF _BYTE v46[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v47; // [xsp+80h] [xbp+80h] BYREF __int64 v48; // [xsp+88h] [xbp+88h] BYREF __int64 v49; // [xsp+90h] [xbp+90h] BYREF v5 = *((_DWORD *)a2 + 14); if ( *(_DWORD *)(a1 + 696) == v5 ) { cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123); v19 = *(_QWORD *)(a1 + 760); LABEL_19: (*(void (__fastcall **)(__int64, cocos2d::CCTouch *, __int64))(*(_QWORD *)v19 + 904LL))(v19, a2, a3); return _stack_chk_guard; } if ( v5 == *(_DWORD *)(a1 + 700) ) { cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123); v19 = *(_QWORD *)(a1 + 784); goto LABEL_19; } if ( v5 == *(_DWORD *)(a1 + 712) ) { cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123); v19 = *(_QWORD *)(a1 + 792); goto LABEL_19; } v7 = *(_QWORD *)(a1 + 1440); if ( *(_DWORD *)(v7 + 1972) == 1 ) { (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v7 + 13288) + 904LL))(*(_QWORD *)(v7 + 13288)); return _stack_chk_guard; } if ( *(_BYTE *)(a1 + 748) ) { v9 = (const cocos2d::CCPoint *)(a1 + 728); v10 = (cocos2d *)(a1 + 720); cocos2d::CCPoint::operator+(&v49, a1 + 720); cocos2d::CCPoint::operator/(&v45, &v49, 2.0); EditorUI::getTouchPoint(a2, (cocos2d::CCNode *)a1, (const cocos2d::CCPoint *)v46); v11 = *((_DWORD *)a2 + 14); if ( v11 == *(_DWORD *)(a1 + 704) ) { cocos2d::CCPoint::operator=(v10, v46); } else if ( v11 == *(_DWORD *)(a1 + 716) ) { cocos2d::CCPoint::operator=(v9, v46); } cocos2d::CCPoint::operator+(&v49, v10); cocos2d::CCPoint::operator/(&v47, &v49, 2.0); v12 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL); v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); v43 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 192LL))(v12); cocos2d::CCPoint::operator-(&v48, &v47, &v45, v14); cocos2d::CCPoint::operator+(&v49, v43); v13(v12, &v49); cocos2d::ccpDistance(v10, v9, v15); if ( (v16 > 1.0) <= (unsigned int)*(unsigned __int8 *)(a1 + 749) ) { if ( *(_BYTE *)(a1 + 749) ) { LABEL_14: v17 = 10.0; v18 = (float)(v16 / *(float *)(a1 + 736)) * *(float *)(a1 + 744); if ( v18 <= 10.0 ) { if ( v18 < 0.1 ) { v18 = 0.1; LABEL_17: v44 = v18; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, (const cocos2d::CCPoint *)&v47); EditorUI::updateZoom(a1, (const cocos2d::CCPoint *)&v49, v44); return _stack_chk_guard; } if ( v18 <= 10.0 ) { v17 = 1.0; if ( vabds_f32(v18, 1.0) > 0.02 ) goto LABEL_17; } } v18 = v17; goto LABEL_17; } } else if ( vabds_f32(v16, *(float *)(a1 + 736)) >= *(float *)(a1 + 740) ) { *(_BYTE *)(a1 + 749) = 1; *(float *)(a1 + 736) = v16; goto LABEL_14; } EditorUI::constrainGameLayerPosition((EditorUI *)a1); EditorUI::updateSlider((EditorUI *)a1); return _stack_chk_guard; } if ( v5 == *(_DWORD *)(a1 + 704) ) { EditorUI::getTouchPoint(a2, (cocos2d::CCNode *)a1, (const cocos2d::CCPoint *)v46); cocos2d::CCPoint::operator=(a1 + 720, v46); if ( !*(_BYTE *)(a1 + 750) ) { if ( *(_BYTE *)(a1 + 865) ) { if ( !*(_BYTE *)(a1 + 1513) ) { cocos2d::ccpDistance((cocos2d *)v46, (const cocos2d::CCPoint *)(a1 + 1448), v20); if ( fabsf(v37) < 4.0 ) { if ( !*(_BYTE *)(a1 + 1513) ) goto LABEL_43; } else { *(_BYTE *)(a1 + 1513) = 1; } } cocos2d::CCNode::convertToNodeSpace( &v49, *(cocos2d::CCNode **)(*(_QWORD *)(a1 + 1440) + 3920LL), (const cocos2d::CCPoint *)v46); cocos2d::CCPoint::operator=(v46, &v49); if ( !(unsigned __int8)cocos2d::CCPoint::equals((cocos2d::CCPoint *)v46, (const cocos2d::CCPoint *)(a1 + 1480)) ) { if ( !*(_BYTE *)(a1 + 863) ) { v22 = *(EditorSFXManager **)(a1 + 1504); if ( !v22 || ((v23 = (GameManager *)GameManager::sharedState(v22), !(unsigned __int8)GameManager::getGameVariable(v23, "0008")) || !EditorUI::shouldSnap((EditorUI *)a1, *(GameObject **)(a1 + 1504)) ? (v22 = (EditorSFXManager *)*(unsigned __int8 *)(a1 + 863)) : (v32 = *(_QWORD *)(a1 + 1504), v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 1496LL), LOWORD(v49) = -25601, BYTE2(v49) = 50, v33(v32, &v49), v22 = (EditorSFXManager *)*(unsigned __int8 *)(a1 + 863)), !(_DWORD)v22) ) { v24 = (EditorSFXManager *)EditorSFXManager::sharedState(v22); EditorSFXManager::playAction(v24, 104); } } *(_BYTE *)(a1 + 863) = 1; v25 = 0; cocos2d::CCPoint::operator-(&v48, v46, a1 + 1480, v21); if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)) ) { while ( v25 < (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)) ) { v26 = v25++; v27 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 896), v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, (const cocos2d::CCPoint *)&v48); EditorUI::moveObject(a1, v27, &v49); } } else { v39 = *(_QWORD *)(a1 + 1496); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, (const cocos2d::CCPoint *)&v48); EditorUI::moveObject(a1, v39, &v49); } cocos2d::CCPoint::operator=(a1 + 1480, v46); cocos2d::CCPoint::operator+(&v49, a1 + 768); *(__n128 *)&v28 = cocos2d::CCPoint::operator=(a1 + 768, &v49); if ( (*(unsigned __int8 (__fastcall **)(_QWORD, long double))(**(_QWORD **)(a1 + 760) + 352LL))( *(_QWORD *)(a1 + 760), v28) ) { v29 = *(_QWORD *)(a1 + 760); } else { if ( !(*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 352LL))(*(_QWORD *)(a1 + 784)) ) { if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) ) { v40 = *(_QWORD *)(a1 + 792); v41 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL); v42 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 192LL))(v40); cocos2d::CCPoint::operator+(&v49, v42); v41(v40, &v49); GJTransformControl::refreshControl(*(GJTransformControl **)(a1 + 792)); } goto LABEL_43; } v29 = *(_QWORD *)(a1 + 784); } v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL); v31 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 192LL))(v29); cocos2d::CCPoint::operator+(&v49, v31); v30(v29, &v49); } LABEL_43: cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123); return _stack_chk_guard; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, (const cocos2d::CCPoint *)v46); if ( !(unsigned __int8)EditorUI::swipeToPosition(a1, (const cocos2d::CCPoint *)&v49) ) { if ( *(_BYTE *)(a1 + 1512) ) { cocos2d::CCPoint::operator-(&v47, v46, a1 + 1480, v35); v38 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 192LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v38); cocos2d::CCPoint::operator+(&v49, &v48); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 184LL))( *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL), &v49); EditorUI::constrainGameLayerPosition((EditorUI *)a1); cocos2d::CCPoint::operator=(a1 + 1480, v46); EditorUI::updateSlider((EditorUI *)a1); } else { cocos2d::ccpDistance((cocos2d *)v46, (const cocos2d::CCPoint *)(a1 + 1448), v34); if ( fabsf(v36) >= 20.0 ) { cocos2d::CCPoint::operator=(a1 + 1480, v46); *(_BYTE *)(a1 + 1512) = 1; cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123); } } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source