// // ObjectToolbox::intKeyToFrame from 0x7ef7d0 to 0x7ef958 (392 bytes) // // 18 xrefs: // > PlayLayer::setupHasCompleted @ 0x5dca2c // > GameObject::createWithKey @ 0x6542c0 // > GameObject::objectFromVector @ 0x654eec // > LevelEditorLayer::createObject @ 0x671e14 // > EditorUI::updateDeleteButtons @ 0x688a90 // > EditorUI::updateDeleteButtons @ 0x688bc0 // > EditorUI::updateDeleteButtons @ 0x688c6c // > EditorUI::getCreateBtn @ 0x694838 // > GJBaseGameLayer::addGuideArt @ 0x86999c // > GJBaseGameLayer::addGuideArt @ 0x869b24 // > GJBaseGameLayer::addGuideArt @ 0x869d4c // > GameObject::setupCustomSprites @ 0x98a684 // > GameObject::setupCustomSprites @ 0x99681c // > GameObject::setupCustomSprites @ 0x997a74 // > GameObject::playDestroyObjectAnim @ 0x9b2df8 // > GJSmartBlockPreview::addTemplateGuide @ 0x9d6868 // > SelectArtLayer::init @ 0xa35c60 // > @ 0x8e440 // // 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 // const char *ObjectToolbox::intKeyToFrame(ObjectToolbox *a1, int a2) { std::_rb_tree_base *p_m_header; // x23 std::_rb_tree_base *m_parent; // x0 __int64 v6; // x19 std::map *p_m_allKeys; // x22 __int64 insert_hint_unique_pos; // x0 __int64 v9; // x1 __int64 v10; // x24 _BOOL8 v11; // x0 __int64 v13; // x2 void *v14; // x0 unsigned int *v15; // x3 int v16; // w1 __int64 v17; // [xsp+48h] [xbp+48h] p_m_header = &a1->m_allKeys.m_header; m_parent = a1->m_allKeys.m_header.m_parent; v6 = (__int64)p_m_header; if ( !m_parent ) goto LABEL_6; do { while ( *(_DWORD *)&m_parent[1].m_isblack >= a2 ) { v6 = (__int64)m_parent; m_parent = m_parent->m_left; if ( !m_parent ) goto LABEL_4; } m_parent = m_parent->m_right; } while ( m_parent ); LABEL_4: if ( p_m_header == (std::_rb_tree_base *)v6 || a2 < *(_DWORD *)(v6 + 32) ) { LABEL_6: p_m_allKeys = &a1->m_allKeys; v17 = v6; v6 = operator new(0x30u); *(_DWORD *)(v6 + 32) = a2; *(_QWORD *)(v6 + 40) = &byte_124B6C8; insert_hint_unique_pos = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( p_m_allKeys, v17, (int *)(v6 + 32)); v10 = insert_hint_unique_pos; if ( v9 ) { v11 = insert_hint_unique_pos || p_m_header == (std::_rb_tree_base *)v9 || *(_DWORD *)(v6 + 32) < *(_DWORD *)(v9 + 32); sub_CFAD74(v11, v6, v9, p_m_header); ++p_m_allKeys->m_nodecount; } else { v13 = *(_QWORD *)(v6 + 40); if ( (__int64 *)(v13 - 24) != &qword_124B6B0 ) { v15 = (unsigned int *)(v13 - 8); if ( &pthread_create ) { do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(_DWORD *)(v13 - 8); *(_DWORD *)(v13 - 8) = v16 - 1; } if ( v16 <= 0 ) operator delete((void *)(v13 - 24)); } v14 = (void *)v6; v6 = v10; operator delete(v14); } } return *(const char **)(v6 + 40); }
GD Web Decomp Icon

GD Web Decomp

Raw Source