// // cocos2d::CCSet::addObject from 0xad2c08 to 0xad2d20 (280 bytes) // // 14 xrefs: // > BoomScrollLayer::claimTouch @ 0x56e618 // > BoomScrollLayer::cancelAndStoleTouch @ 0x56e650 // > TableView::claimTouch @ 0x57b8ac // > TableView::cancelAndStoleTouch @ 0x57b8e4 // > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0xab36bc // > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0xab3708 // > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0xab3760 // > cocos2d::CCScheduler::pauseAllTargetsWithMinPriority @ 0xab3788 // > cocos2d::CCActionManager::pauseAllRunningActions @ 0xac5120 // > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0xb0a13c // > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0xb0a52c // > cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0xb0a724 // > cocos2d::CCTouchDispatcher::touches @ 0xb3f37c // > @ 0x50850 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void cocos2d::CCSet::addObject(cocos2d::CCSet *a1, cocos2d::CCObject *a2) { std::set *m_pSet; // x21 _QWORD *M_parent; // x19 unsigned __int64 v6; // x1 int v7; // w2 _QWORD *v8; // x0 _BOOL4 v9; // w23 __int64 v10; // x0 if ( a2 ) cocos2d::CCObject::retain(a2); m_pSet = a1->m_pSet; M_parent = m_pSet->_M_t._M_impl._M_header._M_parent; if ( M_parent ) { v6 = M_parent[4]; v7 = 0; if ( v6 <= (unsigned __int64)a2 ) goto LABEL_7; while ( 1 ) { v8 = (_QWORD *)M_parent[2]; v7 = 1; if ( !v8 ) break; while ( 1 ) { M_parent = v8; v7 = 0; v6 = v8[4]; if ( v6 > (unsigned __int64)a2 ) break; LABEL_7: v8 = (_QWORD *)M_parent[3]; if ( !v8 ) goto LABEL_8; } } LABEL_8: if ( !v7 ) { if ( v6 >= (unsigned __int64)a2 ) return; goto LABEL_14; } } else { M_parent = &m_pSet->_M_t._M_impl._M_header; } if ( m_pSet->_M_t._M_impl._M_header._M_left != (std::_Rb_tree_node_base::_Base_ptr)M_parent ) { if ( *(_QWORD *)(sub_CFABD4(M_parent) + 32) >= (unsigned __int64)a2 ) return; LABEL_14: if ( !M_parent ) return; } v9 = &m_pSet->_M_t._M_impl._M_header == (std::_Rb_tree_node_base *)M_parent || M_parent[4] > (unsigned __int64)a2; v10 = operator new(0x28u); *(_QWORD *)(v10 + 32) = a2; sub_CFAD74(v9, v10, M_parent, &m_pSet->_M_t._M_impl._M_header); ++m_pSet->_M_t._M_impl._M_node_count; }
GD Web Decomp Icon

GD Web Decomp

Raw Source