// // TouchControlEditLayer::updateHandles from 0x7a2b2c to 0x7a2c1e (242 bytes) // // 6 xrefs: // > TouchControlEditLayer::ccTouchMoved @ 0x7a2ed8 // > TouchControlEditLayer::ccTouchBegan @ 0x7a3278 // > TouchControlEditLayer::init @ 0x7a429e // > TouchControlEditLayer::reloadNodes @ 0x7a44e0 // > TouchControlEditLayer::valueDidChange @ 0x7a4e6c // > TouchControlEditLayer::valueDidChange @ 0x7a4f18 // // 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::updateHandles(TouchControlEditLayer *this) { float *result; // r0 int v3; // r4 float v4; // s17 float v5; // s16 const cocos2d::CCPoint *v6; // r0 int v7; // r2 int v8; // r0 _BYTE *v9; // r1 float v10; // [sp+4h] [bp-30h] BYREF float v11; // [sp+8h] [bp-2Ch] _BYTE v12[8]; // [sp+Ch] [bp-28h] BYREF _BYTE v13[8]; // [sp+14h] [bp-20h] BYREF _BYTE v14[8]; // [sp+1Ch] [bp-18h] BYREF _BYTE v15[8]; // [sp+24h] [bp-10h] BYREF result = (float *)TouchControlEditLayer::activeNode(this); if ( result ) { v3 = 0; v4 = result[70] * 0.5; v5 = result[71] * 0.5; v6 = (const cocos2d::CCPoint *)(*(int (**)(void))(*(_DWORD *)result + 96))(); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v10 - v4, v5 + v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v4 + v10, v5 + v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v10 - v4, v11 - v5); result = (float *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v4 + v10, v11 - v5); do { v7 = *((_DWORD *)this + 234); if ( v3 >= (*((_DWORD *)this + 235) - v7) >> 2 ) break; v8 = *(_DWORD *)(v7 + 4 * v3); v9 = &v12[8 * v3++]; result = (float *)(*(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 92))(v8, v9); } while ( v3 != 4 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source