{"type": "func", "start": 5373175840, "end": 5373176007, "name": "SetupGameplayOffsetPopup::onCustomToggleTriggerValue", "pseudocode": "// \n// SetupGameplayOffsetPopup::onCustomToggleTriggerValue from 0x140442820 to 0x1404428c7 (167 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1405ed298\n// > <???> @ 0x1405f7ec8\n// > <???> @ 0x1406da43c\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\n// Merged with: SetupGameplayOffsetPopup::onCustomToggleTriggerValue, SetupStaticCameraPopup::onCustomToggleTriggerValue\nvoid __fastcall SetupGameplayOffsetPopup::onCustomToggleTriggerValue(SetupTriggerPopup *a1, __int64 a2)\n{\n  int v3; // ebx\n  int v4; // edi\n  CCMenuItemToggler *v5; // rax\n  CCMenuItemToggler *v6; // rax\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = 0;\n  if ( (int)a1->getValue(a1, 101) != 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, 101, (float)v4);\n}", "assembly": "; \n; SetupGameplayOffsetPopup::onCustomToggleTriggerValue from 0x140442820 to 0x1404428c7 (167 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1405ed298\n; > <???> @ 0x1405f7ec8\n; > <???> @ 0x1406da43c\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, 0x140442820\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140442825\npush    rdi                                                            ; +0xa, 0x14044282a\nsub     rsp, 20h                                                       ; +0xb, 0x14044282b\nmov     rax, [rdx]                                                     ; +0xf, 0x14044282f\nmov     rsi, rcx                                                       ; +0x12, 0x140442832\nmov     rcx, rdx                                                       ; +0x15, 0x140442835\ncall    qword ptr [rax+38h]                                            ; +0x18, 0x140442838\nmov     r8, [rsi]                                                      ; +0x1b, 0x14044283b\nmov     edx, 65h ; 'e'                                                 ; +0x1e, 0x14044283e\nmov     rcx, rsi                                                       ; +0x23, 0x140442843\nmov     ebx, eax                                                       ; +0x26, 0x140442846\ncall    qword ptr [r8+470h]                                            ; +0x28, 0x140442848\nmov     rcx, [rsi+2E8h]                                                ; +0x2f, 0x14044284f\nxor     edi, edi                                                       ; +0x36, 0x140442856\ncvttss2si edx, xmm0                                                    ; +0x38, 0x140442858\ncmp     edx, ebx                                                       ; +0x3c, 0x14044285c\nmov     edx, 1                                                         ; +0x3e, 0x14044285e\ncmovnz  edi, ebx                                                       ; +0x43, 0x140442863\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x46, 0x140442866\ntest    rax, rax                                                       ; +0x4c, 0x14044286c\njz      short loc_14044287F                                            ; +0x4f, 0x14044286f\ncmp     edi, 1                                                         ; +0x51, 0x140442871\nmov     rcx, rax                                                       ; +0x54, 0x140442874\nsetz    dl                                                             ; +0x57, 0x140442877\ncall    CCMenuItemToggler__toggle                                      ; +0x5a, 0x14044287a\nmov     rcx, [rsi+2E8h]                                                ; +0x5f, 0x14044287f\nmov     edx, 2                                                         ; +0x66, 0x140442886\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x6b, 0x14044288b\ntest    rax, rax                                                       ; +0x71, 0x140442891\njz      short loc_1404428A4                                            ; +0x74, 0x140442894\ncmp     edi, 2                                                         ; +0x76, 0x140442896\nmov     rcx, rax                                                       ; +0x79, 0x140442899\nsetz    dl                                                             ; +0x7c, 0x14044289c\ncall    CCMenuItemToggler__toggle                                      ; +0x7f, 0x14044289f\nmovd    xmm2, edi                                                      ; +0x84, 0x1404428a4\nmov     edx, 65h ; 'e'                                                 ; +0x88, 0x1404428a8\ncvtdq2ps xmm2, xmm2                                                    ; +0x8d, 0x1404428ad\nmov     rcx, rsi                                                       ; +0x90, 0x1404428b0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x93, 0x1404428b3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x98, 0x1404428b8\nadd     rsp, 20h                                                       ; +0x9d, 0x1404428bd\npop     rdi                                                            ; +0xa1, 0x1404428c1\njmp     SetupTriggerPopup__updateValue                                 ; +0xa2, 0x1404428c2", "xrefs": ["<???> @ 0x1405ed298", "<???> @ 0x1405f7ec8", "<???> @ 0x1406da43c"], "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"}