{"type": "func", "start": 6442486736, "end": 6442486879, "name": "cocos2d::extension::CCControlPotentiometer::setValue", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::setValue from 0x180008bd0 to 0x180008c5f (143 bytes)\n// \n// 6 xrefs:\n// > cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite @ 0x180008b3a\n// > cocos2d::extension::CCControlPotentiometer::setMinimumValue @ 0x180008c9b\n// > cocos2d::extension::CCControlPotentiometer::setMaximumValue @ 0x180008cdb\n// > cocos2d::extension::CCControlPotentiometer::potentiometerMoved @ 0x180009196\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b8d0\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:37 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControlPotentiometer::setValue(\n        cocos2d::extension::CCControlPotentiometer *this,\n        float a2)\n{\n  float v2; // xmm2_4\n  float v4; // xmm6_4\n  float v5; // xmm3_4\n  float v6; // xmm6_4\n\n  v2 = *((float *)this + 125);\n  v4 = *((float *)this + 126);\n  v5 = v4 - v2;\n  v6 = fminf(v4, fmaxf(v2, a2));\n  *((float *)this + 124) = v6;\n  cocos2d::CCProgressTimer::setPercentage(\n    *((cocos2d::CCProgressTimer **)this + 60),\n    (float)((float)(v6 - v2) / v5) * 100.0);\n  (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 59) + 352LL))(*((_QWORD *)this + 59));\n  (*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, __int64))(*(_QWORD *)this + 1088LL))(this, 256);\n}", "assembly": "; \n; cocos2d::extension::CCControlPotentiometer::setValue from 0x180008bd0 to 0x180008c5f (143 bytes)\n; \n; 6 xrefs:\n; > cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite @ 0x180008b3a\n; > cocos2d::extension::CCControlPotentiometer::setMinimumValue @ 0x180008c9b\n; > cocos2d::extension::CCControlPotentiometer::setMaximumValue @ 0x180008cdb\n; > cocos2d::extension::CCControlPotentiometer::potentiometerMoved @ 0x180009196\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b8d0\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:37 +0000\n; \npush    rbx                                                            ; +0x0, 0x180008bd0\nsub     rsp, 30h                                                       ; +0x2, 0x180008bd2\nmovss   xmm2, dword ptr [rcx+1F4h]                                     ; +0x6, 0x180008bd6\nmov     rbx, rcx                                                       ; +0xe, 0x180008bde\nmovss   xmm3, dword ptr [rcx+1F8h]                                     ; +0x11, 0x180008be1\nmovaps  xmm0, xmm2                                                     ; +0x19, 0x180008be9\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x1c, 0x180008bec\nmaxss   xmm0, xmm1                                                     ; +0x21, 0x180008bf1\nmovaps  xmm6, xmm3                                                     ; +0x25, 0x180008bf5\nsubss   xmm3, xmm2                                                     ; +0x28, 0x180008bf8\nminss   xmm6, xmm0                                                     ; +0x2c, 0x180008bfc\nmovss   dword ptr [rcx+1F0h], xmm6                                     ; +0x30, 0x180008c00\nsubss   xmm6, xmm2                                                     ; +0x38, 0x180008c08\nmov     rcx, [rcx+1E0h]                                                ; +0x3c, 0x180008c0c\ndivss   xmm6, xmm3                                                     ; +0x43, 0x180008c13\nmovaps  xmm1, xmm6                                                     ; +0x47, 0x180008c17\nmulss   xmm1, cs:dword_18002BC80                                       ; +0x4a, 0x180008c1a\ncall    cs:?setPercentage@CCProgressTimer@cocos2d@@QEAAXM@Z; cocos2d::CCProgressTimer::setPercentage(float) ; +0x52, 0x180008c22\nmov     rcx, [rbx+1D8h]                                                ; +0x58, 0x180008c28\nmulss   xmm6, cs:dword_18002BC90                                       ; +0x5f, 0x180008c2f\nmov     rax, [rcx]                                                     ; +0x67, 0x180008c37\nmovaps  xmm1, xmm6                                                     ; +0x6a, 0x180008c3a\ncall    qword ptr [rax+160h]                                           ; +0x6d, 0x180008c3d\nmov     rax, [rbx]                                                     ; +0x73, 0x180008c43\nmov     edx, 100h                                                      ; +0x76, 0x180008c46\nmov     rcx, rbx                                                       ; +0x7b, 0x180008c4b\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x7e, 0x180008c4e\nadd     rsp, 30h                                                       ; +0x83, 0x180008c53\npop     rbx                                                            ; +0x87, 0x180008c57\njmp     qword ptr [rax+440h]                                           ; +0x88, 0x180008c58", "xrefs": ["cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite @ 0x180008b3a", "cocos2d::extension::CCControlPotentiometer::setMinimumValue @ 0x180008c9b", "cocos2d::extension::CCControlPotentiometer::setMaximumValue @ 0x180008cdb", "cocos2d::extension::CCControlPotentiometer::potentiometerMoved @ 0x180009196", "<???> @ 0x180032408", "<???> @ 0x18004b8d0"], "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"}