// // cocos2d::ccpClamp from 0x1001aea30 to 0x1001aea7c (76 bytes) // // 1 xrefs: // > cocos2d::CCProgressTimer::setMidpoint @ 0x1003fe328 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCPoint __fastcall cocos2d::ccpClamp( const cocos2d::CCPoint *a1, const cocos2d::CCPoint *a2, const cocos2d::CCPoint *a3) { _DWORD *v3; // x8 __n128 v4; // q0 __n128 v5; // q1 float y; // s3 float x; // s4 float v8; // s5 float v9; // s2 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v4.n128_u32[0] = LODWORD(a2->x); v5.n128_u32[0] = LODWORD(a2->y); y = a3->y; if ( a2->x <= a3->x ) x = a3->x; else x = a2->x; if ( a2->x > a3->x ) v4.n128_u32[0] = LODWORD(a3->x); v8 = a1->y; if ( x > a1->x ) x = a1->x; if ( v4.n128_f32[0] <= a1->x ) v4.n128_f32[0] = x; if ( v5.n128_f32[0] <= y ) v9 = a3->y; else v9 = a2->y; if ( v5.n128_f32[0] > y ) v5.n128_u32[0] = LODWORD(a3->y); if ( v9 > v8 ) v9 = a1->y; if ( v5.n128_f32[0] <= v8 ) v5.n128_f32[0] = v9; sub_100022980(v4, v5, v3); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source