// // GJTransformControl::ccTouchEnded from 0x10015bf44 to 0x10015c1f8 (692 bytes) // // 2 xrefs: // > sub_10015C35C @ 0x10015c360 // > @ 0x1008e2138 // // 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 10:59:44 +0000 // _QWORD *__fastcall GJTransformControl::ccTouchEnded(__int64 a1, __int64 a2) { __int64 v4; // x0 _QWORD *result; // x0 int v6; // w8 __int64 v7; // x20 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x0 double *v12; // x0 __int64 v13; // x0 double *v14; // x0 double v15; // d0 __int64 v16; // x20 double v17; // d0 __int64 v18; // x0 __int64 v19; // x0 double *v20; // x0 __int64 v21; // x0 double *v22; // x0 __int64 v23; // [xsp+8h] [xbp-38h] BYREF __int64 v24; // [xsp+10h] [xbp-30h] BYREF float32x2_t v25; // [xsp+18h] [xbp-28h] BYREF float32x2_t v26; // [xsp+20h] [xbp-20h] BYREF float32x2_t v27; // [xsp+28h] [xbp-18h] BYREF v4 = *(_QWORD *)(a1 + 584); if ( v4 ) { result = (_QWORD *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 912LL))(v4, a2); *(_QWORD *)(a1 + 584) = 0; return result; } result = sub_1000262EC(&v27); if ( *(_DWORD *)(a1 + 432) == *(_DWORD *)(a2 + 56) ) { v6 = *(unsigned __int16 *)(a1 + 436); if ( *(_WORD *)(a1 + 436) ) { if ( v6 == 1 ) { *(_DWORD *)(a1 + 432) = -1; v7 = *(_QWORD *)(a1 + 440); if ( v7 ) { v8 = sub_1002E75A0(*(_QWORD *)(a1 + 512), 0); v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8); cocos2d::CCNode::convertToWorldSpace(&v26, a1, v9); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v7 + 104LL))(v7, &v26); v10 = sub_1002E75A0(*(_QWORD *)(a1 + 512), 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v10 + 184LL))(v10, &unk_1009F3FA0); v11 = sub_1002E75A0(*(_QWORD *)(a1 + 424), 0); v12 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11); sub_10002630C(&v27, v12); GJTransformControl::updateButtons(a1, 0, 1); *(_WORD *)(a1 + 436) = 0; GJTransformControl::updateButtons(a1, 0, 0); v13 = sub_1002E75A0(*(_QWORD *)(a1 + 424), 0); v14 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 192LL))(v13); sub_1000262F4(&v26, v14); *(float32x2_t *)&v15 = sub_10002632C(&v27, &v26, &v25); v16 = (*(__int64 (__fastcall **)(_QWORD, double))(**(_QWORD **)(a1 + 440) + 120LL))( *(_QWORD *)(a1 + 440), v15); v17 = sub_1000262F4(&v24, (double *)&v25); sub_100160908(&v23, v16, &v24, *(_QWORD *)(a1 + 424), v17); GJTransformControl::updateButtons(a1, 0, 1); return (_QWORD *)GJTransformControl::updateButtons(a1, 0, 0); } } else { *(_DWORD *)(a1 + 432) = -1; if ( v6 == 12 && (*(_BYTE *)(a1 + 603) & 1) != 0 ) { *(_WORD *)(a1 + 436) = 0; return (_QWORD *)sub_10015C1F8(a1, *(float *)(a1 + 608)); } v18 = *(_QWORD *)(a1 + 440); if ( v18 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v18 + 88LL))(v18); if ( *(_BYTE *)(a1 + 628) == 1 && *(_QWORD *)(a1 + 440) ) { v19 = sub_1002E75A0(*(_QWORD *)(a1 + 512), 5); v20 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 192LL))(v19); sub_1000262F4(&v26, v20); v21 = sub_1002E75A0(*(_QWORD *)(a1 + 512), 8); v22 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 192LL))(v21); sub_1000262F4(&v25, v22); sub_1000262BC( (float *)&v24, v26.f32[0] + (float)(*(float *)(a1 + 620) * (float)(v25.f32[0] - v26.f32[0])), v26.f32[1] + (float)(*(float *)(a1 + 624) * (float)(v25.f32[1] - v26.f32[1]))); cocos2d::CCNode::convertToWorldSpace(&v23, *(_QWORD *)(a1 + 408), &v24); sub_10015B1F0(a1, (double *)&v23); } } } if ( (*(_WORD *)(a1 + 436) & 0xFFFE) == 0xA ) GJTransformControl::updateButtons(a1, 0, 1); *(_WORD *)(a1 + 436) = 0; return (_QWORD *)GJTransformControl::updateButtons(a1, 0, 0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source