// // cocos2d::extension::CCControlPotentiometer::potentiometerMoved from 0xd156e4 to 0xd1582c (328 bytes) // // 2 xrefs: // > cocos2d::extension::CCControlPotentiometer::ccTouchMoved @ 0xd15888 // > @ 0x49948 // // 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:07:05 +0000 // __int64 __fastcall cocos2d::extension::CCControlPotentiometer::potentiometerMoved( __int64 a1, const cocos2d::CCPoint *a2) { const cocos2d::CCPoint *v4; // x22 const cocos2d::CCPoint *v5; // x0 const cocos2d::CCPoint *v6; // x0 float v7; // s0 float v9; // [xsp+78h] [xbp+78h] BYREF float v10; // [xsp+80h] [xbp+80h] BYREF float v11; // [xsp+88h] [xbp+88h] BYREF float v12; // [xsp+90h] [xbp+90h] BYREF v4 = (const cocos2d::CCPoint *)(a1 + 488); v5 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 192LL))(*(_QWORD *)(a1 + 480)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, v5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, a2); v6 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 192LL))(*(_QWORD *)(a1 + 480)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, v4); v7 = cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint( a1, &v9, &v10, &v11, &v12); if ( v7 > 180.0 ) { v7 = v7 - 360.0; } else if ( v7 < -180.0 ) { v7 = v7 + 360.0; } cocos2d::extension::CCControlPotentiometer::setValue( (cocos2d::extension::CCControlPotentiometer *)a1, *(float *)(a1 + 496) + (float)((float)(v7 / 360.0) * (float)(*(float *)(a1 + 504) - *(float *)(a1 + 500)))); cocos2d::CCPoint::operator=(v4, a2); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source