{"type": "func", "start": 5373129568, "end": 5373129743, "name": "SetupPickupTriggerPopup::onCustomToggleTriggerValue", "pseudocode": "// \n// SetupPickupTriggerPopup::onCustomToggleTriggerValue from 0x140437360 to 0x14043740f (175 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405eb020\n// > <???> @ 0x1406d9e30\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 SetupPickupTriggerPopup::onCustomToggleTriggerValue(SetupPickupTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // ebx\n  int v4; // esi\n  CCMenuItemToggler *v5; // rax\n  CCMenuItemToggler *v6; // rax\n\n  v3 = a2->getTag(a2);\n  v4 = 0;\n  if ( (int)a1->getValue(a1, 88) != v3 )\n    v4 = v3;\n  v5 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 1);\n  if ( v5 )\n    CCMenuItemToggler::toggle(v5, v4 == 1);\n  v6 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 2);\n  if ( v6 )\n    CCMenuItemToggler::toggle(v6, v4 == 2);\n  SetupTriggerPopup::updateValue(a1, 88, (float)v4);\n  SetupPickupTriggerPopup::updateState(a1);\n}", "assembly": "; \n; SetupPickupTriggerPopup::onCustomToggleTriggerValue from 0x140437360 to 0x14043740f (175 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405eb020\n; > <???> @ 0x1406d9e30\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, 0x140437360\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140437365\npush    rdi                                                            ; +0xa, 0x14043736a\nsub     rsp, 20h                                                       ; +0xb, 0x14043736b\nmov     rax, [rdx]                                                     ; +0xf, 0x14043736f\nmov     rdi, rcx                                                       ; +0x12, 0x140437372\nmov     rcx, rdx                                                       ; +0x15, 0x140437375\ncall    qword ptr [rax+38h]                                            ; +0x18, 0x140437378\nmov     r8, [rdi]                                                      ; +0x1b, 0x14043737b\nmov     edx, 58h ; 'X'                                                 ; +0x1e, 0x14043737e\nmov     rcx, rdi                                                       ; +0x23, 0x140437383\nmov     ebx, eax                                                       ; +0x26, 0x140437386\ncall    qword ptr [r8+470h]                                            ; +0x28, 0x140437388\nmov     rcx, [rdi+2E8h]                                                ; +0x2f, 0x14043738f\nxor     esi, esi                                                       ; +0x36, 0x140437396\ncvttss2si edx, xmm0                                                    ; +0x38, 0x140437398\ncmp     edx, ebx                                                       ; +0x3c, 0x14043739c\nmov     edx, 1                                                         ; +0x3e, 0x14043739e\ncmovnz  esi, ebx                                                       ; +0x43, 0x1404373a3\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x46, 0x1404373a6\ntest    rax, rax                                                       ; +0x4c, 0x1404373ac\njz      short loc_1404373BF                                            ; +0x4f, 0x1404373af\ncmp     esi, 1                                                         ; +0x51, 0x1404373b1\nmov     rcx, rax                                                       ; +0x54, 0x1404373b4\nsetz    dl                                                             ; +0x57, 0x1404373b7\ncall    CCMenuItemToggler__toggle                                      ; +0x5a, 0x1404373ba\nmov     rcx, [rdi+2E8h]                                                ; +0x5f, 0x1404373bf\nmov     edx, 2                                                         ; +0x66, 0x1404373c6\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x6b, 0x1404373cb\ntest    rax, rax                                                       ; +0x71, 0x1404373d1\njz      short loc_1404373E4                                            ; +0x74, 0x1404373d4\ncmp     esi, 2                                                         ; +0x76, 0x1404373d6\nmov     rcx, rax                                                       ; +0x79, 0x1404373d9\nsetz    dl                                                             ; +0x7c, 0x1404373dc\ncall    CCMenuItemToggler__toggle                                      ; +0x7f, 0x1404373df\nmovd    xmm2, esi                                                      ; +0x84, 0x1404373e4\nmov     edx, 58h ; 'X'                                                 ; +0x88, 0x1404373e8\ncvtdq2ps xmm2, xmm2                                                    ; +0x8d, 0x1404373ed\nmov     rcx, rdi                                                       ; +0x90, 0x1404373f0\ncall    SetupTriggerPopup__updateValue                                 ; +0x93, 0x1404373f3\nmov     rcx, rdi                                                       ; +0x98, 0x1404373f8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9b, 0x1404373fb\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa0, 0x140437400\nadd     rsp, 20h                                                       ; +0xa5, 0x140437405\npop     rdi                                                            ; +0xa9, 0x140437409\njmp     SetupPickupTriggerPopup__updateState                           ; +0xaa, 0x14043740a", "xrefs": ["<???> @ 0x1405eb020", "<???> @ 0x1406d9e30"], "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"}