// // GJTransformControl::ccTouchEnded from 0x6eef18 to 0x6ef12a (530 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJTransformControl::ccTouchEnded @ 0x6ef138 // // 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:57:34 +0000 // cocos2d::CCArray *__fastcall GJTransformControl::ccTouchEnded(int a1, int a2) { int v2; // r8 cocos2d::CCArray *result; // r0 int v6; // r5 int v7; // r9 void (__fastcall *v8)(int, _BYTE *); // r11 int v9; // r0 int v10; // r0 int v11; // r0 int v12; // r0 int v13; // r0 int v14; // r0 const cocos2d::CCPoint *v15; // r0 int v16; // r0 const cocos2d::CCPoint *v17; // r0 int v18; // r0 const cocos2d::CCPoint *v19; // r0 int v20; // r8 int v21; // [sp+0h] [bp-3Ch] BYREF _BYTE v22[8]; // [sp+Ch] [bp-30h] BYREF float v23; // [sp+14h] [bp-28h] BYREF float v24; // [sp+18h] [bp-24h] float v25[2]; // [sp+1Ch] [bp-20h] BYREF _BYTE v26[8]; // [sp+24h] [bp-18h] BYREF _BYTE v27[8]; // [sp+2Ch] [bp-10h] BYREF v2 = a1 + 432; if ( ControlMenuTouch::tracking((ControlMenuTouch *)(a1 + 432)) ) return (cocos2d::CCArray *)ControlMenuTouch::ended(v2); result = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22); if ( *(_DWORD *)(a1 + 328) == *(_DWORD *)(a2 + 52) ) { v6 = *(__int16 *)(a1 + 332); if ( v6 == 1 ) { v7 = *(_DWORD *)(a1 + 336); *(_DWORD *)(a1 + 328) = -1; if ( v7 ) { v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v7 + 52); v9 = GJTransformControl::spriteByTag((cocos2d::CCArray **)a1, 1); (*(void (__fastcall **)(int))(*(_DWORD *)v9 + 96))(v9); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v27, (const cocos2d::CCPoint *)a1); v8(v7, v27); v10 = GJTransformControl::spriteByTag((cocos2d::CCArray **)a1, 1); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v10 + 92))(v10, &unk_D2DAF0); v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 324), 0); v12 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11); cocos2d::CCPoint::operator=(v22, v12); LABEL_17: GJTransformControl::updateButtons((GJTransformControl *)a1, 0, 1); LABEL_18: *(_WORD *)(a1 + 332) = 0; result = (cocos2d::CCArray *)GJTransformControl::updateButtons((GJTransformControl *)a1, 0, 0); if ( v6 ) { v18 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 324), 0); v19 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v18 + 96))(v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v19); cocos2d::CCPoint::operator-(v26, v22, v25); v20 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 336) + 60))(*(_DWORD *)(a1 + 336)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, (const cocos2d::CCPoint *)v26); EditorUI::checkDiffAfterTransformAnchor(&v21, v20, v27, *(_DWORD *)(a1 + 324)); GJTransformControl::updateButtons((GJTransformControl *)a1, 0, 1); return (cocos2d::CCArray *)GJTransformControl::updateButtons((GJTransformControl *)a1, 0, 0); } return result; } } else if ( *(_WORD *)(a1 + 332) ) { *(_DWORD *)(a1 + 328) = -1; if ( *(_BYTE *)(a1 + 459) && v6 == 12 ) { *(_WORD *)(a1 + 332) = 0; return GJTransformControl::applyFreeRotation((cocos2d::CCArray *)a1, *(float *)(a1 + 464)); } v13 = *(_DWORD *)(a1 + 336); if ( v13 ) (*(void (__fastcall **)(int))(*(_DWORD *)v13 + 44))(v13); if ( *(_BYTE *)(a1 + 484) && *(_DWORD *)(a1 + 336) ) { v14 = GJTransformControl::spriteByTag((cocos2d::CCArray **)a1, 6); v15 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v14 + 96))(v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, v15); v16 = GJTransformControl::spriteByTag((cocos2d::CCArray **)a1, 9); v17 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v16 + 96))(v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v17); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v26, v23 + (float)((float)(v25[0] - v23) * *(float *)(a1 + 476)), v24 + (float)((float)(v25[1] - v24) * *(float *)(a1 + 480))); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v27, *(const cocos2d::CCPoint **)(a1 + 316)); GJTransformControl::moveAnchorTo((cocos2d::CCArray *)a1, (const cocos2d::CCPoint *)v27); } } v6 = 0; if ( (unsigned __int16)(*(_WORD *)(a1 + 332) - 10) > 1u ) goto LABEL_18; goto LABEL_17; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source