// // cocos2d::extension::CCControlSwitch::setOn from 0x18000c9d0 to 0x18000ca33 (99 bytes) // // 2 xrefs: // > @ 0x180032408 // > @ 0x18004bc78 // // This function is hookable on this platform (idp: pc, 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 12:15:38 +0000 // void __fastcall cocos2d::extension::CCControlSwitch::setOn( cocos2d::extension::CCControlSwitch *this, unsigned __int8 a2) { float *v3; // rcx float v4; // xmm0_4 float v5; // xmm1_4 *((_BYTE *)this + 485) = a2; v3 = *((float **)this + 59); v4 = v3[154]; v5 = v3[(a2 ^ 1LL) + 153]; if ( v4 < v5 ) v4 = fminf(v3[153], v5); v3[152] = v4; sub_18000C1C0((__int64)v3); (*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *, __int64))(*(_QWORD *)this + 1088LL))(this, 256); }