{"type": "func", "start": 4038880, "end": 4039052, "name": "ColorSelectPopup::sliderChanged", "pseudocode": "// \n// ColorSelectPopup::sliderChanged from 0x3da0e0 to 0x3da18c (172 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 ColorSelectPopup::sliderChanged(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  float Value; // s16\n  const char *v5; // r1\n  cocos2d::CCString *v6; // r0\n  float v7; // r0\n  float v8; // r3\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  if ( a2->getTag(a2) == 1 )\n  {\n    a1->m_fadeTime = Value * 10.0;\n    ColorSelectPopup::updateDuration(a1);\n    ColorSelectPopup::updateDurLabel(a1);\n    return;\n  }\n  if ( a2->getTag(a2) == 2 )\n  {\n    v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", v5, Value);\n    v7 = cocos2d::CCString::floatValue(v6);\n    if ( v7 > 0.02 )\n    {\n      if ( v7 < 0.98 )\n      {\n        a1->m_opacity = v7;\nLABEL_10:\n        ColorSelectPopup::updateOpacity(a1);\n        ColorSelectPopup::updateOpacityLabel(a1);\n        return;\n      }\n      v8 = 1.0;\n    }\n    else\n    {\n      v8 = 0.0;\n    }\n    a1->m_opacity = v8;\n    goto LABEL_10;\n  }\n}", "assembly": "; \n; ColorSelectPopup::sliderChanged from 0x3da0e0 to 0x3da18c (172 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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x3da0e0\nMOV             R4, R0                                                 ; +0x2, 0x3da0e2\nVPUSH           {D8}                                                   ; +0x4, 0x3da0e4\nMOV             R0, R1; this                                           ; +0x8, 0x3da0e8\nMOV             R5, R1                                                 ; +0xa, 0x3da0ea\nBL              _ZN11SliderThumb8getValueEv; SliderThumb::getValue(void) ; +0xc, 0x3da0ec\nLDR             R3, [R5]                                               ; +0x10, 0x3da0f0\nLDR             R3, [R3,#0x20]                                         ; +0x12, 0x3da0f2\nVMOV            S16, R0                                                ; +0x14, 0x3da0f4\nMOV             R0, R5                                                 ; +0x18, 0x3da0f8\nBLX             R3                                                     ; +0x1a, 0x3da0fa\nCMP             R0, #1                                                 ; +0x1c, 0x3da0fc\nBNE             loc_3DA120                                             ; +0x1e, 0x3da0fe\nVMOV.F32        S15, #10.0                                             ; +0x20, 0x3da100\nMOV             R0, R4; this                                           ; +0x24, 0x3da104\nVMUL.F32        S16, S16, S15                                          ; +0x26, 0x3da106\nVSTR            S16, [R4,#0x2E0]                                       ; +0x2a, 0x3da10a\nBL              _ZN16ColorSelectPopup14updateDurationEv; ColorSelectPopup::updateDuration(void) ; +0x2e, 0x3da10e\nVPOP            {D8}                                                   ; +0x32, 0x3da112\nMOV             R0, R4; this                                           ; +0x36, 0x3da116\nPOP.W           {R3-R5,LR}                                             ; +0x38, 0x3da118\nB.W             _ZN16ColorSelectPopup14updateDurLabelEv; ColorSelectPopup::updateDurLabel(void) ; +0x3c, 0x3da11c\nLDR             R3, [R5]                                               ; +0x40, 0x3da120\nMOV             R0, R5                                                 ; +0x42, 0x3da122\nLDR             R3, [R3,#0x20]                                         ; +0x44, 0x3da124\nBLX             R3                                                     ; +0x46, 0x3da126\nCMP             R0, #2                                                 ; +0x48, 0x3da128\nBNE             loc_3DA186                                             ; +0x4a, 0x3da12a\nVCVT.F64.F32    D7, S16                                                ; +0x4c, 0x3da12c\nLDR             R0, =(a02f_0 - 0x3DA136); \"%.02f\"                      ; +0x50, 0x3da130\nADD             R0, PC; \"%.02f\"                                        ; +0x52, 0x3da132\nVMOV            R2, R3, D7                                             ; +0x54, 0x3da134\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x58, 0x3da138\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x5c, 0x3da13c\nVLDR            S14, =0.02                                             ; +0x60, 0x3da140\nVMOV            S15, R0                                                ; +0x64, 0x3da144\nVCMPE.F32       S15, S14                                               ; +0x68, 0x3da148\nVMRS            APSR_nzcv, FPSCR                                       ; +0x6c, 0x3da14c\nBHI             loc_3DA156                                             ; +0x70, 0x3da150\nMOVS            R3, #0                                                 ; +0x72, 0x3da152\nB               loc_3DA16E                                             ; +0x74, 0x3da154\nVLDR            S14, =0.98                                             ; +0x76, 0x3da156\nVCMPE.F32       S15, S14                                               ; +0x7a, 0x3da15a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x7e, 0x3da15e\nBGE             loc_3DA16A                                             ; +0x82, 0x3da162\nSTR.W           R0, [R4,#0x2EC]                                        ; +0x84, 0x3da164\nB               loc_3DA172                                             ; +0x88, 0x3da168\nMOV.W           R3, #0x3F800000                                        ; +0x8a, 0x3da16a\nSTR.W           R3, [R4,#0x2EC]                                        ; +0x8e, 0x3da16e\nMOV             R0, R4; this                                           ; +0x92, 0x3da172\nBL              _ZN16ColorSelectPopup13updateOpacityEv; ColorSelectPopup::updateOpacity(void) ; +0x94, 0x3da174\nVPOP            {D8}                                                   ; +0x98, 0x3da178\nMOV             R0, R4; this                                           ; +0x9c, 0x3da17c\nPOP.W           {R3-R5,LR}                                             ; +0x9e, 0x3da17e\nB.W             _ZN16ColorSelectPopup18updateOpacityLabelEv; ColorSelectPopup::updateOpacityLabel(void) ; +0xa2, 0x3da182\nVPOP            {D8}                                                   ; +0xa6, 0x3da186\nPOP             {R3-R5,PC}                                             ; +0xaa, 0x3da18a", "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"}