// // cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition from 0xd0f934 to 0xd0fa68 (308 bytes) // // 3 xrefs: // > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan @ 0xd0fb1c // > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchMoved @ 0xd0fb88 // > @ 0x8c248 // // 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:02 +0000 // __int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition( __int64 a1, float *a2, unsigned __int8 a3) { int v3; // w22 float v5; // s8 float v6; // s10 float v7; // s8 float v8; // s8 __int64 v11; // [xsp+68h] [xbp+68h] BYREF float v12; // [xsp+70h] [xbp+70h] float v13; // [xsp+74h] [xbp+74h] v3 = a3; v5 = *(float *)(a1 + 512); cocos2d::CCNode::boundingBox(&v11, *(cocos2d::CCNode **)(a1 + 480)); v6 = *(float *)(a1 + 516); v7 = v5 + (float)(v12 * 0.5); cocos2d::CCNode::boundingBox(&v11, *(cocos2d::CCNode **)(a1 + 480)); v8 = sqrtf( (float)((float)(a2[1] - (float)(v6 + (float)(v13 * 0.5))) * (float)(a2[1] - (float)(v6 + (float)(v13 * 0.5)))) + (float)((float)(*a2 - v7) * (float)(*a2 - v7))); cocos2d::CCNode::boundingBox(&v11, *(cocos2d::CCNode **)(a1 + 480)); if ( v8 > (float)(v12 * 0.5) && !v3 ) return 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, (const cocos2d::CCPoint *)a2); cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(a1, (float *)&v11); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1320LL))(a1, 256); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source