{"type": "func", "start": 5369930016, "end": 5369930241, "name": "ColorSelectPopup::sliderChanged", "pseudocode": "// \n// ColorSelectPopup::sliderChanged from 0x14012a120 to 0x14012a201 (225 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::init @ 0x1401271e9\n// > ColorSelectPopup::init @ 0x1401273bf\n// > <???> @ 0x140916afc\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 11:27:00 +0000\n// \n\nvoid __fastcall ColorSelectPopup::sliderChanged(__int64 a1, float *a2)\n{\n  float Value; // xmm0_4\n  cocos2d::CCString *v5; // rax\n  float v6; // xmm0_4\n\n  Value = SliderThumb::getValue(a2);\n  if ( (*(unsigned int (__fastcall **)(float *))(*(_QWORD *)a2 + 56LL))(a2) == 1 )\n  {\n    *(float *)(a1 + 1112) = Value * 10.0;\n    ColorSelectPopup::updateDuration(a1);\n    ColorSelectPopup::updateDurLabel(a1);\n  }\n  else if ( (*(unsigned int (__fastcall **)(float *))(*(_QWORD *)a2 + 56LL))(a2) == 2 )\n  {\n    v5 = cocos2d::CCString::createWithFormat(\"%.02f\", Value);\n    v6 = cocos2d::CCString::floatValue(v5);\n    *(float *)(a1 + 1124) = v6;\n    if ( v6 > 0.02 )\n    {\n      if ( v6 >= 0.98000002 )\n        *(_DWORD *)(a1 + 1124) = 1065353216;\n    }\n    else\n    {\n      *(_DWORD *)(a1 + 1124) = 0;\n    }\n    ColorSelectPopup::updateOpacity(a1);\n    ColorSelectPopup::updateOpacityLabel(a1);\n  }\n}", "assembly": "; \n; ColorSelectPopup::sliderChanged from 0x14012a120 to 0x14012a201 (225 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::init @ 0x1401271e9\n; > ColorSelectPopup::init @ 0x1401273bf\n; > <???> @ 0x140916afc\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 11:27:00 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14012a120\npush    rdi                                                            ; +0x5, 0x14012a125\nsub     rsp, 30h                                                       ; +0x6, 0x14012a126\nmov     rbx, rcx                                                       ; +0xa, 0x14012a12a\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xd, 0x14012a12d\nmov     rcx, rdx                                                       ; +0x12, 0x14012a132\nmov     rdi, rdx                                                       ; +0x15, 0x14012a135\ncall    SliderThumb__getValue                                          ; +0x18, 0x14012a138\nmov     rax, [rdi]                                                     ; +0x1d, 0x14012a13d\nmov     rcx, rdi                                                       ; +0x20, 0x14012a140\nmovaps  xmm6, xmm0                                                     ; +0x23, 0x14012a143\ncall    qword ptr [rax+38h]                                            ; +0x26, 0x14012a146\ncmp     eax, 1                                                         ; +0x29, 0x14012a149\njnz     short loc_14012A17D                                            ; +0x2c, 0x14012a14c\nmulss   xmm6, cs:flt_1408354EC                                         ; +0x2e, 0x14012a14e\nmov     rcx, rbx                                                       ; +0x36, 0x14012a156\nmovss   dword ptr [rbx+458h], xmm6                                     ; +0x39, 0x14012a159\ncall    ColorSelectPopup__updateDuration                               ; +0x41, 0x14012a161\nmov     rcx, rbx                                                       ; +0x46, 0x14012a166\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x49, 0x14012a169\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x4e, 0x14012a16e\nadd     rsp, 30h                                                       ; +0x53, 0x14012a173\npop     rdi                                                            ; +0x57, 0x14012a177\njmp     ColorSelectPopup__updateDurLabel                               ; +0x58, 0x14012a178\nmov     rax, [rdi]                                                     ; +0x5d, 0x14012a17d\nmov     rcx, rdi                                                       ; +0x60, 0x14012a180\ncall    qword ptr [rax+38h]                                            ; +0x63, 0x14012a183\ncmp     eax, 2                                                         ; +0x66, 0x14012a186\njnz     short loc_14012A1F1                                            ; +0x69, 0x14012a189\nxorps   xmm1, xmm1                                                     ; +0x6b, 0x14012a18b\nlea     rcx, a02f; \"%.02f\"                                             ; +0x6e, 0x14012a18e\ncvtss2sd xmm1, xmm6                                                    ; +0x75, 0x14012a195\nmovq    rdx, xmm1                                                      ; +0x79, 0x14012a199\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x7e, 0x14012a19e\nmov     rcx, rax                                                       ; +0x84, 0x14012a1a4\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x87, 0x14012a1a7\nmovss   xmm1, cs:dword_140834DB0                                       ; +0x8d, 0x14012a1ad\ncomiss  xmm1, xmm0                                                     ; +0x95, 0x14012a1b5\nmovss   dword ptr [rbx+464h], xmm0                                     ; +0x98, 0x14012a1b8\njb      short loc_14012A1CE                                            ; +0xa0, 0x14012a1c0\nmov     dword ptr [rbx+464h], 0                                        ; +0xa2, 0x14012a1c2\njmp     short loc_14012A1E1                                            ; +0xac, 0x14012a1cc\ncomiss  xmm0, cs:dword_140835068                                       ; +0xae, 0x14012a1ce\njb      short loc_14012A1E1                                            ; +0xb5, 0x14012a1d5\nmov     dword ptr [rbx+464h], 3F800000h                                ; +0xb7, 0x14012a1d7\nmov     rcx, rbx                                                       ; +0xc1, 0x14012a1e1\ncall    ColorSelectPopup__updateOpacity                                ; +0xc4, 0x14012a1e4\nmov     rcx, rbx                                                       ; +0xc9, 0x14012a1e9\ncall    ColorSelectPopup__updateOpacityLabel                           ; +0xcc, 0x14012a1ec\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd1, 0x14012a1f1\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xd6, 0x14012a1f6\nadd     rsp, 30h                                                       ; +0xdb, 0x14012a1fb\npop     rdi                                                            ; +0xdf, 0x14012a1ff\nretn                                                                   ; +0xe0, 0x14012a200", "xrefs": ["ColorSelectPopup::init @ 0x1401271e9", "ColorSelectPopup::init @ 0x1401273bf", "<???> @ 0x140916afc"], "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"}