{"type": "func", "start": 5373060688, "end": 5373060865, "name": "SetupKeyframePopup::onCustomToggleTriggerValue", "pseudocode": "// \n// SetupKeyframePopup::onCustomToggleTriggerValue from 0x140426650 to 0x140426701 (177 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405e6cf8\n// > <???> @ 0x1406d9734\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 SetupKeyframePopup::onCustomToggleTriggerValue(SetupKeyframePopup *a1, cocos2d::CCObject *a2)\n{\n  int v4; // ebx\n  int v5; // ebx\n  CCMenuItemToggler *v6; // rax\n  CCMenuItemToggler *v7; // rax\n\n  v4 = (int)a1->getValue(a1, 536);\n  if ( a2->getTag(a2) == v4 )\n    v5 = 0;\n  else\n    v5 = a2->getTag(a2);\n  SetupTriggerPopup::updateValue(a1, 536, (float)v5);\n  v6 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 1);\n  if ( v6 )\n    CCMenuItemToggler::toggle(v6, v5 == 1);\n  v7 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 2);\n  if ( v7 )\n    CCMenuItemToggler::toggle(v7, v5 == 2);\n}", "assembly": "; \n; SetupKeyframePopup::onCustomToggleTriggerValue from 0x140426650 to 0x140426701 (177 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405e6cf8\n; > <???> @ 0x1406d9734\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, 0x140426650\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140426655\npush    rdi                                                            ; +0xa, 0x14042665a\nsub     rsp, 20h                                                       ; +0xb, 0x14042665b\nmov     rax, [rcx]                                                     ; +0xf, 0x14042665f\nmov     rsi, rdx                                                       ; +0x12, 0x140426662\nmov     edx, 218h                                                      ; +0x15, 0x140426665\nmov     rdi, rcx                                                       ; +0x1a, 0x14042666a\ncall    qword ptr [rax+470h]                                           ; +0x1d, 0x14042666d\nmov     rax, [rsi]                                                     ; +0x23, 0x140426673\nmov     rcx, rsi                                                       ; +0x26, 0x140426676\ncvttss2si ebx, xmm0                                                    ; +0x29, 0x140426679\ncall    qword ptr [rax+38h]                                            ; +0x2d, 0x14042667d\ncmp     eax, ebx                                                       ; +0x30, 0x140426680\njnz     short loc_140426688                                            ; +0x32, 0x140426682\nxor     ebx, ebx                                                       ; +0x34, 0x140426684\njmp     short loc_140426693                                            ; +0x36, 0x140426686\nmov     rax, [rsi]                                                     ; +0x38, 0x140426688\nmov     rcx, rsi                                                       ; +0x3b, 0x14042668b\ncall    qword ptr [rax+38h]                                            ; +0x3e, 0x14042668e\nmov     ebx, eax                                                       ; +0x41, 0x140426691\nmovd    xmm2, ebx                                                      ; +0x43, 0x140426693\nmov     edx, 218h                                                      ; +0x47, 0x140426697\ncvtdq2ps xmm2, xmm2                                                    ; +0x4c, 0x14042669c\nmov     rcx, rdi                                                       ; +0x4f, 0x14042669f\ncall    SetupTriggerPopup__updateValue                                 ; +0x52, 0x1404266a2\nmov     rcx, [rdi+2E8h]                                                ; +0x57, 0x1404266a7\nmov     edx, 1                                                         ; +0x5e, 0x1404266ae\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x63, 0x1404266b3\ntest    rax, rax                                                       ; +0x69, 0x1404266b9\njz      short loc_1404266CC                                            ; +0x6c, 0x1404266bc\ncmp     ebx, 1                                                         ; +0x6e, 0x1404266be\nmov     rcx, rax                                                       ; +0x71, 0x1404266c1\nsetz    dl                                                             ; +0x74, 0x1404266c4\ncall    CCMenuItemToggler__toggle                                      ; +0x77, 0x1404266c7\nmov     rcx, [rdi+2E8h]                                                ; +0x7c, 0x1404266cc\nmov     edx, 2                                                         ; +0x83, 0x1404266d3\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x88, 0x1404266d8\ntest    rax, rax                                                       ; +0x8e, 0x1404266de\njz      short loc_1404266F1                                            ; +0x91, 0x1404266e1\ncmp     ebx, 2                                                         ; +0x93, 0x1404266e3\nmov     rcx, rax                                                       ; +0x96, 0x1404266e6\nsetz    dl                                                             ; +0x99, 0x1404266e9\ncall    CCMenuItemToggler__toggle                                      ; +0x9c, 0x1404266ec\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa1, 0x1404266f1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa6, 0x1404266f6\nadd     rsp, 20h                                                       ; +0xab, 0x1404266fb\npop     rdi                                                            ; +0xaf, 0x1404266ff\nretn                                                                   ; +0xb0, 0x140426700", "xrefs": ["<???> @ 0x1405e6cf8", "<???> @ 0x1406d9734"], "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"}