{"type": "func", "start": 5371498352, "end": 5371498991, "name": "SetupRotateCommandPopup::valueDidChange", "pseudocode": "// \n// SetupRotateCommandPopup::valueDidChange from 0x1402a8f70 to 0x1402a91ef (639 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14057d2f8\n// > <???> @ 0x14068ad44\n// > <???> @ 0x14068ad54\n// > <???> @ 0x1406d2198\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 SetupRotateCommandPopup::valueDidChange(SetupRotateCommandPopup *a1, int a2, float a3)\n{\n  int v4; // edx\n  int v5; // edx\n  int v6; // edx\n  int v7; // edx\n  int v8; // edx\n  bool v9; // di\n  CCMenuItemSpriteExtra *m_prevButton; // rcx\n\n  v4 = a2 - 100;\n  if ( v4 )\n  {\n    v5 = v4 - 38;\n    if ( v5 )\n    {\n      v6 = v5 - 62;\n      if ( v6 )\n      {\n        v7 = v6 - 194;\n        if ( v7 )\n        {\n          if ( v7 != 3 )\n            return;\n        }\n        else if ( a3 != 0.0 )\n        {\n          if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 100) )\n            a1->updateToggleItem(a1, 100, 0);\n          else\n            SetupTriggerPopup::updateValueControls(a1, 100, 0.0);\n          SetupTriggerPopup::valueChanged(a1, 100, 0.0);\n        }\n        SetupRotateCommandPopup::updateControlVisibility(a1);\n        return;\n      }\n      if ( a3 == 0.0 )\n        return;\n      if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 138) )\n        a1->updateToggleItem(a1, 138, 0);\n      else\n        SetupTriggerPopup::updateValueControls(a1, 138, 0.0);\n      v8 = 138;\n    }\n    else\n    {\n      if ( a3 == 0.0 )\n        return;\n      if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 200) )\n        a1->updateToggleItem(a1, 200, 0);\n      else\n        SetupTriggerPopup::updateValueControls(a1, 200, 0.0);\n      v8 = 200;\n    }\n    SetupTriggerPopup::valueChanged(a1, v8, 0.0);\n    if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 401) )\n      a1->updateToggleItem(a1, 401, 0);\n    else\n      SetupTriggerPopup::updateValueControls(a1, 401, 0.0);\n    SetupTriggerPopup::valueChanged(a1, 401, 0.0);\n  }\n  else\n  {\n    if ( a3 != 0.0 )\n    {\n      if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 394) )\n        a1->updateToggleItem(a1, 394, 0);\n      else\n        SetupTriggerPopup::updateValueControls(a1, 394, 0.0);\n      SetupTriggerPopup::valueChanged(a1, 394, 0.0);\n    }\n    SetupRotateCommandPopup::updateControlVisibility(a1);\n    v9 = a3 != 0.0;\n    m_prevButton = a1->m_prevButton;\n    if ( m_prevButton )\n    {\n      m_prevButton->setVisible(m_prevButton, v9);\n      a1->m_prevButton->setEnabled(a1->m_prevButton, v9);\n      a1->m_nextButton->setVisible(a1->m_nextButton, v9);\n      a1->m_nextButton->setEnabled(a1->m_nextButton, v9);\n    }\n  }\n}", "assembly": "; \n; SetupRotateCommandPopup::valueDidChange from 0x1402a8f70 to 0x1402a91ef (639 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14057d2f8\n; > <???> @ 0x14068ad44\n; > <???> @ 0x14068ad54\n; > <???> @ 0x1406d2198\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    rbx                                                            ; +0x0, 0x1402a8f70\nsub     rsp, 40h                                                       ; +0x2, 0x1402a8f72\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x6, 0x1402a8f76\nmovaps  xmm6, xmm2                                                     ; +0xb, 0x1402a8f7b\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0xe, 0x1402a8f7e\nmov     rbx, rcx                                                       ; +0x13, 0x1402a8f83\nsub     edx, 64h ; 'd'                                                 ; +0x16, 0x1402a8f86\njz      loc_1402A911A                                                  ; +0x19, 0x1402a8f89\nsub     edx, 26h ; '&'                                                 ; +0x1f, 0x1402a8f8f\njz      loc_1402A9073                                                  ; +0x22, 0x1402a8f92\nsub     edx, 3Eh ; '>'                                                 ; +0x28, 0x1402a8f98\njz      loc_1402A9024                                                  ; +0x2b, 0x1402a8f9b\nsub     edx, 0C2h                                                      ; +0x31, 0x1402a8fa1\njz      short loc_1402A8FBE                                            ; +0x37, 0x1402a8fa7\ncmp     edx, 3                                                         ; +0x39, 0x1402a8fa9\njz      short loc_1402A900D                                            ; +0x3c, 0x1402a8fac\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x3e, 0x1402a8fae\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x43, 0x1402a8fb3\nadd     rsp, 40h                                                       ; +0x48, 0x1402a8fb8\npop     rbx                                                            ; +0x4c, 0x1402a8fbc\nretn                                                                   ; +0x4d, 0x1402a8fbd\nxorps   xmm7, xmm7                                                     ; +0x4e, 0x1402a8fbe\nucomiss xmm6, xmm7                                                     ; +0x51, 0x1402a8fc1\njp      short loc_1402A8FC8                                            ; +0x54, 0x1402a8fc4\njz      short loc_1402A900D                                            ; +0x56, 0x1402a8fc6\nmov     rcx, [rcx+2D0h]                                                ; +0x58, 0x1402a8fc8\nmov     edx, 64h ; 'd'                                                 ; +0x5f, 0x1402a8fcf\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x64, 0x1402a8fd4\nmov     edx, 64h ; 'd'                                                 ; +0x6a, 0x1402a8fda\nmov     rcx, rbx                                                       ; +0x6f, 0x1402a8fdf\ntest    rax, rax                                                       ; +0x72, 0x1402a8fe2\njz      short loc_1402A8FF5                                            ; +0x75, 0x1402a8fe5\nmov     rax, [rbx]                                                     ; +0x77, 0x1402a8fe7\nxor     r8d, r8d                                                       ; +0x7a, 0x1402a8fea\ncall    qword ptr [rax+460h]                                           ; +0x7d, 0x1402a8fed\njmp     short loc_1402A8FFD                                            ; +0x83, 0x1402a8ff3\nxorps   xmm2, xmm2                                                     ; +0x85, 0x1402a8ff5\ncall    SetupTriggerPopup__updateValueControls                         ; +0x88, 0x1402a8ff8\nxorps   xmm2, xmm2                                                     ; +0x8d, 0x1402a8ffd\nmov     edx, 64h ; 'd'                                                 ; +0x90, 0x1402a9000\nmov     rcx, rbx                                                       ; +0x95, 0x1402a9005\ncall    SetupTriggerPopup__valueChanged                                ; +0x98, 0x1402a9008\nmov     rcx, rbx                                                       ; +0x9d, 0x1402a900d\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xa0, 0x1402a9010\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xa5, 0x1402a9015\nadd     rsp, 40h                                                       ; +0xaa, 0x1402a901a\npop     rbx                                                            ; +0xae, 0x1402a901e\njmp     SetupRotateCommandPopup__updateControlVisibility               ; +0xaf, 0x1402a901f\nxorps   xmm7, xmm7                                                     ; +0xb4, 0x1402a9024\nucomiss xmm6, xmm7                                                     ; +0xb7, 0x1402a9027\njp      short loc_1402A9032                                            ; +0xba, 0x1402a902a\njz      loc_1402A91DF                                                  ; +0xbc, 0x1402a902c\nmov     rcx, [rcx+2D0h]                                                ; +0xc2, 0x1402a9032\nmov     edx, 8Ah                                                       ; +0xc9, 0x1402a9039\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xce, 0x1402a903e\nmov     edx, 8Ah                                                       ; +0xd4, 0x1402a9044\nmov     rcx, rbx                                                       ; +0xd9, 0x1402a9049\ntest    rax, rax                                                       ; +0xdc, 0x1402a904c\njz      short loc_1402A9064                                            ; +0xdf, 0x1402a904f\nmov     rax, [rbx]                                                     ; +0xe1, 0x1402a9051\nxor     r8d, r8d                                                       ; +0xe4, 0x1402a9054\ncall    qword ptr [rax+460h]                                           ; +0xe7, 0x1402a9057\nmov     edx, 8Ah                                                       ; +0xed, 0x1402a905d\njmp     short loc_1402A90BB                                            ; +0xf2, 0x1402a9062\nxorps   xmm2, xmm2                                                     ; +0xf4, 0x1402a9064\ncall    SetupTriggerPopup__updateValueControls                         ; +0xf7, 0x1402a9067\nmov     edx, 8Ah                                                       ; +0xfc, 0x1402a906c\njmp     short loc_1402A90BB                                            ; +0x101, 0x1402a9071\nxorps   xmm7, xmm7                                                     ; +0x103, 0x1402a9073\nucomiss xmm6, xmm7                                                     ; +0x106, 0x1402a9076\njp      short loc_1402A9081                                            ; +0x109, 0x1402a9079\njz      loc_1402A91DF                                                  ; +0x10b, 0x1402a907b\nmov     rcx, [rcx+2D0h]                                                ; +0x111, 0x1402a9081\nmov     edx, 0C8h                                                      ; +0x118, 0x1402a9088\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x11d, 0x1402a908d\nmov     edx, 0C8h                                                      ; +0x123, 0x1402a9093\nmov     rcx, rbx                                                       ; +0x128, 0x1402a9098\ntest    rax, rax                                                       ; +0x12b, 0x1402a909b\njz      short loc_1402A90AE                                            ; +0x12e, 0x1402a909e\nmov     rax, [rbx]                                                     ; +0x130, 0x1402a90a0\nxor     r8d, r8d                                                       ; +0x133, 0x1402a90a3\ncall    qword ptr [rax+460h]                                           ; +0x136, 0x1402a90a6\njmp     short loc_1402A90B6                                            ; +0x13c, 0x1402a90ac\nxorps   xmm2, xmm2                                                     ; +0x13e, 0x1402a90ae\ncall    SetupTriggerPopup__updateValueControls                         ; +0x141, 0x1402a90b1\nmov     edx, 0C8h                                                      ; +0x146, 0x1402a90b6\nxorps   xmm2, xmm2                                                     ; +0x14b, 0x1402a90bb\nmov     rcx, rbx                                                       ; +0x14e, 0x1402a90be\ncall    SetupTriggerPopup__valueChanged                                ; +0x151, 0x1402a90c1\nmov     rcx, [rbx+2D0h]                                                ; +0x156, 0x1402a90c6\nmov     edx, 191h                                                      ; +0x15d, 0x1402a90cd\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x162, 0x1402a90d2\nmov     edx, 191h                                                      ; +0x168, 0x1402a90d8\nmov     rcx, rbx                                                       ; +0x16d, 0x1402a90dd\ntest    rax, rax                                                       ; +0x170, 0x1402a90e0\njz      short loc_1402A90F3                                            ; +0x173, 0x1402a90e3\nmov     rax, [rbx]                                                     ; +0x175, 0x1402a90e5\nxor     r8d, r8d                                                       ; +0x178, 0x1402a90e8\ncall    qword ptr [rax+460h]                                           ; +0x17b, 0x1402a90eb\njmp     short loc_1402A90FB                                            ; +0x181, 0x1402a90f1\nxorps   xmm2, xmm2                                                     ; +0x183, 0x1402a90f3\ncall    SetupTriggerPopup__updateValueControls                         ; +0x186, 0x1402a90f6\nxorps   xmm2, xmm2                                                     ; +0x18b, 0x1402a90fb\nmov     edx, 191h                                                      ; +0x18e, 0x1402a90fe\nmov     rcx, rbx                                                       ; +0x193, 0x1402a9103\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x196, 0x1402a9106\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x19b, 0x1402a910b\nadd     rsp, 40h                                                       ; +0x1a0, 0x1402a9110\npop     rbx                                                            ; +0x1a4, 0x1402a9114\njmp     SetupTriggerPopup__valueChanged                                ; +0x1a5, 0x1402a9115\nxorps   xmm7, xmm7                                                     ; +0x1aa, 0x1402a911a\nucomiss xmm6, xmm7                                                     ; +0x1ad, 0x1402a911d\njp      short loc_1402A9124                                            ; +0x1b0, 0x1402a9120\njz      short loc_1402A9169                                            ; +0x1b2, 0x1402a9122\nmov     rcx, [rcx+2D0h]                                                ; +0x1b4, 0x1402a9124\nmov     edx, 18Ah                                                      ; +0x1bb, 0x1402a912b\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x1c0, 0x1402a9130\nmov     edx, 18Ah                                                      ; +0x1c6, 0x1402a9136\nmov     rcx, rbx                                                       ; +0x1cb, 0x1402a913b\ntest    rax, rax                                                       ; +0x1ce, 0x1402a913e\njz      short loc_1402A9151                                            ; +0x1d1, 0x1402a9141\nmov     rax, [rbx]                                                     ; +0x1d3, 0x1402a9143\nxor     r8d, r8d                                                       ; +0x1d6, 0x1402a9146\ncall    qword ptr [rax+460h]                                           ; +0x1d9, 0x1402a9149\njmp     short loc_1402A9159                                            ; +0x1df, 0x1402a914f\nxorps   xmm2, xmm2                                                     ; +0x1e1, 0x1402a9151\ncall    SetupTriggerPopup__updateValueControls                         ; +0x1e4, 0x1402a9154\nxorps   xmm2, xmm2                                                     ; +0x1e9, 0x1402a9159\nmov     edx, 18Ah                                                      ; +0x1ec, 0x1402a915c\nmov     rcx, rbx                                                       ; +0x1f1, 0x1402a9161\ncall    SetupTriggerPopup__valueChanged                                ; +0x1f4, 0x1402a9164\nmov     rcx, rbx                                                       ; +0x1f9, 0x1402a9169\nmov     [rsp+48h+arg_0], rdi                                           ; +0x1fc, 0x1402a916c\ncall    SetupRotateCommandPopup__updateControlVisibility               ; +0x201, 0x1402a9171\nucomiss xmm6, xmm7                                                     ; +0x206, 0x1402a9176\njp      short loc_1402A9182                                            ; +0x209, 0x1402a9179\njnz     short loc_1402A9182                                            ; +0x20b, 0x1402a917b\nxor     dil, dil                                                       ; +0x20d, 0x1402a917d\njmp     short loc_1402A9185                                            ; +0x210, 0x1402a9180\nmov     dil, 1                                                         ; +0x212, 0x1402a9182\nmov     rcx, [rbx+390h]                                                ; +0x215, 0x1402a9185\ntest    rcx, rcx                                                       ; +0x21c, 0x1402a918c\njz      short loc_1402A91DA                                            ; +0x21f, 0x1402a918f\nmov     rax, [rcx]                                                     ; +0x221, 0x1402a9191\nmovzx   edx, dil                                                       ; +0x224, 0x1402a9194\ncall    qword ptr [rax+140h]                                           ; +0x228, 0x1402a9198\nmov     rcx, [rbx+390h]                                                ; +0x22e, 0x1402a919e\nmovzx   edx, dil                                                       ; +0x235, 0x1402a91a5\nmov     rax, [rcx]                                                     ; +0x239, 0x1402a91a9\ncall    qword ptr [rax+398h]                                           ; +0x23c, 0x1402a91ac\nmov     rcx, [rbx+398h]                                                ; +0x242, 0x1402a91b2\nmovzx   edx, dil                                                       ; +0x249, 0x1402a91b9\nmov     rax, [rcx]                                                     ; +0x24d, 0x1402a91bd\ncall    qword ptr [rax+140h]                                           ; +0x250, 0x1402a91c0\nmov     rcx, [rbx+398h]                                                ; +0x256, 0x1402a91c6\nmovzx   edx, dil                                                       ; +0x25d, 0x1402a91cd\nmov     rax, [rcx]                                                     ; +0x261, 0x1402a91d1\ncall    qword ptr [rax+398h]                                           ; +0x264, 0x1402a91d4\nmov     rdi, [rsp+48h+arg_0]                                           ; +0x26a, 0x1402a91da\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x26f, 0x1402a91df\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x274, 0x1402a91e4\nadd     rsp, 40h                                                       ; +0x279, 0x1402a91e9\npop     rbx                                                            ; +0x27d, 0x1402a91ed\nretn                                                                   ; +0x27e, 0x1402a91ee", "xrefs": ["<???> @ 0x14057d2f8", "<???> @ 0x14068ad44", "<???> @ 0x14068ad54", "<???> @ 0x1406d2198"], "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"}