{"type": "func", "start": 6442515088, "end": 6442515326, "name": "cocos2d::CCSet::addObject", "pseudocode": "// \n// cocos2d::CCSet::addObject from 0x18000fa90 to 0x18000fb7e (238 bytes)\n// \n// 11 xrefs:\n// > cocos2d::CCActionManager::pauseAllRunningActions @ 0x180038932\n// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006d9b5\n// > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006dd71\n// > cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x18006e04b\n// > cocos2d::CCTouchDispatcher::touches @ 0x1800b7017\n// > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c457b\n// > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c45aa\n// > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c45df\n// > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c4609\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b80bc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:21 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCSet::addObject(cocos2d::CCSet *this, struct cocos2d::CCObject *a2)\n{\n  _QWORD *v4; // rdi\n  __int64 *v5; // rsi\n  __int64 *v6; // rdx\n  int v7; // ecx\n  __int64 *v8; // r8\n  __int64 *v9; // rax\n  __int64 v10; // rax\n  __int128 v11; // [rsp+20h] [rbp-38h] BYREF\n  __int128 v12; // [rsp+30h] [rbp-28h]\n\n  if ( a2 )\n    cocos2d::CCObject::retain(a2);\n  v4 = *((_QWORD **)this + 7);\n  v5 = (__int64 *)*v4;\n  v6 = *(__int64 **)(*v4 + 8LL);\n  v7 = 0;\n  v8 = (__int64 *)*v4;\n  if ( !*((_BYTE *)v6 + 25) )\n  {\n    v9 = *(__int64 **)(*v4 + 8LL);\n    do\n    {\n      v6 = v9;\n      if ( v9[4] >= (unsigned __int64)a2 )\n      {\n        v7 = 1;\n        v8 = v9;\n      }\n      else\n      {\n        v7 = 0;\n        v9 += 2;\n      }\n      v9 = (__int64 *)*v9;\n    }\n    while ( !*((_BYTE *)v9 + 25) );\n  }\n  *(_QWORD *)&v12 = v6;\n  DWORD2(v12) = v7;\n  if ( *((_BYTE *)v8 + 25) || (unsigned __int64)a2 < v8[4] )\n  {\n    if ( v4[1] == 0x666666666666666LL )\n      std::vector<void *>::_Xlen();\n    v10 = sub_1800E4AC0(0x28u);\n    *(_QWORD *)(v10 + 32) = a2;\n    *(_QWORD *)v10 = v5;\n    *(_QWORD *)(v10 + 8) = v5;\n    *(_QWORD *)(v10 + 16) = v5;\n    *(_WORD *)(v10 + 24) = 0;\n    v11 = v12;\n    sub_18000F740(v4, (__int64)&v11, v10);\n  }\n}", "assembly": "; \n; cocos2d::CCSet::addObject from 0x18000fa90 to 0x18000fb7e (238 bytes)\n; \n; 11 xrefs:\n; > cocos2d::CCActionManager::pauseAllRunningActions @ 0x180038932\n; > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006d9b5\n; > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006dd71\n; > cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x18006e04b\n; > cocos2d::CCTouchDispatcher::touches @ 0x1800b7017\n; > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c457b\n; > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c45aa\n; > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c45df\n; > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c4609\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b80bc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18000fa90\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18000fa95\npush    rdi                                                            ; +0xa, 0x18000fa9a\nsub     rsp, 50h                                                       ; +0xb, 0x18000fa9b\nmov     rbx, rdx                                                       ; +0xf, 0x18000fa9f\nmov     rdi, rcx                                                       ; +0x12, 0x18000faa2\ntest    rdx, rdx                                                       ; +0x15, 0x18000faa5\njz      short loc_18000FAB2                                            ; +0x18, 0x18000faa8\nmov     rcx, rdx; this                                                 ; +0x1a, 0x18000faaa\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x1d, 0x18000faad\nmov     rdi, [rdi+38h]                                                 ; +0x22, 0x18000fab2\nmov     rsi, [rdi]                                                     ; +0x26, 0x18000fab6\nmov     rdx, [rsi+8]                                                   ; +0x29, 0x18000fab9\nxor     ecx, ecx                                                       ; +0x2d, 0x18000fabd\nmov     r8, rsi                                                        ; +0x2f, 0x18000fabf\ncmp     [rdx+19h], cl                                                  ; +0x32, 0x18000fac2\njnz     short loc_18000FAF2                                            ; +0x35, 0x18000fac5\nmov     rax, rdx                                                       ; +0x37, 0x18000fac7\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x18000faca\nmov     rdx, rax                                                       ; +0x40, 0x18000fad0\ncmp     [rax+20h], rbx                                                 ; +0x43, 0x18000fad3\njnb     short loc_18000FAE1                                            ; +0x47, 0x18000fad7\nxor     ecx, ecx                                                       ; +0x49, 0x18000fad9\nadd     rax, 10h                                                       ; +0x4b, 0x18000fadb\njmp     short loc_18000FAE9                                            ; +0x4f, 0x18000fadf\nmov     ecx, 1                                                         ; +0x51, 0x18000fae1\nmov     r8, rax                                                        ; +0x56, 0x18000fae6\nmov     rax, [rax]                                                     ; +0x59, 0x18000fae9\ncmp     byte ptr [rax+19h], 0                                          ; +0x5c, 0x18000faec\njz      short loc_18000FAD0                                            ; +0x60, 0x18000faf0\nmov     qword ptr [rsp+58h+var_28], rdx                                ; +0x62, 0x18000faf2\nmov     dword ptr [rsp+58h+var_28+8], ecx                              ; +0x67, 0x18000faf7\nmov     eax, dword ptr [rsp+58h+var_28+0Ch]                            ; +0x6b, 0x18000fafb\nmov     dword ptr [rsp+58h+var_28+0Ch], eax                            ; +0x6f, 0x18000faff\ncmp     byte ptr [r8+19h], 0                                           ; +0x73, 0x18000fb03\njnz     short loc_18000FB10                                            ; +0x78, 0x18000fb08\ncmp     rbx, [r8+20h]                                                  ; +0x7a, 0x18000fb0a\njnb     short loc_18000FB68                                            ; +0x7e, 0x18000fb0e\nmov     rax, 666666666666666h                                          ; +0x80, 0x18000fb10\ncmp     [rdi+8], rax                                                   ; +0x8a, 0x18000fb1a\njz      short loc_18000FB78                                            ; +0x8e, 0x18000fb1e\nmov     qword ptr [rsp+58h+var_38], rdi                                ; +0x90, 0x18000fb20\nmov     qword ptr [rsp+58h+var_38+8], 0                                ; +0x95, 0x18000fb25\nmov     ecx, 28h ; '('; Size                                           ; +0x9e, 0x18000fb2e\ncall    sub_1800E4AC0                                                  ; +0xa3, 0x18000fb33\nnop                                                                    ; +0xa8, 0x18000fb38\nmov     [rax+20h], rbx                                                 ; +0xa9, 0x18000fb39\nmov     [rax], rsi                                                     ; +0xad, 0x18000fb3d\nmov     [rax+8], rsi                                                   ; +0xb0, 0x18000fb40\nmov     [rax+10h], rsi                                                 ; +0xb4, 0x18000fb44\nmov     word ptr [rax+18h], 0                                          ; +0xb8, 0x18000fb48\nmovups  xmm0, [rsp+58h+var_28]                                         ; +0xbe, 0x18000fb4e\nmovaps  [rsp+58h+var_38], xmm0                                         ; +0xc3, 0x18000fb53\nmov     r8, rax                                                        ; +0xc8, 0x18000fb58\nlea     rdx, [rsp+58h+var_38]                                          ; +0xcb, 0x18000fb5b\nmov     rcx, rdi                                                       ; +0xd0, 0x18000fb60\ncall    sub_18000F740                                                  ; +0xd3, 0x18000fb63\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xd8, 0x18000fb68\nmov     rsi, [rsp+58h+arg_8]                                           ; +0xdd, 0x18000fb6d\nadd     rsp, 50h                                                       ; +0xe2, 0x18000fb72\npop     rdi                                                            ; +0xe6, 0x18000fb76\nretn                                                                   ; +0xe7, 0x18000fb77\ncall    ?_Xlen@?$vector@PEAXV?$allocator@PEAX@std@@@std@@IEBAXXZ_2; std::vector<void *>::_Xlen(void) ; +0xe8, 0x18000fb78\ndb 0CCh                                                                ; +0xed, 0x18000fb7d", "xrefs": ["cocos2d::CCActionManager::pauseAllRunningActions @ 0x180038932", "cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006d9b5", "cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006dd71", "cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x18006e04b", "cocos2d::CCTouchDispatcher::touches @ 0x1800b7017", "cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c457b", "cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c45aa", "cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c45df", "cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0x1800c4609", "<???> @ 0x18014cf68", "<???> @ 0x1801b80bc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}