{"type": "func", "start": 5373177984, "end": 5373178397, "name": "SetupRotatePopup::onCustomToggleTriggerValue", "pseudocode": "// \n// SetupRotatePopup::onCustomToggleTriggerValue from 0x140443080 to 0x14044321d (413 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405edfd0\n// > <???> @ 0x1406da4a8\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 SetupRotatePopup::onCustomToggleTriggerValue(SetupRotatePopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // edi\n  _BOOL8 v4; // r8\n  float v5; // xmm2_4\n  CCMenuItemToggler *v6; // rax\n  CCMenuItemToggler *v7; // rax\n  CCMenuItemToggler *v8; // rax\n\n  v3 = a2->getTag(a2);\n  if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 97) )\n    a1->updateToggleItem(a1, 97, 0);\n  else\n    SetupTriggerPopup::updateValueControls(a1, 97, 0.0);\n  SetupTriggerPopup::valueChanged(a1, 97, 0.0);\n  if ( v3 )\n  {\n    if ( v3 == 1 )\n    {\n      if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 98) )\n      {\n        LOBYTE(v4) = 1;\n        a1->updateToggleItem(a1, 98, v4);\n      }\n      else\n      {\n        SetupTriggerPopup::updateValueControls(a1, 98, 1.0);\n      }\n      v5 = 1.0;\n      goto LABEL_15;\n    }\n    if ( v3 != 2 )\n      goto LABEL_16;\n  }\n  if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 98) )\n    a1->updateToggleItem(a1, 98, 0);\n  else\n    SetupTriggerPopup::updateValueControls(a1, 98, 0.0);\n  v5 = 0.0;\nLABEL_15:\n  SetupTriggerPopup::valueChanged(a1, 98, v5);\nLABEL_16:\n  a1->toggleGroup(a1, 2, v3 == 2);\n  v6 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 0);\n  if ( v6 )\n    CCMenuItemToggler::toggle(v6, v3 == 0);\n  v7 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 2);\n  if ( v7 )\n    CCMenuItemToggler::toggle(v7, v3 == 2);\n  v8 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 1);\n  if ( v8 )\n    CCMenuItemToggler::toggle(v8, v3 == 1);\n}", "assembly": "; \n; SetupRotatePopup::onCustomToggleTriggerValue from 0x140443080 to 0x14044321d (413 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405edfd0\n; > <???> @ 0x1406da4a8\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, 0x140443080\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140443085\npush    rdi                                                            ; +0xa, 0x14044308a\nsub     rsp, 20h                                                       ; +0xb, 0x14044308b\nmov     rax, [rdx]                                                     ; +0xf, 0x14044308f\nmov     rbx, rcx                                                       ; +0x12, 0x140443092\nmov     rcx, rdx                                                       ; +0x15, 0x140443095\ncall    qword ptr [rax+38h]                                            ; +0x18, 0x140443098\nmov     rcx, [rbx+2D0h]                                                ; +0x1b, 0x14044309b\nmov     edx, 61h ; 'a'                                                 ; +0x22, 0x1404430a2\nmov     edi, eax                                                       ; +0x27, 0x1404430a7\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x29, 0x1404430a9\nmov     edx, 61h ; 'a'                                                 ; +0x2f, 0x1404430af\nmov     rcx, rbx                                                       ; +0x34, 0x1404430b4\ntest    rax, rax                                                       ; +0x37, 0x1404430b7\njz      short loc_1404430CB                                            ; +0x3a, 0x1404430ba\nmov     r9, [rbx]                                                      ; +0x3c, 0x1404430bc\nxor     r8d, r8d                                                       ; +0x3f, 0x1404430bf\ncall    qword ptr [r9+460h]                                            ; +0x42, 0x1404430c2\njmp     short loc_1404430D3                                            ; +0x49, 0x1404430c9\nxorps   xmm2, xmm2                                                     ; +0x4b, 0x1404430cb\ncall    SetupTriggerPopup__updateValueControls                         ; +0x4e, 0x1404430ce\nxorps   xmm2, xmm2                                                     ; +0x53, 0x1404430d3\nmov     edx, 61h ; 'a'                                                 ; +0x56, 0x1404430d6\nmov     rcx, rbx                                                       ; +0x5b, 0x1404430db\ncall    SetupTriggerPopup__valueChanged                                ; +0x5e, 0x1404430de\nmov     ecx, edi                                                       ; +0x63, 0x1404430e3\ntest    edi, edi                                                       ; +0x65, 0x1404430e5\njz      short loc_1404430F7                                            ; +0x67, 0x1404430e7\nsub     ecx, 1                                                         ; +0x69, 0x1404430e9\njz      short loc_140443124                                            ; +0x6c, 0x1404430ec\ncmp     ecx, 1                                                         ; +0x6e, 0x1404430ee\njnz     loc_140443188                                                  ; +0x71, 0x1404430f1\nmov     rcx, [rbx+2D0h]                                                ; +0x77, 0x1404430f7\nmov     edx, 62h ; 'b'                                                 ; +0x7e, 0x1404430fe\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x83, 0x140443103\nmov     edx, 62h ; 'b'                                                 ; +0x89, 0x140443109\nmov     rcx, rbx                                                       ; +0x8e, 0x14044310e\ntest    rax, rax                                                       ; +0x91, 0x140443111\njz      short loc_140443170                                            ; +0x94, 0x140443114\nmov     rax, [rbx]                                                     ; +0x96, 0x140443116\nxor     r8d, r8d                                                       ; +0x99, 0x140443119\ncall    qword ptr [rax+460h]                                           ; +0x9c, 0x14044311c\njmp     short loc_140443178                                            ; +0xa2, 0x140443122\nmov     rcx, [rbx+2D0h]                                                ; +0xa4, 0x140443124\nmov     edx, 62h ; 'b'                                                 ; +0xab, 0x14044312b\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xb0, 0x140443130\nmov     edx, 62h ; 'b'                                                 ; +0xb6, 0x140443136\nmov     rcx, rbx                                                       ; +0xbb, 0x14044313b\ntest    rax, rax                                                       ; +0xbe, 0x14044313e\njz      short loc_140443159                                            ; +0xc1, 0x140443141\nmov     rax, [rbx]                                                     ; +0xc3, 0x140443143\nmov     r8b, 1                                                         ; +0xc6, 0x140443146\ncall    qword ptr [rax+460h]                                           ; +0xc9, 0x140443149\nmovss   xmm2, cs:flt_140622C24                                         ; +0xcf, 0x14044314f\njmp     short loc_14044317B                                            ; +0xd7, 0x140443157\nmovss   xmm2, cs:flt_140622C24                                         ; +0xd9, 0x140443159\ncall    SetupTriggerPopup__updateValueControls                         ; +0xe1, 0x140443161\nmovss   xmm2, cs:flt_140622C24                                         ; +0xe6, 0x140443166\njmp     short loc_14044317B                                            ; +0xee, 0x14044316e\nxorps   xmm2, xmm2                                                     ; +0xf0, 0x140443170\ncall    SetupTriggerPopup__updateValueControls                         ; +0xf3, 0x140443173\nxorps   xmm2, xmm2                                                     ; +0xf8, 0x140443178\nmov     edx, 62h ; 'b'                                                 ; +0xfb, 0x14044317b\nmov     rcx, rbx                                                       ; +0x100, 0x140443180\ncall    SetupTriggerPopup__valueChanged                                ; +0x103, 0x140443183\nmov     rax, [rbx]                                                     ; +0x108, 0x140443188\ncmp     edi, 2                                                         ; +0x10b, 0x14044318b\nmov     edx, 2                                                         ; +0x10e, 0x14044318e\nmov     rcx, rbx                                                       ; +0x113, 0x140443193\nsetz    sil                                                            ; +0x116, 0x140443196\nmovzx   r8d, sil                                                       ; +0x11a, 0x14044319a\ncall    qword ptr [rax+420h]                                           ; +0x11e, 0x14044319e\nmov     rcx, [rbx+2E8h]                                                ; +0x124, 0x1404431a4\nxor     edx, edx                                                       ; +0x12b, 0x1404431ab\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x12d, 0x1404431ad\ntest    rax, rax                                                       ; +0x133, 0x1404431b3\njz      short loc_1404431C5                                            ; +0x136, 0x1404431b6\ntest    edi, edi                                                       ; +0x138, 0x1404431b8\nmov     rcx, rax                                                       ; +0x13a, 0x1404431ba\nsetz    dl                                                             ; +0x13d, 0x1404431bd\ncall    CCMenuItemToggler__toggle                                      ; +0x140, 0x1404431c0\nmov     rcx, [rbx+2E8h]                                                ; +0x145, 0x1404431c5\nmov     edx, 2                                                         ; +0x14c, 0x1404431cc\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x151, 0x1404431d1\ntest    rax, rax                                                       ; +0x157, 0x1404431d7\njz      short loc_1404431E8                                            ; +0x15a, 0x1404431da\nmovzx   edx, sil                                                       ; +0x15c, 0x1404431dc\nmov     rcx, rax                                                       ; +0x160, 0x1404431e0\ncall    CCMenuItemToggler__toggle                                      ; +0x163, 0x1404431e3\nmov     rcx, [rbx+2E8h]                                                ; +0x168, 0x1404431e8\nmov     edx, 1                                                         ; +0x16f, 0x1404431ef\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x174, 0x1404431f4\ntest    rax, rax                                                       ; +0x17a, 0x1404431fa\njz      short loc_14044320D                                            ; +0x17d, 0x1404431fd\ncmp     edi, 1                                                         ; +0x17f, 0x1404431ff\nmov     rcx, rax                                                       ; +0x182, 0x140443202\nsetz    dl                                                             ; +0x185, 0x140443205\ncall    CCMenuItemToggler__toggle                                      ; +0x188, 0x140443208\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x18d, 0x14044320d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x192, 0x140443212\nadd     rsp, 20h                                                       ; +0x197, 0x140443217\npop     rdi                                                            ; +0x19b, 0x14044321b\nretn                                                                   ; +0x19c, 0x14044321c", "xrefs": ["<???> @ 0x1405edfd0", "<???> @ 0x1406da4a8"], "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"}