{"type": "func", "start": 6442514656, "end": 6442514877, "name": "cocos2d::CCSet::addObject", "pseudocode": "// \n// cocos2d::CCSet::addObject from 0x18000f8e0 to 0x18000f9bd (221 bytes)\n// \n// 11 xrefs:\n// > cocos2d::CCActionManager::pauseAllRunningActions @ 0x180038212\n// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006b7d3\n// > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006bb1f\n// > cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x18006bdfb\n// > cocos2d::CCTouchDispatcher::touches @ 0x1800b3394\n// > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0c9b\n// > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0cca\n// > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0cff\n// > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0d29\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae014\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// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCSet::addObject(cocos2d::CCSet *this, struct cocos2d::CCObject *a2)\n{\n  std::set<cocos2d::CCObject *> *m_pSet; // rsi\n  std::_Tree_val<std::_Tree_simple_types<cocos2d::CCObject *>>::_Nodeptr Myhead; // rdi\n  std::_Tree_node<cocos2d::CCObject *, void *>::_Nodeptr Parent; // rax\n  std::_Tree_val<std::_Tree_simple_types<cocos2d::CCObject *>>::_Nodeptr v7; // rcx\n  std::_Tree_val<std::_Tree_simple_types<cocos2d::CCObject *>>::_Nodeptr *v8; // rax\n  __int128 v9; // [rsp+20h] [rbp-38h] BYREF\n  __int128 v10; // [rsp+30h] [rbp-28h]\n\n  if ( a2 )\n    cocos2d::CCObject::retain(a2);\n  m_pSet = this->m_pSet;\n  Myhead = m_pSet->_Mypair._Myval2._Myval2._Myhead;\n  Parent = m_pSet->_Mypair._Myval2._Myval2._Myhead->_Parent;\n  *(_QWORD *)&v10 = Parent;\n  DWORD2(v10) = 0;\n  v7 = Myhead;\n  while ( !Parent->_Isnil )\n  {\n    *(_QWORD *)&v10 = Parent;\n    if ( Parent->_Myval >= a2 )\n    {\n      DWORD2(v10) = 1;\n      v7 = Parent;\n      Parent = Parent->_Left;\n    }\n    else\n    {\n      DWORD2(v10) = 0;\n      Parent = Parent->_Right;\n    }\n  }\n  if ( v7->_Isnil || a2 < v7->_Myval )\n  {\n    if ( m_pSet->_Mypair._Myval2._Myval2._Mysize == 0x666666666666666LL )\n      std::vector<void *>::_Xlen();\n    v8 = (std::_Tree_val<std::_Tree_simple_types<cocos2d::CCObject *>>::_Nodeptr *)operator new(0x28u);\n    v8[4] = (std::_Tree_val<std::_Tree_simple_types<cocos2d::CCObject *>>::_Nodeptr)a2;\n    *v8 = Myhead;\n    v8[1] = Myhead;\n    v8[2] = Myhead;\n    *((_WORD *)v8 + 12) = 0;\n    v9 = v10;\n    sub_18000F590(m_pSet, (__int64)&v9, (__int64)v8);\n  }\n}", "assembly": "; \n; cocos2d::CCSet::addObject from 0x18000f8e0 to 0x18000f9bd (221 bytes)\n; \n; 11 xrefs:\n; > cocos2d::CCActionManager::pauseAllRunningActions @ 0x180038212\n; > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006b7d3\n; > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006bb1f\n; > cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x18006bdfb\n; > cocos2d::CCTouchDispatcher::touches @ 0x1800b3394\n; > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0c9b\n; > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0cca\n; > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0cff\n; > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0d29\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae014\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, 0x18000f8e0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18000f8e5\npush    rdi                                                            ; +0xa, 0x18000f8ea\nsub     rsp, 50h                                                       ; +0xb, 0x18000f8eb\nmov     rbx, rdx                                                       ; +0xf, 0x18000f8ef\nmov     rdi, rcx                                                       ; +0x12, 0x18000f8f2\ntest    rdx, rdx                                                       ; +0x15, 0x18000f8f5\njz      short loc_18000F902                                            ; +0x18, 0x18000f8f8\nmov     rcx, rdx; this                                                 ; +0x1a, 0x18000f8fa\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x1d, 0x18000f8fd\nmov     rsi, [rdi+38h]                                                 ; +0x22, 0x18000f902\nmov     rdi, [rsi]                                                     ; +0x26, 0x18000f906\nmov     rax, [rdi+8]                                                   ; +0x29, 0x18000f909\nmov     qword ptr [rsp+58h+var_28], rax                                ; +0x2d, 0x18000f90d\nxor     edx, edx                                                       ; +0x32, 0x18000f912\nmov     dword ptr [rsp+58h+var_28+8], edx                              ; +0x34, 0x18000f914\nmov     rcx, rdi                                                       ; +0x38, 0x18000f918\ncmp     [rax+19h], dl                                                  ; +0x3b, 0x18000f91b\njnz     short loc_18000F948                                            ; +0x3e, 0x18000f91e\nmov     qword ptr [rsp+58h+var_28], rax                                ; +0x40, 0x18000f920\ncmp     [rax+20h], rbx                                                 ; +0x45, 0x18000f925\njnb     short loc_18000F935                                            ; +0x49, 0x18000f929\nmov     dword ptr [rsp+58h+var_28+8], edx                              ; +0x4b, 0x18000f92b\nmov     rax, [rax+10h]                                                 ; +0x4f, 0x18000f92f\njmp     short loc_18000F943                                            ; +0x53, 0x18000f933\nmov     dword ptr [rsp+58h+var_28+8], 1                                ; +0x55, 0x18000f935\nmov     rcx, rax                                                       ; +0x5d, 0x18000f93d\nmov     rax, [rax]                                                     ; +0x60, 0x18000f940\ncmp     [rax+19h], dl                                                  ; +0x63, 0x18000f943\njz      short loc_18000F920                                            ; +0x66, 0x18000f946\ncmp     [rcx+19h], dl                                                  ; +0x68, 0x18000f948\njnz     short loc_18000F953                                            ; +0x6b, 0x18000f94b\ncmp     rbx, [rcx+20h]                                                 ; +0x6d, 0x18000f94d\njnb     short loc_18000F9A7                                            ; +0x71, 0x18000f951\nmov     rax, 666666666666666h                                          ; +0x73, 0x18000f953\ncmp     [rsi+8], rax                                                   ; +0x7d, 0x18000f95d\njz      short loc_18000F9B7                                            ; +0x81, 0x18000f961\nmov     qword ptr [rsp+58h+var_38], rsi                                ; +0x83, 0x18000f963\nmov     qword ptr [rsp+58h+var_38+8], rdx                              ; +0x88, 0x18000f968\nmov     ecx, 28h ; '('; Size                                           ; +0x8d, 0x18000f96d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x92, 0x18000f972\nnop                                                                    ; +0x97, 0x18000f977\nmov     [rax+20h], rbx                                                 ; +0x98, 0x18000f978\nmov     [rax], rdi                                                     ; +0x9c, 0x18000f97c\nmov     [rax+8], rdi                                                   ; +0x9f, 0x18000f97f\nmov     [rax+10h], rdi                                                 ; +0xa3, 0x18000f983\nmov     word ptr [rax+18h], 0                                          ; +0xa7, 0x18000f987\nmovups  xmm0, [rsp+58h+var_28]                                         ; +0xad, 0x18000f98d\nmovaps  [rsp+58h+var_38], xmm0                                         ; +0xb2, 0x18000f992\nmov     r8, rax                                                        ; +0xb7, 0x18000f997\nlea     rdx, [rsp+58h+var_38]                                          ; +0xba, 0x18000f99a\nmov     rcx, rsi                                                       ; +0xbf, 0x18000f99f\ncall    sub_18000F590                                                  ; +0xc2, 0x18000f9a2\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xc7, 0x18000f9a7\nmov     rsi, [rsp+58h+arg_8]                                           ; +0xcc, 0x18000f9ac\nadd     rsp, 50h                                                       ; +0xd1, 0x18000f9b1\npop     rdi                                                            ; +0xd5, 0x18000f9b5\nretn                                                                   ; +0xd6, 0x18000f9b6\ncall    ?_Xlen@?$vector@PEAXV?$allocator@PEAX@std@@@std@@IEBAXXZ_2; std::vector<void *>::_Xlen(void) ; +0xd7, 0x18000f9b7\ndb 0CCh                                                                ; +0xdc, 0x18000f9bc", "xrefs": ["cocos2d::CCActionManager::pauseAllRunningActions @ 0x180038212", "cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006b7d3", "cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006bb1f", "cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x18006bdfb", "cocos2d::CCTouchDispatcher::touches @ 0x1800b3394", "cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0c9b", "cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0cca", "cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0cff", "cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c0d29", "<???> @ 0x1801438a8", "<???> @ 0x1801ae014"], "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"}