{"type": "func", "start": 6442515056, "end": 6442515123, "name": "cocos2d::CCSet::containsObject", "pseudocode": "// \n// cocos2d::CCSet::containsObject from 0x18000fa70 to 0x18000fab3 (67 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCTouchDispatcher::touches @ 0x1800b33a9\n// > <???> @ 0x1801438a8\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\nbool __fastcall cocos2d::CCSet::containsObject(\n        cocos2d::CCSet *this,\n        std::_Tree_node<cocos2d::CCObject *, void *>::value_type a2)\n{\n  std::_Tree_val<std::_Tree_simple_types<cocos2d::CCObject *>>::_Nodeptr Myhead; // rax\n  std::_Tree_val<std::_Tree_simple_types<cocos2d::CCObject *>>::_Nodeptr v3; // r8\n  std::_Tree_node<cocos2d::CCObject *, void *>::_Nodeptr Parent; // rcx\n\n  Myhead = this->m_pSet->_Mypair._Myval2._Myval2._Myhead;\n  v3 = Myhead;\n  Parent = Myhead->_Parent;\n  while ( !Parent->_Isnil )\n  {\n    if ( Parent->_Myval >= a2 )\n    {\n      v3 = Parent;\n      Parent = Parent->_Left;\n    }\n    else\n    {\n      Parent = Parent->_Right;\n    }\n  }\n  if ( v3->_Isnil || a2 < v3->_Myval )\n    v3 = Myhead;\n  return v3 != Myhead;\n}", "assembly": "; \n; cocos2d::CCSet::containsObject from 0x18000fa70 to 0x18000fab3 (67 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCTouchDispatcher::touches @ 0x1800b33a9\n; > <???> @ 0x1801438a8\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     rax, [rcx+38h]                                                 ; +0x0, 0x18000fa70\nmov     rax, [rax]                                                     ; +0x4, 0x18000fa74\nmov     r8, rax                                                        ; +0x7, 0x18000fa77\nmov     rcx, [rax+8]                                                   ; +0xa, 0x18000fa7a\ncmp     byte ptr [rcx+19h], 0                                          ; +0xe, 0x18000fa7e\njnz     short loc_18000FA9C                                            ; +0x12, 0x18000fa82\ncmp     [rcx+20h], rdx                                                 ; +0x14, 0x18000fa84\njnb     short loc_18000FA90                                            ; +0x18, 0x18000fa88\nmov     rcx, [rcx+10h]                                                 ; +0x1a, 0x18000fa8a\njmp     short loc_18000FA96                                            ; +0x1e, 0x18000fa8e\nmov     r8, rcx                                                        ; +0x20, 0x18000fa90\nmov     rcx, [rcx]                                                     ; +0x23, 0x18000fa93\ncmp     byte ptr [rcx+19h], 0                                          ; +0x26, 0x18000fa96\njz      short loc_18000FA84                                            ; +0x2a, 0x18000fa9a\ncmp     byte ptr [r8+19h], 0                                           ; +0x2c, 0x18000fa9c\njnz     short loc_18000FAA9                                            ; +0x31, 0x18000faa1\ncmp     rdx, [r8+20h]                                                  ; +0x33, 0x18000faa3\njnb     short loc_18000FAAC                                            ; +0x37, 0x18000faa7\nmov     r8, rax                                                        ; +0x39, 0x18000faa9\ncmp     r8, rax                                                        ; +0x3c, 0x18000faac\nsetnz   al                                                             ; +0x3f, 0x18000faaf\nretn                                                                   ; +0x42, 0x18000fab2", "xrefs": ["cocos2d::CCTouchDispatcher::touches @ 0x1800b33a9", "<???> @ 0x1801438a8"], "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"}