// // GJBaseGameLayer::sortSectionVector from 0x140226fa0 to 0x1402271b7 (535 bytes) // // 2 xrefs: // > PlayLayer::resetLevel @ 0x1403b9a81 // > @ 0x1406cd860 // // 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 GJBaseGameLayer::sortSectionVector(GJBaseGameLayer *a1) { std::_Vector_val *, std::allocator *>> *>>::pointer Myfirst; // rdx int v2; // r12d __int64 v4; // r14 _QWORD *p_Myfirst; // rcx __int64 v6; // rax __int64 v7; // rdi __int64 i; // r15 std::_Simple_types *>::value_type v9; // rbx __int64 v10; // rsi int v11; // edx __int64 v12; // r8 std::_Vector_val *>>::pointer v13; // rdx int v14; // r12d __int64 v15; // r14 _QWORD *v16; // rcx __int64 v17; // rax __int64 v18; // rdi __int64 j; // r15 std::_Simple_types::value_type v20; // rbx __int64 v21; // rsi int v22; // eax __int64 v23; // r8 Myfirst = a1->m_nonEffectObjects._Mypair._Myval2._Myfirst; v2 = 0; if ( a1->m_nonEffectObjects._Mypair._Myval2._Mylast - Myfirst ) { v4 = 0; do { p_Myfirst = &Myfirst[v4]->_Mypair._Myval2._Myfirst; if ( p_Myfirst ) v6 = (__int64)(p_Myfirst[1] - *p_Myfirst) >> 3; else LODWORD(v6) = -1; v7 = 0; for ( i = (int)v6; v7 < i; ++v7 ) { v9 = a1->m_nonEffectObjects._Mypair._Myval2._Myfirst[v4]->_Mypair._Myval2._Myfirst[v7]; if ( v9 ) { v10 = a1->m_nonEffectObjectsSizes._Mypair._Myval2._Myfirst[v4]->_Mypair._Myval2._Myfirst[v7]; sub_140251360(v9->_Mypair._Myval2._Myfirst, &v9->_Mypair._Myval2._Myfirst[v10], v10, sub_140205210); v11 = 0; if ( (int)v10 > 0 ) { v12 = 0; do v9->_Mypair._Myval2._Myfirst[v12++]->m_innerSectionIndex = v11++; while ( v11 < (int)v10 ); } } } Myfirst = a1->m_nonEffectObjects._Mypair._Myval2._Myfirst; ++v2; ++v4; } while ( v2 < (unsigned __int64)(a1->m_nonEffectObjects._Mypair._Myval2._Mylast - Myfirst) ); } v13 = a1->m_collisionBlockSections._Mypair._Myval2._Myfirst; v14 = 0; if ( a1->m_collisionBlockSections._Mypair._Myval2._Mylast - v13 ) { v15 = 0; do { v16 = &v13[v15]->_Mypair._Myval2._Myfirst; if ( v16 ) v17 = (__int64)(v16[1] - *v16) >> 3; else LODWORD(v17) = -1; v18 = 0; for ( j = (int)v17; v18 < j; ++v18 ) { v20 = a1->m_collisionBlockSections._Mypair._Myval2._Myfirst[v15]->_Mypair._Myval2._Myfirst[v18]; if ( v20 ) { v21 = a1->m_collisionBlockSectionSizes._Mypair._Myval2._Myfirst[v15]->_Mypair._Myval2._Myfirst[v18]; sub_140251E60( v20->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable, (char *)v20->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + 8 * v21, v21, sub_140205210); v22 = 0; if ( (int)v21 > 0 ) { v23 = 0; do { v23 += 8; *(_DWORD *)(*(_QWORD *)((char *)v20->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v23 - 8) + 628LL) = v22++; } while ( v22 < (int)v21 ); } } } v13 = a1->m_collisionBlockSections._Mypair._Myval2._Myfirst; ++v14; ++v15; } while ( v14 < (unsigned __int64)(a1->m_collisionBlockSections._Mypair._Myval2._Mylast - v13) ); } }