{"type": "func", "start": 6442515904, "end": 6442516071, "name": "cocos2d::CCSet::removeObject", "pseudocode": "// \n// cocos2d::CCSet::removeObject from 0x18000fdc0 to 0x18000fe67 (167 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCTouchDispatcher::touches @ 0x1800b7077\n// > cocos2d::CCTouchDispatcher::touches @ 0x1800b70a7\n// > cocos2d::CCTouchDispatcher::touches @ 0x1800b7141\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b80ec\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\nvoid __fastcall cocos2d::CCSet::removeObject(cocos2d::CCSet *this, struct cocos2d::CCObject *a2)\n{\n  __int64 ***v2; // r10\n  __int64 *v4; // r9\n  __int64 v5; // r8\n  __int64 v6; // rax\n  __int64 i; // rcx\n  unsigned __int64 v8; // rdx\n  __int64 *v9[3]; // [rsp+20h] [rbp-18h] BYREF\n\n  v2 = *((__int64 ****)this + 7);\n  v4 = (__int64 *)*v2;\n  v5 = (__int64)*v2;\n  v6 = (__int64)(*v2)[1];\n  for ( i = v6; !*(_BYTE *)(i + 25); i = *(_QWORD *)i )\n  {\n    v8 = *(_QWORD *)(i + 32);\n    if ( v8 >= (unsigned __int64)a2 )\n    {\n      if ( *(_BYTE *)(v5 + 25) && (unsigned __int64)a2 < v8 )\n        v5 = i;\n      v4 = (__int64 *)i;\n    }\n    else\n    {\n      i += 16;\n    }\n  }\n  if ( !*(_BYTE *)(v5 + 25) )\n    v6 = *(_QWORD *)v5;\n  while ( !*(_BYTE *)(v6 + 25) )\n  {\n    if ( (unsigned __int64)a2 >= *(_QWORD *)(v6 + 32) )\n    {\n      v6 = *(_QWORD *)(v6 + 16);\n    }\n    else\n    {\n      v5 = v6;\n      v6 = *(_QWORD *)v6;\n    }\n  }\n  v9[0] = v4;\n  v9[1] = (__int64 *)v5;\n  sub_18000F190(v2, v9);\n  if ( a2 )\n    cocos2d::CCObject::release(a2);\n}", "assembly": "; \n; cocos2d::CCSet::removeObject from 0x18000fdc0 to 0x18000fe67 (167 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCTouchDispatcher::touches @ 0x1800b7077\n; > cocos2d::CCTouchDispatcher::touches @ 0x1800b70a7\n; > cocos2d::CCTouchDispatcher::touches @ 0x1800b7141\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b80ec\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; \npush    rbx                                                            ; +0x0, 0x18000fdc0\nsub     rsp, 30h                                                       ; +0x2, 0x18000fdc2\nmov     r10, [rcx+38h]                                                 ; +0x6, 0x18000fdc6\nmov     rbx, rdx                                                       ; +0xa, 0x18000fdca\nmov     r9, [r10]                                                      ; +0xd, 0x18000fdcd\nmov     r8, r9                                                         ; +0x10, 0x18000fdd0\nmov     rax, [r9+8]                                                    ; +0x13, 0x18000fdd3\nmov     rcx, rax                                                       ; +0x17, 0x18000fdd7\ncmp     byte ptr [rax+19h], 0                                          ; +0x1a, 0x18000fdda\njnz     short loc_18000FE09                                            ; +0x1e, 0x18000fdde\nmov     rdx, [rcx+20h]                                                 ; +0x20, 0x18000fde0\ncmp     rdx, rbx                                                       ; +0x24, 0x18000fde4\njnb     short loc_18000FDEF                                            ; +0x27, 0x18000fde7\nadd     rcx, 10h                                                       ; +0x29, 0x18000fde9\njmp     short loc_18000FE00                                            ; +0x2d, 0x18000fded\ncmp     byte ptr [r8+19h], 0                                           ; +0x2f, 0x18000fdef\njz      short loc_18000FDFD                                            ; +0x34, 0x18000fdf4\ncmp     rbx, rdx                                                       ; +0x36, 0x18000fdf6\ncmovb   r8, rcx                                                        ; +0x39, 0x18000fdf9\nmov     r9, rcx                                                        ; +0x3d, 0x18000fdfd\nmov     rcx, [rcx]                                                     ; +0x40, 0x18000fe00\ncmp     byte ptr [rcx+19h], 0                                          ; +0x43, 0x18000fe03\njz      short loc_18000FDE0                                            ; +0x47, 0x18000fe07\ncmp     byte ptr [r8+19h], 0                                           ; +0x49, 0x18000fe09\njnz     short loc_18000FE13                                            ; +0x4e, 0x18000fe0e\nmov     rax, [r8]                                                      ; +0x50, 0x18000fe10\ncmp     byte ptr [rax+19h], 0                                          ; +0x53, 0x18000fe13\njnz     short loc_18000FE38                                            ; +0x57, 0x18000fe17\nnop     dword ptr [rax+00000000h]                                      ; +0x59, 0x18000fe19\ncmp     rbx, [rax+20h]                                                 ; +0x60, 0x18000fe20\njnb     short loc_18000FE2E                                            ; +0x64, 0x18000fe24\nmov     r8, rax                                                        ; +0x66, 0x18000fe26\nmov     rax, [rax]                                                     ; +0x69, 0x18000fe29\njmp     short loc_18000FE32                                            ; +0x6c, 0x18000fe2c\nmov     rax, [rax+10h]                                                 ; +0x6e, 0x18000fe2e\ncmp     byte ptr [rax+19h], 0                                          ; +0x72, 0x18000fe32\njz      short loc_18000FE20                                            ; +0x76, 0x18000fe36\nlea     rdx, [rsp+38h+var_18]                                          ; +0x78, 0x18000fe38\nmov     [rsp+38h+var_18], r9                                           ; +0x7d, 0x18000fe3d\nmov     rcx, r10                                                       ; +0x82, 0x18000fe42\nmov     [rsp+38h+var_10], r8                                           ; +0x85, 0x18000fe45\ncall    sub_18000F190                                                  ; +0x8a, 0x18000fe4a\ntest    rbx, rbx                                                       ; +0x8f, 0x18000fe4f\njz      short loc_18000FE61                                            ; +0x92, 0x18000fe52\nmov     rcx, rbx; this                                                 ; +0x94, 0x18000fe54\nadd     rsp, 30h                                                       ; +0x97, 0x18000fe57\npop     rbx                                                            ; +0x9b, 0x18000fe5b\njmp     ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x9c, 0x18000fe5c\nadd     rsp, 30h                                                       ; +0xa1, 0x18000fe61\npop     rbx                                                            ; +0xa5, 0x18000fe65\nretn                                                                   ; +0xa6, 0x18000fe66", "xrefs": ["cocos2d::CCTouchDispatcher::touches @ 0x1800b7077", "cocos2d::CCTouchDispatcher::touches @ 0x1800b70a7", "cocos2d::CCTouchDispatcher::touches @ 0x1800b7141", "<???> @ 0x18014cf68", "<???> @ 0x1801b80ec"], "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"}