{"type": "func", "start": 4943796, "end": 4943874, "name": "ConfigureHSVWidget::onToggleSConst", "pseudocode": "// \n// ConfigureHSVWidget::onToggleSConst from 0x4b6fb4 to 0x4b7002 (78 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid ConfigureHSVWidget::onToggleSConst(ConfigureHSVWidget *a1, cocos2d::CCObject *a2)\n{\n  float v3; // s15\n  HSVWidgetDelegate *m_delegate; // r0\n\n  a1->m_hsv.absoluteSaturation ^= 1u;\n  Slider::setValue(a1->m_saturationSlider, 0.5);\n  v3 = 0.0;\n  if ( !a1->m_hsv.absoluteSaturation )\n    v3 = 1.0;\n  a1->m_hsv.s = v3;\n  ConfigureHSVWidget::updateLabels(a1);\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    m_delegate->hsvChanged(m_delegate, a1);\n}", "assembly": "; \n; ConfigureHSVWidget::onToggleSConst from 0x4b6fb4 to 0x4b7002 (78 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDRB.W          R3, [R0,#0x130]                                        ; +0x0, 0x4b6fb4\nMOV.W           R1, #0x3F000000; float                                 ; +0x4, 0x4b6fb8\nPUSH            {R4,LR}                                                ; +0x8, 0x4b6fbc\nEOR.W           R3, R3, #1                                             ; +0xa, 0x4b6fbe\nMOV             R4, R0                                                 ; +0xe, 0x4b6fc2\nSTRB.W          R3, [R0,#0x130]                                        ; +0x10, 0x4b6fc4\nLDR.W           R0, [R0,#0x11C]; this                                  ; +0x14, 0x4b6fc8\nBL              _ZN6Slider8setValueEf; Slider::setValue(float)         ; +0x18, 0x4b6fcc\nVMOV.F32        S14, #1.0                                              ; +0x1c, 0x4b6fd0\nLDRB.W          R3, [R4,#0x130]                                        ; +0x20, 0x4b6fd4\nMOV             R0, R4; this                                           ; +0x24, 0x4b6fd8\nVLDR            S15, =0.0                                              ; +0x26, 0x4b6fda\nCMP             R3, #0                                                 ; +0x2a, 0x4b6fde\nIT EQ                                                                  ; +0x2c, 0x4b6fe0\nVMOVEQ.F32      S15, S14                                               ; +0x2e, 0x4b6fe2\nVSTR            S15, [R4,#0x128]                                       ; +0x32, 0x4b6fe6\nBL              _ZN18ConfigureHSVWidget12updateLabelsEv; ConfigureHSVWidget::updateLabels(void) ; +0x36, 0x4b6fea\nLDR.W           R0, [R4,#0x138]                                        ; +0x3a, 0x4b6fee\nCBZ             R0, locret_4B7000                                      ; +0x3e, 0x4b6ff2\nLDR             R3, [R0]                                               ; +0x40, 0x4b6ff4\nMOV             R1, R4                                                 ; +0x42, 0x4b6ff6\nPOP.W           {R4,LR}                                                ; +0x44, 0x4b6ff8\nLDR             R3, [R3,#4]                                            ; +0x48, 0x4b6ffc\nBX              R3                                                     ; +0x4a, 0x4b6ffe\nPOP             {R4,PC}                                                ; +0x4c, 0x4b7000", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}