{"type": "func", "start": 5373327008, "end": 5373327187, "name": "SelectEventLayer::onClose", "pseudocode": "// \n// SelectEventLayer::onClose from 0x1404676a0 to 0x140467753 (179 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140601ab0\n// > <???> @ 0x1406a497c\n// > <???> @ 0x1406a49b0\n// > <???> @ 0x1406db0cc\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 SelectEventLayer::onClose(SelectEventLayer *a1, cocos2d::CCObject *a2)\n{\n  SetupEventLinkPopup *m_eventLinkPopup; // rax\n  struct cocos2d::CCObject *m_gameObject; // rcx\n  struct cocos2d::CCArray *v6; // rax\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rsi\n\n  if ( a1->m_eventsChanged )\n  {\n    m_eventLinkPopup = a1->m_eventLinkPopup;\n    if ( m_eventLinkPopup )\n    {\n      m_gameObject = m_eventLinkPopup->m_gameObject;\n      v6 = m_gameObject ? cocos2d::CCArray::createWithObject(m_gameObject) : m_eventLinkPopup->m_gameObjects;\n      if ( v6 )\n      {\n        data = v6->data;\n        num = data->num;\n        if ( (_DWORD)num )\n        {\n          arr = data->arr;\n          for ( i = &arr[num - 1]; arr <= i; ++arr )\n          {\n            if ( !*arr )\n              break;\n            sub_140473880(&(*arr)[33].m_uID, &a1->m_eventIDs);\n          }\n        }\n      }\n    }\n  }\n  SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; SelectEventLayer::onClose from 0x1404676a0 to 0x140467753 (179 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140601ab0\n; > <???> @ 0x1406a497c\n; > <???> @ 0x1406a49b0\n; > <???> @ 0x1406db0cc\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_10], rbp                                              ; +0x0, 0x1404676a0\npush    rdi                                                            ; +0x5, 0x1404676a5\nsub     rsp, 20h                                                       ; +0x6, 0x1404676a6\ncmp     byte ptr [rcx+3B0h], 0                                         ; +0xa, 0x1404676aa\nmov     rbp, rdx                                                       ; +0x11, 0x1404676b1\nmov     rdi, rcx                                                       ; +0x14, 0x1404676b4\njz      loc_14046773E                                                  ; +0x17, 0x1404676b7\nmov     rax, [rcx+3A8h]                                                ; +0x1d, 0x1404676bd\ntest    rax, rax                                                       ; +0x24, 0x1404676c4\njz      short loc_14046773E                                            ; +0x27, 0x1404676c7\nmov     rcx, [rax+290h]                                                ; +0x29, 0x1404676c9\ntest    rcx, rcx                                                       ; +0x30, 0x1404676d0\njz      short loc_1404676DD                                            ; +0x33, 0x1404676d3\ncall    cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x35, 0x1404676d5\njmp     short loc_1404676E4                                            ; +0x3b, 0x1404676db\nmov     rax, [rax+298h]                                                ; +0x3d, 0x1404676dd\ntest    rax, rax                                                       ; +0x44, 0x1404676e4\njz      short loc_14046773E                                            ; +0x47, 0x1404676e7\nmov     [rsp+28h+arg_0], rbx                                           ; +0x49, 0x1404676e9\nmov     rbx, [rax+38h]                                                 ; +0x4e, 0x1404676ee\nmov     eax, [rbx]                                                     ; +0x52, 0x1404676f2\ntest    eax, eax                                                       ; +0x54, 0x1404676f4\njz      short loc_140467739                                            ; +0x56, 0x1404676f6\nmov     rbx, [rbx+10h]                                                 ; +0x58, 0x1404676f8\nmov     [rsp+28h+arg_8], rsi                                           ; +0x5c, 0x1404676fc\nlea     rsi, [rax-1]                                                   ; +0x61, 0x140467701\nlea     rsi, [rbx+rsi*8]                                               ; +0x65, 0x140467705\ncmp     rbx, rsi                                                       ; +0x69, 0x140467709\nja      short loc_140467734                                            ; +0x6c, 0x14046770c\nxchg    ax, ax                                                         ; +0x6e, 0x14046770e\nmov     rcx, [rbx]                                                     ; +0x70, 0x140467710\ntest    rcx, rcx                                                       ; +0x73, 0x140467713\njz      short loc_140467734                                            ; +0x76, 0x140467716\nlea     rdx, [rdi+3D0h]                                                ; +0x78, 0x140467718\nadd     rcx, 740h                                                      ; +0x7f, 0x14046771f\ncall    sub_140473880                                                  ; +0x86, 0x140467726\nadd     rbx, 8                                                         ; +0x8b, 0x14046772b\ncmp     rbx, rsi                                                       ; +0x8f, 0x14046772f\njbe     short loc_140467710                                            ; +0x92, 0x140467732\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x94, 0x140467734\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x99, 0x140467739\nmov     rdx, rbp                                                       ; +0x9e, 0x14046773e\nmov     rcx, rdi                                                       ; +0xa1, 0x140467741\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xa4, 0x140467744\nadd     rsp, 20h                                                       ; +0xa9, 0x140467749\npop     rdi                                                            ; +0xad, 0x14046774d\njmp     SetupTriggerPopup__onClose                                     ; +0xae, 0x14046774e", "xrefs": ["<???> @ 0x140601ab0", "<???> @ 0x1406a497c", "<???> @ 0x1406a49b0", "<???> @ 0x1406db0cc"], "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"}