{"type": "func", "start": 5371339936, "end": 5371340100, "name": "SetupMoveCommandPopup::onCustomToggleTriggerValue", "pseudocode": "// \n// SetupMoveCommandPopup::onCustomToggleTriggerValue from 0x1402824a0 to 0x140282544 (164 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14056d088\n// > <???> @ 0x1406d1454\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 SetupMoveCommandPopup::onCustomToggleTriggerValue(SetupMoveCommandPopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // ebx\n  CCMenuItemToggler *v4; // rax\n  CCMenuItemToggler *v5; // rax\n\n  v3 = a2->getTag(a2);\n  if ( (unsigned int)(v3 - 1) <= 1 )\n  {\n    if ( (int)a1->getValue(a1, 101) == v3 )\n      v3 = 0;\n    SetupTriggerPopup::updateValue(a1, 101, (float)v3);\n    v4 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 1);\n    if ( v4 )\n      CCMenuItemToggler::toggle(v4, v3 == 1);\n    v5 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 2);\n    if ( v5 )\n      CCMenuItemToggler::toggle(v5, v3 == 2);\n  }\n}", "assembly": "; \n; SetupMoveCommandPopup::onCustomToggleTriggerValue from 0x1402824a0 to 0x140282544 (164 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14056d088\n; > <???> @ 0x1406d1454\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, 0x1402824a0\npush    rdi                                                            ; +0x5, 0x1402824a5\nsub     rsp, 20h                                                       ; +0x6, 0x1402824a6\nmov     rax, [rdx]                                                     ; +0xa, 0x1402824aa\nmov     rdi, rcx                                                       ; +0xd, 0x1402824ad\nmov     rcx, rdx                                                       ; +0x10, 0x1402824b0\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x1402824b3\nmov     ebx, eax                                                       ; +0x16, 0x1402824b6\nlea     edx, [rax-1]                                                   ; +0x18, 0x1402824b8\ncmp     edx, 1                                                         ; +0x1b, 0x1402824bb\nja      short loc_140282539                                            ; +0x1e, 0x1402824be\nmov     r8, [rdi]                                                      ; +0x20, 0x1402824c0\nmov     edx, 65h ; 'e'                                                 ; +0x23, 0x1402824c3\nmov     rcx, rdi                                                       ; +0x28, 0x1402824c8\ncall    qword ptr [r8+470h]                                            ; +0x2b, 0x1402824cb\nxor     eax, eax                                                       ; +0x32, 0x1402824d2\ncvttss2si ecx, xmm0                                                    ; +0x34, 0x1402824d4\nlea     edx, [rax+65h]                                                 ; +0x38, 0x1402824d8\ncmp     ecx, ebx                                                       ; +0x3b, 0x1402824db\nmov     rcx, rdi                                                       ; +0x3d, 0x1402824dd\ncmovz   ebx, eax                                                       ; +0x40, 0x1402824e0\nmovd    xmm2, ebx                                                      ; +0x43, 0x1402824e3\ncvtdq2ps xmm2, xmm2                                                    ; +0x47, 0x1402824e7\ncall    SetupTriggerPopup__updateValue                                 ; +0x4a, 0x1402824ea\nmov     rcx, [rdi+2E8h]                                                ; +0x4f, 0x1402824ef\nmov     edx, 1                                                         ; +0x56, 0x1402824f6\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x5b, 0x1402824fb\ntest    rax, rax                                                       ; +0x61, 0x140282501\njz      short loc_140282514                                            ; +0x64, 0x140282504\ncmp     ebx, 1                                                         ; +0x66, 0x140282506\nmov     rcx, rax                                                       ; +0x69, 0x140282509\nsetz    dl                                                             ; +0x6c, 0x14028250c\ncall    CCMenuItemToggler__toggle                                      ; +0x6f, 0x14028250f\nmov     rcx, [rdi+2E8h]                                                ; +0x74, 0x140282514\nmov     edx, 2                                                         ; +0x7b, 0x14028251b\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x80, 0x140282520\ntest    rax, rax                                                       ; +0x86, 0x140282526\njz      short loc_140282539                                            ; +0x89, 0x140282529\ncmp     ebx, 2                                                         ; +0x8b, 0x14028252b\nmov     rcx, rax                                                       ; +0x8e, 0x14028252e\nsetz    dl                                                             ; +0x91, 0x140282531\ncall    CCMenuItemToggler__toggle                                      ; +0x94, 0x140282534\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x99, 0x140282539\nadd     rsp, 20h                                                       ; +0x9e, 0x14028253e\npop     rdi                                                            ; +0xa2, 0x140282542\nretn                                                                   ; +0xa3, 0x140282543", "xrefs": ["<???> @ 0x14056d088", "<???> @ 0x1406d1454"], "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"}