{"type": "func", "start": 6442502608, "end": 6442502707, "name": "cocos2d::extension::CCControlSwitch::setOn", "pseudocode": "// \n// cocos2d::extension::CCControlSwitch::setOn from 0x18000c9d0 to 0x18000ca33 (99 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bc78\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:38 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControlSwitch::setOn(\n        cocos2d::extension::CCControlSwitch *this,\n        unsigned __int8 a2)\n{\n  float *v3; // rcx\n  float v4; // xmm0_4\n  float v5; // xmm1_4\n\n  *((_BYTE *)this + 485) = a2;\n  v3 = *((float **)this + 59);\n  v4 = v3[154];\n  v5 = v3[(a2 ^ 1LL) + 153];\n  if ( v4 < v5 )\n    v4 = fminf(v3[153], v5);\n  v3[152] = v4;\n  sub_18000C1C0((__int64)v3);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *, __int64))(*(_QWORD *)this + 1088LL))(this, 256);\n}", "assembly": "; \n; cocos2d::extension::CCControlSwitch::setOn from 0x18000c9d0 to 0x18000ca33 (99 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bc78\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:38 +0000\n; \npush    rbx                                                            ; +0x0, 0x18000c9d0\nsub     rsp, 20h                                                       ; +0x2, 0x18000c9d2\nmov     [rcx+1E5h], dl                                                 ; +0x6, 0x18000c9d6\nmov     rbx, rcx                                                       ; +0xc, 0x18000c9dc\nmov     rcx, [rcx+1D8h]                                                ; +0xf, 0x18000c9df\nmovzx   eax, dl                                                        ; +0x16, 0x18000c9e6\nxor     rax, 1                                                         ; +0x19, 0x18000c9e9\nmovss   xmm0, dword ptr [rcx+268h]                                     ; +0x1d, 0x18000c9ed\nmovss   xmm1, dword ptr [rcx+rax*4+264h]                               ; +0x25, 0x18000c9f5\ncomiss  xmm0, xmm1                                                     ; +0x2e, 0x18000c9fe\njnb     short loc_18000CA0F                                            ; +0x31, 0x18000ca01\nmovss   xmm0, dword ptr [rcx+264h]                                     ; +0x33, 0x18000ca03\nminss   xmm0, xmm1                                                     ; +0x3b, 0x18000ca0b\nmovss   dword ptr [rcx+260h], xmm0                                     ; +0x3f, 0x18000ca0f\ncall    sub_18000C1C0                                                  ; +0x47, 0x18000ca17\nmov     rax, [rbx]                                                     ; +0x4c, 0x18000ca1c\nmov     edx, 100h                                                      ; +0x4f, 0x18000ca1f\nmov     rcx, rbx                                                       ; +0x54, 0x18000ca24\nadd     rsp, 20h                                                       ; +0x57, 0x18000ca27\npop     rbx                                                            ; +0x5b, 0x18000ca2b\njmp     qword ptr [rax+440h]                                           ; +0x5c, 0x18000ca2c", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004bc78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}