{"type": "func", "start": 5109308, "end": 5109480, "name": "ColorSelectPopup::sliderChanged", "pseudocode": "// \n// ColorSelectPopup::sliderChanged from 0x4df63c to 0x4df6e8 (172 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:50:59 +0000\n// \n\nint __fastcall ColorSelectPopup::sliderChanged(ColorSelectPopup *this, cocos2d::CCObject *a2)\n{\n  float v4; // s16\n  const char *v5; // r1\n  int result; // r0\n  const char *v7; // r1\n  cocos2d::CCString *v8; // r0\n  float v9; // r0\n  int v10; // r3\n  const char *v11; // r1\n\n  v4 = COERCE_FLOAT(SliderThumb::getValue(a2));\n  if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) == 1 )\n  {\n    *((float *)this + 192) = v4 * 10.0;\n    ColorSelectPopup::updateDuration(this);\n    return ColorSelectPopup::updateDurLabel(this, v5);\n  }\n  result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  if ( result == 2 )\n  {\n    v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", v7, v4);\n    v9 = COERCE_FLOAT(cocos2d::CCString::floatValue(v8));\n    if ( v9 > 0.02 )\n    {\n      if ( v9 < 0.98 )\n      {\n        *((float *)this + 195) = v9;\nLABEL_10:\n        ColorSelectPopup::updateOpacity(this);\n        return ColorSelectPopup::updateOpacityLabel((int)this, v11);\n      }\n      v10 = 1065353216;\n    }\n    else\n    {\n      v10 = 0;\n    }\n    *((_DWORD *)this + 195) = v10;\n    goto LABEL_10;\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::sliderChanged from 0x4df63c to 0x4df6e8 (172 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:50:59 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x4df63c\nMOV             R4, R0                                                 ; +0x2, 0x4df63e\nVPUSH           {D8}                                                   ; +0x4, 0x4df640\nMOV             R0, R1; this                                           ; +0x8, 0x4df644\nMOV             R5, R1                                                 ; +0xa, 0x4df646\nBL              _ZN11SliderThumb8getValueEv; SliderThumb::getValue(void) ; +0xc, 0x4df648\nLDR             R3, [R5]                                               ; +0x10, 0x4df64c\nLDR             R3, [R3,#0x20]                                         ; +0x12, 0x4df64e\nVMOV            S16, R0                                                ; +0x14, 0x4df650\nMOV             R0, R5                                                 ; +0x18, 0x4df654\nBLX             R3                                                     ; +0x1a, 0x4df656\nCMP             R0, #1                                                 ; +0x1c, 0x4df658\nBNE             loc_4DF67C                                             ; +0x1e, 0x4df65a\nVMOV.F32        S15, #10.0                                             ; +0x20, 0x4df65c\nMOV             R0, R4; this                                           ; +0x24, 0x4df660\nVMUL.F32        S16, S16, S15                                          ; +0x26, 0x4df662\nVSTR            S16, [R4,#0x300]                                       ; +0x2a, 0x4df666\nBL              _ZN16ColorSelectPopup14updateDurationEv; ColorSelectPopup::updateDuration(void) ; +0x2e, 0x4df66a\nVPOP            {D8}                                                   ; +0x32, 0x4df66e\nMOV             R0, R4; this                                           ; +0x36, 0x4df672\nPOP.W           {R3-R5,LR}                                             ; +0x38, 0x4df674\nB.W             _ZN16ColorSelectPopup14updateDurLabelEv; ColorSelectPopup::updateDurLabel(void) ; +0x3c, 0x4df678\nLDR             R3, [R5]                                               ; +0x40, 0x4df67c\nMOV             R0, R5                                                 ; +0x42, 0x4df67e\nLDR             R3, [R3,#0x20]                                         ; +0x44, 0x4df680\nBLX             R3                                                     ; +0x46, 0x4df682\nCMP             R0, #2                                                 ; +0x48, 0x4df684\nBNE             loc_4DF6E2                                             ; +0x4a, 0x4df686\nVCVT.F64.F32    D7, S16                                                ; +0x4c, 0x4df688\nLDR             R0, =(a02f_0 - 0x4DF692); \"%.02f\"                      ; +0x50, 0x4df68c\nADD             R0, PC; \"%.02f\"                                        ; +0x52, 0x4df68e\nVMOV            R2, R3, D7                                             ; +0x54, 0x4df690\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x58, 0x4df694\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x5c, 0x4df698\nVLDR            S14, =0.02                                             ; +0x60, 0x4df69c\nVMOV            S15, R0                                                ; +0x64, 0x4df6a0\nVCMPE.F32       S15, S14                                               ; +0x68, 0x4df6a4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x6c, 0x4df6a8\nBHI             loc_4DF6B2                                             ; +0x70, 0x4df6ac\nMOVS            R3, #0                                                 ; +0x72, 0x4df6ae\nB               loc_4DF6CA                                             ; +0x74, 0x4df6b0\nVLDR            S14, =0.98                                             ; +0x76, 0x4df6b2\nVCMPE.F32       S15, S14                                               ; +0x7a, 0x4df6b6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x7e, 0x4df6ba\nBGE             loc_4DF6C6                                             ; +0x82, 0x4df6be\nSTR.W           R0, [R4,#0x30C]                                        ; +0x84, 0x4df6c0\nB               loc_4DF6CE                                             ; +0x88, 0x4df6c4\nMOV.W           R3, #0x3F800000                                        ; +0x8a, 0x4df6c6\nSTR.W           R3, [R4,#0x30C]                                        ; +0x8e, 0x4df6ca\nMOV             R0, R4; this                                           ; +0x92, 0x4df6ce\nBL              _ZN16ColorSelectPopup13updateOpacityEv; ColorSelectPopup::updateOpacity(void) ; +0x94, 0x4df6d0\nVPOP            {D8}                                                   ; +0x98, 0x4df6d4\nMOV             R0, R4; this                                           ; +0x9c, 0x4df6d8\nPOP.W           {R3-R5,LR}                                             ; +0x9e, 0x4df6da\nB.W             _ZN16ColorSelectPopup18updateOpacityLabelEv; ColorSelectPopup::updateOpacityLabel(void) ; +0xa2, 0x4df6de\nVPOP            {D8}                                                   ; +0xa6, 0x4df6e2\nPOP             {R3-R5,PC}                                             ; +0xaa, 0x4df6e6", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}