{"type": "func", "start": 5370037840, "end": 5370038009, "name": "CustomizeObjectSettingsPopup::onCustomToggleTriggerValue", "pseudocode": "// \n// CustomizeObjectSettingsPopup::onCustomToggleTriggerValue from 0x140144650 to 0x1401446f9 (169 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140739060\n// > <???> @ 0x1409174e0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:11 +0000\n// \n\nstruct cocos2d::CCObject *__fastcall CustomizeObjectSettingsPopup::onCustomToggleTriggerValue(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  int v4; // ebx\n  struct cocos2d::CCObject *v5; // rax\n  __int64 v6; // rdx\n  struct cocos2d::CCObject *v7; // rax\n  __int64 v8; // rdx\n  struct cocos2d::CCObject *result; // rax\n  __int64 v10; // rdx\n\n  *(_BYTE *)(a1 + 1008) = 1;\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = v3;\n  SetupTriggerPopup::updateValue(a1, 497);\n  v5 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 0);\n  if ( v5 )\n  {\n    LOBYTE(v6) = v4 == 0;\n    CCMenuItemToggler::toggle((__int64)v5, v6);\n  }\n  v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 1);\n  if ( v7 )\n  {\n    LOBYTE(v8) = v4 == 1;\n    CCMenuItemToggler::toggle((__int64)v7, v8);\n  }\n  result = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 2);\n  if ( result )\n  {\n    LOBYTE(v10) = v4 == 2;\n    return (struct cocos2d::CCObject *)CCMenuItemToggler::toggle((__int64)result, v10);\n  }\n  return result;\n}", "assembly": "; \n; CustomizeObjectSettingsPopup::onCustomToggleTriggerValue from 0x140144650 to 0x1401446f9 (169 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140739060\n; > <???> @ 0x1409174e0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:11 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140144650\npush    rdi                                                            ; +0x5, 0x140144655\nsub     rsp, 20h                                                       ; +0x6, 0x140144656\nmov     byte ptr [rcx+3F0h], 1                                         ; +0xa, 0x14014465a\nmov     rdi, rcx                                                       ; +0x11, 0x140144661\nmov     rax, [rdx]                                                     ; +0x14, 0x140144664\nmov     rcx, rdx                                                       ; +0x17, 0x140144667\ncall    qword ptr [rax+38h]                                            ; +0x1a, 0x14014466a\nmov     edx, 1F1h                                                      ; +0x1d, 0x14014466d\nmov     rcx, rdi                                                       ; +0x22, 0x140144672\nmov     ebx, eax                                                       ; +0x25, 0x140144675\nmovd    xmm2, eax                                                      ; +0x27, 0x140144677\ncvtdq2ps xmm2, xmm2                                                    ; +0x2b, 0x14014467b\ncall    SetupTriggerPopup__updateValue                                 ; +0x2e, 0x14014467e\nmov     rcx, [rdi+308h]                                                ; +0x33, 0x140144683\nxor     edx, edx                                                       ; +0x3a, 0x14014468a\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x3c, 0x14014468c\ntest    rax, rax                                                       ; +0x42, 0x140144692\njz      short loc_1401446A4                                            ; +0x45, 0x140144695\ntest    ebx, ebx                                                       ; +0x47, 0x140144697\nmov     rcx, rax                                                       ; +0x49, 0x140144699\nsetz    dl                                                             ; +0x4c, 0x14014469c\ncall    CCMenuItemToggler__toggle                                      ; +0x4f, 0x14014469f\nmov     rcx, [rdi+308h]                                                ; +0x54, 0x1401446a4\nmov     edx, 1                                                         ; +0x5b, 0x1401446ab\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x60, 0x1401446b0\ntest    rax, rax                                                       ; +0x66, 0x1401446b6\njz      short loc_1401446C9                                            ; +0x69, 0x1401446b9\ncmp     ebx, 1                                                         ; +0x6b, 0x1401446bb\nmov     rcx, rax                                                       ; +0x6e, 0x1401446be\nsetz    dl                                                             ; +0x71, 0x1401446c1\ncall    CCMenuItemToggler__toggle                                      ; +0x74, 0x1401446c4\nmov     rcx, [rdi+308h]                                                ; +0x79, 0x1401446c9\nmov     edx, 2                                                         ; +0x80, 0x1401446d0\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x85, 0x1401446d5\ntest    rax, rax                                                       ; +0x8b, 0x1401446db\njz      short loc_1401446EE                                            ; +0x8e, 0x1401446de\ncmp     ebx, 2                                                         ; +0x90, 0x1401446e0\nmov     rcx, rax                                                       ; +0x93, 0x1401446e3\nsetz    dl                                                             ; +0x96, 0x1401446e6\ncall    CCMenuItemToggler__toggle                                      ; +0x99, 0x1401446e9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9e, 0x1401446ee\nadd     rsp, 20h                                                       ; +0xa3, 0x1401446f3\npop     rdi                                                            ; +0xa7, 0x1401446f7\nretn                                                                   ; +0xa8, 0x1401446f8", "xrefs": ["<???> @ 0x140739060", "<???> @ 0x1409174e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}