// // TouchControlEditLayer::updateHandles from 0x1404538b0 to 0x140453a2f (383 bytes) // // 12 xrefs: // > TouchControlEditLayer::create @ 0x1404523e3 // > TouchControlEditLayer::valueDidChange @ 0x140453ccc // > TouchControlEditLayer::valueDidChange @ 0x140453e4b // > TouchControlEditLayer::ccTouchBegan @ 0x140454481 // > TouchControlEditLayer::ccTouchMoved @ 0x140454a49 // > TouchControlEditLayer::onReset @ 0x1404559a2 // > TouchControlEditLayer::onPaste @ 0x1404561f9 // > TouchControlEditLayer::onApplyGlobal @ 0x1404565dc // > ControlSlotsPopup::onLoad @ 0x14045703c // > @ 0x1408ccbd0 // > @ 0x1408ccc08 // > @ 0x1409278f0 // // This function is hookable on this platform (idp: pc, 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 11:32:28 +0000 // void __fastcall TouchControlEditLayer::updateHandles(_QWORD *a1) { float *v2; // rcx float **v3; // rcx float v4; // xmm6_4 float v5; // xmm7_4 const struct cocos2d::CCPoint *v6; // rax int v7; // ebx __int64 v8; // rsi __int64 v9; // rcx float v10; // [rsp+20h] [rbp-58h] BYREF float v11; // [rsp+24h] [rbp-54h] _BYTE v12[8]; // [rsp+28h] [rbp-50h] BYREF _BYTE v13[8]; // [rsp+30h] [rbp-48h] BYREF _BYTE v14[8]; // [rsp+38h] [rbp-40h] BYREF _BYTE v15[8]; // [rsp+40h] [rbp-38h] BYREF v2 = (float *)a1[155]; if ( v2 || (v3 = (float **)a1[152], v3 != (float **)a1[153]) && (v2 = *v3) != nullptr ) { v4 = v2[87] * 0.5; v5 = v2[86] * 0.5; v6 = (const struct cocos2d::CCPoint *)(*(__int64 (**)(void))(*(_QWORD *)v2 + 200LL))(); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v10 - v5, v4 + v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v5 + v10, v4 + v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v10 - v5, v11 - v4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v5 + v10, v11 - v4); v7 = 0; v8 = 0; do { v9 = a1[156]; if ( v7 >= (int)((a1[157] - v9) >> 3) ) break; (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(v8 + v9) + 184LL))(*(_QWORD *)(v8 + v9), &v12[8 * v7++]); v8 += 8; } while ( v7 < 4 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source