// // cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition from 0x7a9334 to 0x7a93fc (200 bytes) // // 2 xrefs: // > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan @ 0x7a9456 // > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchMoved @ 0x7a949c // // 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 12:00:01 +0000 // int __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition( float *a1, float *a2, int a3) { float v6; // s18 float v7; // s17 float v8; // s18 float v9; // s17 float v11[2]; // [sp+4h] [bp+0h] BYREF float v12; // [sp+Ch] [bp+8h] float v13; // [sp+10h] [bp+Ch] v6 = a1[95]; cocos2d::CCNode::boundingBox((cocos2d::CCNode *)v11); v7 = a1[96]; v8 = v6 + (float)(v12 * 0.5); cocos2d::CCNode::boundingBox((cocos2d::CCNode *)v11); v9 = sqrtf( (float)((float)(a2[1] - (float)(v7 + (float)(v13 * 0.5))) * (float)(a2[1] - (float)(v7 + (float)(v13 * 0.5)))) + (float)((float)(*a2 - v8) * (float)(*a2 - v8))); cocos2d::CCNode::boundingBox((cocos2d::CCNode *)v11); if ( v9 <= (float)(v12 * 0.5) ) { a3 = 1; LABEL_5: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const cocos2d::CCPoint *)a2); cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition((int)a1, v11); (*(void (__fastcall **)(float *, int))(*(_DWORD *)a1 + 660))(a1, 256); return a3; } if ( a3 ) goto LABEL_5; return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source