// // cocos2d::extension::CCScrollView::getScriptHandler from 0xaa6b2c to 0xaa6b84 (88 bytes) // // 1 xrefs: // > @ 0x813a8 // // 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 // int cocos2d::extension::CCScrollView::getScriptHandler(cocos2d::extension::CCScrollView *a1, int a2) { std::_rb_tree_base *p_m_header; // x4 std::_rb_tree_base *m_parent; // x0 std::_rb_tree_base *v4; // x3 p_m_header = &a1->m_mapScriptHandler.m_header; m_parent = a1->m_mapScriptHandler.m_header.m_parent; if ( !m_parent ) goto LABEL_11; v4 = p_m_header; do { while ( *(_DWORD *)&m_parent[1].m_isblack >= a2 ) { v4 = m_parent; m_parent = m_parent->m_left; if ( !m_parent ) goto LABEL_5; } m_parent = m_parent->m_right; } while ( m_parent ); LABEL_5: if ( p_m_header == v4 ) { LABEL_11: LODWORD(m_parent) = 0; } else if ( *(_DWORD *)&v4[1].m_isblack <= a2 ) { LODWORD(m_parent) = *((_DWORD *)&v4[1].m_isblack + 1); } return (int)m_parent; }
GD Web Decomp Icon

GD Web Decomp

Raw Source