// // TouchControlEditLayer::ccTouchMoved from 0x7a2c24 to 0x7a2efe (730 bytes) // // 1 xrefs: // > `non-virtual thunk to'TouchControlEditLayer::ccTouchMoved @ 0x7a2f0c // // 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:55 +0000 // float *__fastcall TouchControlEditLayer::ccTouchMoved(float *result) { float *v1; // r5 int v2; // r4 const cocos2d::CCPoint *v3; // r0 const cocos2d::CCPoint *v4; // r1 float v5; // s19 float v6; // s18 void (__fastcall *v7)(int, float *); // r11 const cocos2d::CCPoint *v8; // r0 float v9; // s17 float v10; // s16 int v11; // r3 float v12; // s14 float v13; // r1 float v14; // s15 float v15; // s14 void (__fastcall *v16)(int, _BYTE *); // r7 float v17; // s17 float v18; // s16 float v19; // s16 float v20; // s15 float v21; // s14 int v22; // s15 int v23; // r1 float v24; // s15 float *v25; // r0 float v26; // s16 float v27; // s14 float v28; // s15 float v29; // r1 const cocos2d::CCPoint *v30; // r0 _BYTE v31[8]; // [sp+Ch] [bp-58h] BYREF _BYTE v32[8]; // [sp+14h] [bp-50h] BYREF float v33[2]; // [sp+1Ch] [bp-48h] BYREF _BYTE v34[8]; // [sp+24h] [bp-40h] BYREF _BYTE v35[8]; // [sp+2Ch] [bp-38h] BYREF float v36[2]; // [sp+34h] [bp-30h] BYREF float v37; // [sp+3Ch] [bp-28h] BYREF float v38; // [sp+40h] [bp-24h] float v39[2]; // [sp+44h] [bp-20h] BYREF _BYTE v40[8]; // [sp+4Ch] [bp-18h] BYREF float v41[2]; // [sp+54h] [bp-10h] BYREF v1 = result; if ( !*((_DWORD *)result + 238) ) return result; v2 = *((_DWORD *)result + 239); if ( !v2 ) return result; cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v31); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v32, (const cocos2d::CCPoint *)v1); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v33, (const cocos2d::CCPoint *)v2); v3 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v2 + 96))(v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v3); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v35, (const cocos2d::CCSize *)(v2 + 280)); v5 = *(float *)(v2 + 312); v6 = *(float *)(v2 + 308); switch ( *((_DWORD *)v1 + 238) ) { case 1: v7 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v2 + 92); cocos2d::CCPoint::operator-(v41, v32, v1 + 240); v7(v2, v41); goto LABEL_38; case 2: case 3: case 4: case 5: cocos2d::CCPoint::operator+(v36, v32, v1 + 240); v8 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v2 + 96))(v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, v8); v9 = *(float *)(v2 + 280) * 0.5; v10 = *(float *)(v2 + 284) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v39); v11 = *((_DWORD *)v1 + 238); if ( v11 == 2 ) { v12 = v9 + v37; LABEL_9: v13 = v12; v14 = v38 - v10; goto LABEL_14; } if ( v11 == 3 ) { v12 = v37 - v9; goto LABEL_9; } v14 = v10 + v38; if ( v11 == 4 ) v15 = v9 + v37; else v15 = v37 - v9; v13 = v15; LABEL_14: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, v13, v14); cocos2d::CCPoint::operator=(v39, v41); v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v2 + 92); v17 = v36[0] - v39[0]; v18 = v36[1] - v39[1]; cocos2d::CCPoint::operator+(v41, v36, v39); cocos2d::CCPoint::operator/(v40, v41, 0x40000000); v16(v2, v40); GJUINode::updateSize((GJUINode *)v2, fabsf(v17), fabsf(v18)); goto LABEL_38; case 6: v19 = v1[247]; cocos2d::CCPoint::operator-(v41, v33, v1 + 243); v20 = v19 + (float)((float)(v41[1] * v1[246]) + (float)(v41[0] * v1[245])); if ( *(_BYTE *)(v2 + 317) ) v21 = *(float *)(v2 + 308); else v21 = *(float *)(v2 + 280) * 0.5; if ( v20 <= v21 ) { if ( v20 <= 0.0 ) goto LABEL_26; if ( v20 <= v21 ) { v22 = (int)v20; goto LABEL_25; } LABEL_23: v22 = (int)v21; LABEL_25: v23 = v22; goto LABEL_27; } if ( v21 > 0.0 ) goto LABEL_23; LABEL_26: v23 = 0; LABEL_27: GJUINode::updateDeadzone(v2, v23); LABEL_38: v30 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v2 + 96))(v2); if ( !cocos2d::CCPoint::equals((cocos2d::CCPoint *)v34, v30) || !cocos2d::CCSize::equals((cocos2d::CCSize *)v35, (const cocos2d::CCSize *)(v2 + 280)) || v5 != *(float *)(v2 + 312) || v6 != *(float *)(v2 + 308) ) { *((_BYTE *)v1 + 992) = 1; } return TouchControlEditLayer::updateHandles((TouchControlEditLayer *)v1); case 7: if ( *(_BYTE *)(v2 + 317) ) { v24 = COERCE_FLOAT(cocos2d::ccpLength((cocos2d *)v33, v4)); } else { v25 = *(float **)(v2 + 264); if ( v25 ) { v26 = v25[86]; v27 = v26 * (*(float (__fastcall **)(float *))(*(_DWORD *)v25 + 84))(v25); } else { v27 = 0.0; } v24 = fabsf(v33[0]) - (float)(v27 * 0.5); } v28 = v24 + v1[242]; if ( v28 > 0.0 ) v29 = v28; else v29 = 0.0; GJUINode::updateDragRadius(v2, v29); goto LABEL_38; default: goto LABEL_38; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source