{"type": "func", "start": 5373254720, "end": 5373255253, "name": "SetupShakePopup::sliderChanged", "pseudocode": "// \n// SetupShakePopup::sliderChanged from 0x140455c40 to 0x140455e55 (533 bytes)\n// \n// 2 xrefs:\n// > SetupShakePopup::init @ 0x14045575e\n// > <???> @ 0x1406da8e0\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 SetupShakePopup::sliderChanged(SetupShakePopup *a1, cocos2d::CCObject *a2)\n{\n  float Value; // xmm0_4\n  float m_duration; // xmm0_4\n  const char *CString; // rax\n  cocos2d::CCString *v7; // rax\n  size_t v8; // r8\n  CCTextInputNode *m_durationInput; // rcx\n  float m_interval; // xmm0_4\n  const char *v11; // rax\n  cocos2d::CCString *v12; // rax\n  size_t v13; // r8\n  float m_strength; // xmm0_4\n  const char *v15; // rax\n  cocos2d::CCString *v16; // rax\n  size_t v17; // r8\n  __int128 v18; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v19; // [rsp+30h] [rbp-28h]\n  __int64 v20; // [rsp+38h] [rbp-20h]\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  if ( a2->getTag(a2) == 3 )\n  {\n    a1->m_duration = Value + Value;\n    GJFollowCommandLayer::updateDuration((__int64)a1);\n    m_duration = a1->m_duration;\n    CString = \"Mixed\";\n    a1->m_disableTextDelegate = 1;\n    if ( m_duration != -99999.0 )\n    {\n      v7 = cocos2d::CCString::createWithFormat(\"%.02f\", m_duration);\n      CString = cocos2d::CCString::getCString(v7);\n    }\n    v18 = 0;\n    v19 = 0;\n    v8 = -1;\n    v20 = 0;\n    do\n      ++v8;\n    while ( CString[v8] );\n    sub_14003A930(&v18, CString, v8);\n    m_durationInput = a1->m_durationInput;\n  }\n  else if ( a2->getTag(a2) == 7 )\n  {\n    a1->m_interval = Value * 0.1;\n    SetupShakePopup::updateInterval(a1);\n    m_interval = a1->m_interval;\n    v11 = \"Mixed\";\n    a1->m_disableTextDelegate = 1;\n    if ( m_interval != -99999.0 )\n    {\n      v12 = cocos2d::CCString::createWithFormat(\"%.02f\", m_interval);\n      v11 = cocos2d::CCString::getCString(v12);\n    }\n    v18 = 0;\n    v19 = 0;\n    v13 = -1;\n    v20 = 0;\n    do\n      ++v13;\n    while ( v11[v13] );\n    sub_14003A930(&v18, v11, v13);\n    m_durationInput = a1->m_intervalInput;\n  }\n  else\n  {\n    a1->m_strength = Value * 5.0;\n    SetupShakePopup::updateShake(a1);\n    m_strength = a1->m_strength;\n    v15 = \"Mixed\";\n    a1->m_disableTextDelegate = 1;\n    if ( m_strength != -99999.0 )\n    {\n      v16 = cocos2d::CCString::createWithFormat(\"%.02f\", m_strength);\n      v15 = cocos2d::CCString::getCString(v16);\n    }\n    v18 = 0;\n    v19 = 0;\n    v17 = -1;\n    v20 = 0;\n    do\n      ++v17;\n    while ( v15[v17] );\n    sub_14003A930(&v18, v15, v17);\n    m_durationInput = a1->m_strengthInput;\n  }\n  CCTextInputNode::setString((__int64)m_durationInput, &v18);\n  a1->m_disableTextDelegate = 0;\n}", "assembly": "; \n; SetupShakePopup::sliderChanged from 0x140455c40 to 0x140455e55 (533 bytes)\n; \n; 2 xrefs:\n; > SetupShakePopup::init @ 0x14045575e\n; > <???> @ 0x1406da8e0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140455c40\npush    rdi                                                            ; +0x5, 0x140455c45\nsub     rsp, 50h                                                       ; +0x6, 0x140455c46\nmov     rbx, rcx                                                       ; +0xa, 0x140455c4a\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xd, 0x140455c4d\nmov     rcx, rdx                                                       ; +0x12, 0x140455c52\nmov     rdi, rdx                                                       ; +0x15, 0x140455c55\ncall    SliderThumb__getValue                                          ; +0x18, 0x140455c58\nmov     rax, [rdi]                                                     ; +0x1d, 0x140455c5d\nmov     rcx, rdi                                                       ; +0x20, 0x140455c60\nmovaps  xmm6, xmm0                                                     ; +0x23, 0x140455c63\ncall    qword ptr [rax+38h]                                            ; +0x26, 0x140455c66\ncmp     eax, 3                                                         ; +0x29, 0x140455c69\njnz     loc_140455D02                                                  ; +0x2c, 0x140455c6c\naddss   xmm6, xmm6                                                     ; +0x32, 0x140455c72\nmov     rcx, rbx                                                       ; +0x36, 0x140455c76\nmovss   dword ptr [rbx+3B8h], xmm6                                     ; +0x39, 0x140455c79\ncall    GJFollowCommandLayer__updateDuration; Merged with: GJFollowCommandLayer::updateDuration, GJPFollowCommandLayer::updateDuration, SetupCameraOffsetTrigger::updateDuration, SetupMGTrigger::updateDuration, SetupRandTriggerPopup::updateChance, SetupShakePopup::updateDuration ; +0x41, 0x140455c81\nmovss   xmm0, dword ptr [rbx+3B8h]                                     ; +0x46, 0x140455c86\nlea     rax, aMixed; \"Mixed\"                                           ; +0x4e, 0x140455c8e\nucomiss xmm0, cs:dword_140623AFC                                       ; +0x55, 0x140455c95\nmov     byte ptr [rbx+2CCh], 1                                         ; +0x5c, 0x140455c9c\njp      short loc_140455CA7                                            ; +0x63, 0x140455ca3\njz      short loc_140455CC5                                            ; +0x65, 0x140455ca5\ncvtps2pd xmm1, xmm0                                                    ; +0x67, 0x140455ca7\nlea     rcx, a02f; \"%.02f\"                                             ; +0x6a, 0x140455caa\nmovq    rdx, xmm1                                                      ; +0x71, 0x140455cb1\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x76, 0x140455cb6\nmov     rcx, rax                                                       ; +0x7c, 0x140455cbc\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x7f, 0x140455cbf\nxor     ecx, ecx                                                       ; +0x85, 0x140455cc5\nxorps   xmm0, xmm0                                                     ; +0x87, 0x140455cc7\nmovups  [rsp+58h+var_38], xmm0                                         ; +0x8a, 0x140455cca\nmov     [rsp+58h+var_28], rcx                                          ; +0x8f, 0x140455ccf\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x94, 0x140455cd4\nmov     [rsp+58h+var_20], rcx                                          ; +0x9b, 0x140455cdb\ninc     r8                                                             ; +0xa0, 0x140455ce0\ncmp     [rax+r8], cl                                                   ; +0xa3, 0x140455ce3\njnz     short loc_140455CE0                                            ; +0xa7, 0x140455ce7\nmov     rdx, rax                                                       ; +0xa9, 0x140455ce9\nlea     rcx, [rsp+58h+var_38]                                          ; +0xac, 0x140455cec\ncall    sub_14003A930                                                  ; +0xb1, 0x140455cf1\nmov     rcx, [rbx+3A8h]                                                ; +0xb6, 0x140455cf6\njmp     loc_140455E34                                                  ; +0xbd, 0x140455cfd\nmov     rax, [rdi]                                                     ; +0xc2, 0x140455d02\nmov     rcx, rdi                                                       ; +0xc5, 0x140455d05\ncall    qword ptr [rax+38h]                                            ; +0xc8, 0x140455d08\nmov     rcx, rbx                                                       ; +0xcb, 0x140455d0b\ncmp     eax, 7                                                         ; +0xce, 0x140455d0e\njnz     loc_140455DA8                                                  ; +0xd1, 0x140455d11\nmulss   xmm6, cs:dword_140622A10                                       ; +0xd7, 0x140455d17\nmovss   dword ptr [rbx+3E8h], xmm6                                     ; +0xdf, 0x140455d1f\ncall    SetupShakePopup__updateInterval                                ; +0xe7, 0x140455d27\nmovss   xmm0, dword ptr [rbx+3E8h]                                     ; +0xec, 0x140455d2c\nlea     rax, aMixed; \"Mixed\"                                           ; +0xf4, 0x140455d34\nucomiss xmm0, cs:dword_140623AFC                                       ; +0xfb, 0x140455d3b\nmov     byte ptr [rbx+2CCh], 1                                         ; +0x102, 0x140455d42\njp      short loc_140455D4D                                            ; +0x109, 0x140455d49\njz      short loc_140455D6B                                            ; +0x10b, 0x140455d4b\ncvtps2pd xmm1, xmm0                                                    ; +0x10d, 0x140455d4d\nlea     rcx, a02f; \"%.02f\"                                             ; +0x110, 0x140455d50\nmovq    rdx, xmm1                                                      ; +0x117, 0x140455d57\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x11c, 0x140455d5c\nmov     rcx, rax                                                       ; +0x122, 0x140455d62\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x125, 0x140455d65\nxor     ecx, ecx                                                       ; +0x12b, 0x140455d6b\nxorps   xmm0, xmm0                                                     ; +0x12d, 0x140455d6d\nmovups  [rsp+58h+var_38], xmm0                                         ; +0x130, 0x140455d70\nmov     [rsp+58h+var_28], rcx                                          ; +0x135, 0x140455d75\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x13a, 0x140455d7a\nmov     [rsp+58h+var_20], rcx                                          ; +0x141, 0x140455d81\ninc     r8                                                             ; +0x146, 0x140455d86\ncmp     [rax+r8], cl                                                   ; +0x149, 0x140455d89\njnz     short loc_140455D86                                            ; +0x14d, 0x140455d8d\nmov     rdx, rax                                                       ; +0x14f, 0x140455d8f\nlea     rcx, [rsp+58h+var_38]                                          ; +0x152, 0x140455d92\ncall    sub_14003A930                                                  ; +0x157, 0x140455d97\nmov     rcx, [rbx+3D8h]                                                ; +0x15c, 0x140455d9c\njmp     loc_140455E34                                                  ; +0x163, 0x140455da3\nmulss   xmm6, cs:flt_140623010                                         ; +0x168, 0x140455da8\nmovss   dword ptr [rbx+3D0h], xmm6                                     ; +0x170, 0x140455db0\ncall    SetupShakePopup__updateShake                                   ; +0x178, 0x140455db8\nmovss   xmm0, dword ptr [rbx+3D0h]                                     ; +0x17d, 0x140455dbd\nlea     rax, aMixed; \"Mixed\"                                           ; +0x185, 0x140455dc5\nucomiss xmm0, cs:dword_140623AFC                                       ; +0x18c, 0x140455dcc\nmov     byte ptr [rbx+2CCh], 1                                         ; +0x193, 0x140455dd3\njp      short loc_140455DDE                                            ; +0x19a, 0x140455dda\njz      short loc_140455DFC                                            ; +0x19c, 0x140455ddc\ncvtps2pd xmm1, xmm0                                                    ; +0x19e, 0x140455dde\nlea     rcx, a02f; \"%.02f\"                                             ; +0x1a1, 0x140455de1\nmovq    rdx, xmm1                                                      ; +0x1a8, 0x140455de8\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1ad, 0x140455ded\nmov     rcx, rax                                                       ; +0x1b3, 0x140455df3\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1b6, 0x140455df6\nxor     ecx, ecx                                                       ; +0x1bc, 0x140455dfc\nxorps   xmm0, xmm0                                                     ; +0x1be, 0x140455dfe\nmovups  [rsp+58h+var_38], xmm0                                         ; +0x1c1, 0x140455e01\nmov     [rsp+58h+var_28], rcx                                          ; +0x1c6, 0x140455e06\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x1cb, 0x140455e0b\nmov     [rsp+58h+var_20], rcx                                          ; +0x1d2, 0x140455e12\ninc     r8                                                             ; +0x1d7, 0x140455e17\ncmp     [rax+r8], cl                                                   ; +0x1da, 0x140455e1a\njnz     short loc_140455E17                                            ; +0x1de, 0x140455e1e\nmov     rdx, rax                                                       ; +0x1e0, 0x140455e20\nlea     rcx, [rsp+58h+var_38]                                          ; +0x1e3, 0x140455e23\ncall    sub_14003A930                                                  ; +0x1e8, 0x140455e28\nmov     rcx, [rbx+3C0h]                                                ; +0x1ed, 0x140455e2d\nlea     rdx, [rsp+58h+var_38]                                          ; +0x1f4, 0x140455e34\ncall    CCTextInputNode__setString                                     ; +0x1f9, 0x140455e39\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x1fe, 0x140455e3e\nmov     byte ptr [rbx+2CCh], 0                                         ; +0x203, 0x140455e43\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x20a, 0x140455e4a\nadd     rsp, 50h                                                       ; +0x20f, 0x140455e4f\npop     rdi                                                            ; +0x213, 0x140455e53\nretn                                                                   ; +0x214, 0x140455e54", "xrefs": ["SetupShakePopup::init @ 0x14045575e", "<???> @ 0x1406da8e0"], "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"}