{"type": "func", "start": 5373062912, "end": 5373063080, "name": "SetupKeyframePopup::onClose", "pseudocode": "// \n// SetupKeyframePopup::onClose from 0x140426f00 to 0x140426fa8 (168 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405e6ca0\n// > <???> @ 0x1406a0af8\n// > <???> @ 0x1406a0b08\n// > <???> @ 0x1406d9788\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::onClose(SetupKeyframePopup *a1, cocos2d::CCObject *a2)\n{\n  LevelEditorLayer *m_editorLayer; // rcx\n  EffectGameObject *m_gameObject; // rax\n  int m_targetGroupID; // edi\n  struct cocos2d::CCObject *v7; // rax\n  cocos2d::CCObject_vtbl *v8; // rax\n  __int64 copyWithZone_low; // rcx\n  bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // rax\n  bool (__fastcall *i)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // rdx\n  __int64 v12; // rcx\n\n  if ( a1->m_groupIDChanged )\n  {\n    m_editorLayer = a1->m_editorLayer;\n    if ( m_editorLayer )\n    {\n      m_gameObject = a1->m_gameObject;\n      m_targetGroupID = m_gameObject->m_targetGroupID;\n      v7 = cocos2d::CCDictionary::objectForKey(m_editorLayer->m_keyframeGroups, m_gameObject[1].m_nTag);\n      if ( v7 )\n      {\n        v8 = v7[1].__vftable;\n        copyWithZone_low = LODWORD(v8->copyWithZone);\n        if ( (_DWORD)copyWithZone_low )\n        {\n          isEqual = v8->isEqual;\n          for ( i = (bool (__fastcall *)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *))((char *)isEqual\n                                                                                                + 8 * copyWithZone_low\n                                                                                                - 8);\n                (unsigned __int64)isEqual <= (unsigned __int64)i;\n                *(_BYTE *)(v12 + 1897) = 1 )\n          {\n            v12 = *(_QWORD *)isEqual;\n            if ( !*(_QWORD *)isEqual )\n              break;\n            isEqual = (bool (__fastcall *)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *))((char *)isEqual + 8);\n            *(_DWORD *)(v12 + 1480) = m_targetGroupID;\n          }\n        }\n      }\n    }\n  }\n  SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; SetupKeyframePopup::onClose from 0x140426f00 to 0x140426fa8 (168 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405e6ca0\n; > <???> @ 0x1406a0af8\n; > <???> @ 0x1406a0b08\n; > <???> @ 0x1406d9788\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_8], rbx                                               ; +0x0, 0x140426f00\npush    rsi                                                            ; +0x5, 0x140426f05\nsub     rsp, 20h                                                       ; +0x6, 0x140426f06\ncmp     byte ptr [rcx+3B8h], 0                                         ; +0xa, 0x140426f0a\nmov     rsi, rdx                                                       ; +0x11, 0x140426f11\nmov     rbx, rcx                                                       ; +0x14, 0x140426f14\njz      short loc_140426F93                                            ; +0x17, 0x140426f17\nmov     rcx, [rcx+3B0h]                                                ; +0x19, 0x140426f19\ntest    rcx, rcx                                                       ; +0x20, 0x140426f20\njz      short loc_140426F93                                            ; +0x23, 0x140426f23\nmov     rax, [rbx+290h]                                                ; +0x25, 0x140426f25\nmov     rcx, [rcx+3530h]                                               ; +0x2c, 0x140426f2c\nmov     [rsp+28h+arg_0], rdi                                           ; +0x33, 0x140426f33\nmovsxd  rdx, dword ptr [rax+750h]                                      ; +0x38, 0x140426f38\nmov     edi, [rax+5C8h]                                                ; +0x3f, 0x140426f3f\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x45, 0x140426f45\ntest    rax, rax                                                       ; +0x4b, 0x140426f4b\njz      short loc_140426F8E                                            ; +0x4e, 0x140426f4e\nmov     rax, [rax+38h]                                                 ; +0x50, 0x140426f50\nmov     ecx, [rax]                                                     ; +0x54, 0x140426f54\ntest    ecx, ecx                                                       ; +0x56, 0x140426f56\njz      short loc_140426F8E                                            ; +0x58, 0x140426f58\nmov     rax, [rax+10h]                                                 ; +0x5a, 0x140426f5a\nlea     rdx, [rcx-1]                                                   ; +0x5e, 0x140426f5e\nlea     rdx, [rax+rdx*8]                                               ; +0x62, 0x140426f62\ncmp     rax, rdx                                                       ; +0x66, 0x140426f66\nja      short loc_140426F8E                                            ; +0x69, 0x140426f69\nnop     dword ptr [rax+rax+00h]                                        ; +0x6b, 0x140426f6b\nmov     rcx, [rax]                                                     ; +0x70, 0x140426f70\ntest    rcx, rcx                                                       ; +0x73, 0x140426f73\njz      short loc_140426F8E                                            ; +0x76, 0x140426f76\nadd     rax, 8                                                         ; +0x78, 0x140426f78\nmov     [rcx+5C8h], edi                                                ; +0x7c, 0x140426f7c\nmov     byte ptr [rcx+769h], 1                                         ; +0x82, 0x140426f82\ncmp     rax, rdx                                                       ; +0x89, 0x140426f89\njbe     short loc_140426F70                                            ; +0x8c, 0x140426f8c\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x8e, 0x140426f8e\nmov     rdx, rsi                                                       ; +0x93, 0x140426f93\nmov     rcx, rbx                                                       ; +0x96, 0x140426f96\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x99, 0x140426f99\nadd     rsp, 20h                                                       ; +0x9e, 0x140426f9e\npop     rsi                                                            ; +0xa2, 0x140426fa2\njmp     SetupTriggerPopup__onClose                                     ; +0xa3, 0x140426fa3", "xrefs": ["<???> @ 0x1405e6ca0", "<???> @ 0x1406a0af8", "<???> @ 0x1406a0b08", "<???> @ 0x1406d9788"], "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"}