// // CreateParticlePopup::ccTouchMoved from 0x6669dc to 0x666c94 (696 bytes) // // 1 xrefs: // > `non-virtual thunk to'CreateParticlePopup::ccTouchMoved @ 0x666cb4 // // 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:55:41 +0000 // int __fastcall CreateParticlePopup::ccTouchMoved(int a1, int a2) { unsigned int v2; // r4 int v3; // r10 int v4; // r5 int v5; // r8 int v6; // r8 void (__fastcall *v7)(int, float *); // r9 _BOOL4 v8; // r5 int v9; // r0 cocos2d::CCArray **v10; // r0 int v11; // r1 int v12; // r0 int v13; // r0 const cocos2d::CCPoint *v14; // r1 const cocos2d::CCPoint *v15; // r1 float v16; // r0 int v17; // r0 const cocos2d::CCPoint *v18; // r1 float v19; // r0 float v20; // s15 _BYTE v22[8]; // [sp+Ch] [bp-30h] BYREF _BYTE v23[8]; // [sp+14h] [bp-28h] BYREF float x; // [sp+1Ch] [bp-20h] BYREF float y; // [sp+20h] [bp-1Ch] _BYTE v26[16]; // [sp+24h] [bp-18h] BYREF v2 = a1; v3 = a2; if ( *(_DWORD *)(a2 + 52) == *(_DWORD *)(a1 + 552) ) { cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v22); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v26, *(const cocos2d::CCPoint **)(v2 + 588)); cocos2d::CCPoint::operator=(v22, v26); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v26, 0.0, 0.0, 120.0, 180.0); v4 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 544) + 796))(*(_DWORD *)(v2 + 544)); if ( !cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v26, (const cocos2d::CCPoint *)v22) ) { LABEL_29: a1 = v2; a2 = v3; return FLAlertLayer::ccTouchMoved(a1, a2); } v5 = *(_DWORD *)(v2 + 608); if ( !v5 ) { v6 = *(_DWORD *)(v2 + 544); v7 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::operator+(&x, v22, v2 + 556); v7(v6, &x); goto LABEL_29; } v8 = v4 == 0; if ( v5 == 1 ) { if ( v8 ) { v9 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 544) + 96))(*(_DWORD *)(v2 + 544)); cocos2d::CCPoint::operator-(&x, v9, v22); CreateParticlePopup::updateParticleValueForType(v2, fabsf(x), 10, nullptr); CreateParticlePopup::updateParticleValueForType(v2, fabsf(y), 11, nullptr); CreateParticlePopup::updateInputNodeStringForType(v2, 0xAu); CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 10); CreateParticlePopup::updateInputNodeStringForType(v2, 0xBu); v10 = (cocos2d::CCArray **)v2; v11 = 11; goto LABEL_28; } } else if ( v5 == 2 && v8 ) { v12 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 544) + 96))(*(_DWORD *)(v2 + 544)); cocos2d::CCPoint::operator-(v23, v12, v22); cocos2d::CCPoint::operator*(&x, v23, -1054867456); CreateParticlePopup::updateParticleValueForType(v2, x, 12, nullptr); CreateParticlePopup::updateParticleValueForType(v2, y, 13, nullptr); CreateParticlePopup::updateInputNodeStringForType(v2, 0xCu); CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 12); CreateParticlePopup::updateInputNodeStringForType(v2, 0xDu); v10 = (cocos2d::CCArray **)v2; v11 = 13; goto LABEL_28; } if ( (unsigned int)(v5 - 1) > 1 ) { if ( v5 != 3 ) goto LABEL_29; v17 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 544) + 96))(*(_DWORD *)(v2 + 544)); cocos2d::CCPoint::operator-(&x, v17, v22); if ( v8 ) { v19 = COERCE_FLOAT(cocos2d::ccpLength((cocos2d *)&x, v18)); CreateParticlePopup::updateParticleValueForType(v2, v19 * 4.0, 8, nullptr); } v20 = atan2f(y, x) * 57.296; if ( v8 ) v20 = v20 + 180.0; if ( v20 <= 180.0 ) { if ( v20 < -180.0 ) v20 = v20 + 360.0; } else { v20 = v20 - 360.0; } CreateParticlePopup::updateParticleValueForType(v2, -v20, 6, nullptr); if ( v8 ) { CreateParticlePopup::updateInputNodeStringForType(v2, 8u); CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 8); } CreateParticlePopup::updateInputNodeStringForType(v2, 6u); v10 = (cocos2d::CCArray **)v2; v11 = 6; } else { if ( v8 ) goto LABEL_29; v13 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 544) + 96))(*(_DWORD *)(v2 + 544)); cocos2d::CCPoint::operator-(&x, v13, v22); cocos2d::ccpLength((cocos2d *)&x, v14); v16 = COERCE_FLOAT(cocos2d::ccpLength((cocos2d *)&x, v15)); if ( v5 == 1 ) { CreateParticlePopup::updateParticleValueForType(v2, v16, 50, nullptr); CreateParticlePopup::updateInputNodeStringForType(v2, 0x32u); v10 = (cocos2d::CCArray **)v2; v11 = 50; } else { CreateParticlePopup::updateParticleValueForType(v2, v16, 52, nullptr); CreateParticlePopup::updateInputNodeStringForType(v2, 0x34u); v10 = (cocos2d::CCArray **)v2; v11 = 52; } } LABEL_28: CreateParticlePopup::updateSliderForType(v10, v11); goto LABEL_29; } return FLAlertLayer::ccTouchMoved(a1, a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source