// // TouchControlEditLayer::ccTouchMoved from 0xd047d4 to 0xd04bc8 (1012 bytes) // // 3 xrefs: // > `non-virtual thunk to'TouchControlEditLayer::ccTouchMoved @ 0xd04bcc // > @ 0x686b0 // > @ 0x1508bc8 // // 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:56 +0000 // __int64 __fastcall TouchControlEditLayer::ccTouchMoved(__int64 a1, cocos2d::CCTouch *this) { __int64 v3; // x20 const cocos2d::CCPoint *v4; // x0 const cocos2d::CCPoint *v5; // x1 long double v6; // q0 float v7; // s9 float v8; // s10 const cocos2d::CCPoint *v9; // x0 float v11; // s8 float v12; // s0 float v13; // s1 int v14; // w1 const cocos2d::CCPoint *v15; // x0 float v16; // s11 float v17; // s8 int v18; // w0 float v19; // s1 float v20; // s0 void (__fastcall *v21)(__int64, __int64 *); // x27 float v22; // s8 void (__fastcall *v23)(__int64, __int64 *); // x24 float *v24; // x1 float v25; // s8 float v26; // s0 float v27; // s0 float v28; // s0 float v29; // s0 float v30; // [xsp+80h] [xbp+80h] __int64 v31; // [xsp+A8h] [xbp+A8h] BYREF __int64 v32; // [xsp+B0h] [xbp+B0h] BYREF __int64 v33; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v34[8]; // [xsp+C0h] [xbp+C0h] BYREF _BYTE v35[8]; // [xsp+C8h] [xbp+C8h] BYREF __int64 v36; // [xsp+D0h] [xbp+D0h] BYREF float v37; // [xsp+D8h] [xbp+D8h] BYREF float v38; // [xsp+DCh] [xbp+DCh] float v39[2]; // [xsp+E0h] [xbp+E0h] BYREF __int64 v40; // [xsp+E8h] [xbp+E8h] BYREF __int64 v41; // [xsp+F0h] [xbp+F0h] BYREF if ( !*(_DWORD *)(a1 + 1288) ) return _stack_chk_guard; v3 = *(_QWORD *)(a1 + 1296); if ( !v3 ) return _stack_chk_guard; cocos2d::CCTouch::getLocation(&v31, this); cocos2d::CCNode::convertToNodeSpace(&v32, (cocos2d::CCNode *)a1, (const cocos2d::CCPoint *)&v31); cocos2d::CCNode::convertToNodeSpace(&v33, (cocos2d::CCNode *)v3, (const cocos2d::CCPoint *)&v31); v4 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v4); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v35, (const cocos2d::CCSize *)(v3 + 344)); v7 = *(float *)(v3 + 376); v8 = *(float *)(v3 + 372); switch ( *(_DWORD *)(a1 + 1288) ) { case 1: v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v3 + 184LL); cocos2d::CCPoint::operator-(&v41, &v32, a1 + 1304, v6); v23(v3, &v41); goto LABEL_4; case 2: case 3: case 4: case 5: cocos2d::CCPoint::operator+(&v36, &v32); v15 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, v15); v16 = *(float *)(v3 + 344) * 0.5; v17 = *(float *)(v3 + 348) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v39); v18 = *(_DWORD *)(a1 + 1288); if ( v18 == 2 ) { v19 = v38; v29 = v16 + v37; LABEL_42: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, v29, v19 - v17); cocos2d::CCPoint::operator=(v39, &v41); goto LABEL_20; } v19 = v38; if ( v18 == 3 ) { v29 = v37 - v16; goto LABEL_42; } if ( v18 == 4 ) v20 = v16 + v37; else v20 = v37 - v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, v20, v17 + v38); cocos2d::CCPoint::operator=(v39, &v41); LABEL_20: v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v3 + 184LL); v22 = vabds_f32(*(float *)&v36, v39[0]); v30 = vabds_f32(*((float *)&v36 + 1), v39[1]); cocos2d::CCPoint::operator+(&v41, &v36); cocos2d::CCPoint::operator/(&v40, &v41, 2.0); v21(v3, &v40); GJUINode::updateSize((GJUINode *)v3, v22, v30); LABEL_4: v9 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); if ( !(unsigned __int8)cocos2d::CCPoint::equals((cocos2d::CCPoint *)v34, v9) || !(unsigned __int8)cocos2d::CCSize::equals((cocos2d::CCSize *)v35, (const cocos2d::CCSize *)(v3 + 344)) || *(float *)(v3 + 376) != v7 || *(float *)(v3 + 372) != v8 ) { *(_BYTE *)(a1 + 1336) = 1; } TouchControlEditLayer::updateHandles((TouchControlEditLayer *)a1); return _stack_chk_guard; case 6: v11 = *(float *)(a1 + 1332); cocos2d::CCPoint::operator-(&v41, &v33, a1 + 1316, v6); v12 = v11 + (float)((float)(*((float *)&v41 + 1) * *(float *)(a1 + 1328)) + (float)(*(float *)&v41 * *(float *)(a1 + 1324))); if ( *(_BYTE *)(v3 + 381) ) v13 = *(float *)(v3 + 372); else v13 = *(float *)(v3 + 344) * 0.5; if ( v13 >= v12 ) { if ( v12 <= 0.0 ) goto LABEL_13; if ( v13 >= v12 ) { v14 = (int)v12; goto LABEL_14; } } else if ( v13 <= 0.0 ) { LABEL_13: v14 = 0; goto LABEL_14; } v14 = (int)v13; LABEL_14: GJUINode::updateDeadzone((GJUINode *)v3, v14); goto LABEL_4; case 7: if ( *(_BYTE *)(v3 + 381) ) { cocos2d::ccpLength((cocos2d *)&v33, v5); } else { v24 = *(float **)(v3 + 320); if ( v24 ) { v25 = v24[108]; v26 = (float)(v25 * (*(float (__fastcall **)(_QWORD))(*(_QWORD *)v24 + 168LL))(*(_QWORD *)(v3 + 320))) * 0.5; } else { v26 = 0.0; } v27 = fabsf(*(float *)&v33) - v26; } v28 = v27 + *(float *)(a1 + 1312); if ( v28 <= 0.0 ) v28 = 0.0; GJUINode::updateDragRadius((GJUINode *)v3, v28); goto LABEL_4; default: goto LABEL_4; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source