//
// TouchControlEditLayer::updateHandles from 0xd04694 to 0xd047d4 (320 bytes)
//
// 7 xrefs:
// > TouchControlEditLayer::ccTouchMoved @ 0xd048d0
// > TouchControlEditLayer::ccTouchBegan @ 0xd0506c
// > TouchControlEditLayer::init @ 0xd06988
// > TouchControlEditLayer::reloadNodes @ 0xd06e28
// > TouchControlEditLayer::valueDidChange @ 0xd07438
// > TouchControlEditLayer::valueDidChange @ 0xd07494
// > ??> @ 0xf8410
//
// 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:55 +0000
//
__int64 __fastcall TouchControlEditLayer::updateHandles(TouchControlEditLayer *this)
{
float *active; // x0
float v3; // s10
__int64 v4; // x19
float v5; // s9
int v6; // w20
const cocos2d::CCPoint *v7; // x0
__int64 v8; // x2
__int64 v10; // x2
_BYTE *v11; // x1
float v12; // [xsp+50h] [xbp+50h] BYREF
float v13; // [xsp+54h] [xbp+54h]
_BYTE v14[8]; // [xsp+58h] [xbp+58h] BYREF
__int64 v15; // [xsp+60h] [xbp+60h] BYREF
__int64 v16; // [xsp+68h] [xbp+68h] BYREF
__int64 v17; // [xsp+70h] [xbp+70h] BYREF
active = (float *)TouchControlEditLayer::activeNode(this);
if ( active )
{
v3 = active[86];
v4 = 0;
v5 = active[87];
v6 = 0;
v7 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)active + 192LL))(active);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v12 - (float)(v3 * 0.5), v13 + (float)(v5 * 0.5));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v12 + (float)(v3 * 0.5), v13 + (float)(v5 * 0.5));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, v12 - (float)(v3 * 0.5), v13 - (float)(v5 * 0.5));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, v12 + (float)(v3 * 0.5), v13 - (float)(v5 * 0.5));
do
{
v8 = *((_QWORD *)this + 157);
if ( v6 >= (int)((*((_QWORD *)this + 158) - v8) >> 3) )
break;
v10 = *(_QWORD *)(v8 + v4);
v11 = &v14[v4];
++v6;
v4 += 8;
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL))(v10, v11);
}
while ( v6 != 4 );
}
return _stack_chk_guard;
}