{"type": "func", "start": 5372926464, "end": 5372926626, "name": "SetupAdvFollowPopup::onCustomToggleTriggerValue", "pseudocode": "// \n// SetupAdvFollowPopup::onCustomToggleTriggerValue from 0x140405a00 to 0x140405aa2 (162 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1405d9878\n// > <???> @ 0x1406d8918\n// > <???> @ 0x1406d8924\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 SetupAdvFollowPopup::onCustomToggleTriggerValue(SetupAdvFollowPopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // ebx\n  CCMenuItemToggler *v4; // rax\n  CCMenuItemToggler *v5; // rax\n  CCMenuItemToggler *v6; // rax\n\n  v3 = a2->getTag(a2);\n  SetupTriggerPopup::updateValue(a1, 572, (float)v3);\n  v4 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 0);\n  if ( v4 )\n    CCMenuItemToggler::toggle(v4, v3 == 0);\n  v5 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 1);\n  if ( v5 )\n    CCMenuItemToggler::toggle(v5, v3 == 1);\n  v6 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 2);\n  if ( v6 )\n    CCMenuItemToggler::toggle(v6, v3 == 2);\n}", "assembly": "; \n; SetupAdvFollowPopup::onCustomToggleTriggerValue from 0x140405a00 to 0x140405aa2 (162 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1405d9878\n; > <???> @ 0x1406d8918\n; > <???> @ 0x1406d8924\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, 0x140405a00\npush    rdi                                                            ; +0x5, 0x140405a05\nsub     rsp, 20h                                                       ; +0x6, 0x140405a06\nmov     rax, [rdx]                                                     ; +0xa, 0x140405a0a\nmov     rdi, rcx                                                       ; +0xd, 0x140405a0d\nmov     rcx, rdx                                                       ; +0x10, 0x140405a10\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x140405a13\nmov     edx, 23Ch                                                      ; +0x16, 0x140405a16\nmov     rcx, rdi                                                       ; +0x1b, 0x140405a1b\nmov     ebx, eax                                                       ; +0x1e, 0x140405a1e\nmovd    xmm2, eax                                                      ; +0x20, 0x140405a20\ncvtdq2ps xmm2, xmm2                                                    ; +0x24, 0x140405a24\ncall    SetupTriggerPopup__updateValue                                 ; +0x27, 0x140405a27\nmov     rcx, [rdi+2E8h]                                                ; +0x2c, 0x140405a2c\nxor     edx, edx                                                       ; +0x33, 0x140405a33\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x35, 0x140405a35\ntest    rax, rax                                                       ; +0x3b, 0x140405a3b\njz      short loc_140405A4D                                            ; +0x3e, 0x140405a3e\ntest    ebx, ebx                                                       ; +0x40, 0x140405a40\nmov     rcx, rax                                                       ; +0x42, 0x140405a42\nsetz    dl                                                             ; +0x45, 0x140405a45\ncall    CCMenuItemToggler__toggle                                      ; +0x48, 0x140405a48\nmov     rcx, [rdi+2E8h]                                                ; +0x4d, 0x140405a4d\nmov     edx, 1                                                         ; +0x54, 0x140405a54\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x59, 0x140405a59\ntest    rax, rax                                                       ; +0x5f, 0x140405a5f\njz      short loc_140405A72                                            ; +0x62, 0x140405a62\ncmp     ebx, 1                                                         ; +0x64, 0x140405a64\nmov     rcx, rax                                                       ; +0x67, 0x140405a67\nsetz    dl                                                             ; +0x6a, 0x140405a6a\ncall    CCMenuItemToggler__toggle                                      ; +0x6d, 0x140405a6d\nmov     rcx, [rdi+2E8h]                                                ; +0x72, 0x140405a72\nmov     edx, 2                                                         ; +0x79, 0x140405a79\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x7e, 0x140405a7e\ntest    rax, rax                                                       ; +0x84, 0x140405a84\njz      short loc_140405A97                                            ; +0x87, 0x140405a87\ncmp     ebx, 2                                                         ; +0x89, 0x140405a89\nmov     rcx, rax                                                       ; +0x8c, 0x140405a8c\nsetz    dl                                                             ; +0x8f, 0x140405a8f\ncall    CCMenuItemToggler__toggle                                      ; +0x92, 0x140405a92\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x97, 0x140405a97\nadd     rsp, 20h                                                       ; +0x9c, 0x140405a9c\npop     rdi                                                            ; +0xa0, 0x140405aa0\nretn                                                                   ; +0xa1, 0x140405aa1", "xrefs": ["<???> @ 0x1405d9878", "<???> @ 0x1406d8918", "<???> @ 0x1406d8924"], "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"}