// // SpawnTriggerGameObject::changeRemap from 0x3ed86c to 0x3ed9e4 (376 bytes) // // 2 xrefs: // > EditorUI::replaceGroupID @ 0x37e4ee // > EditorUI::replaceGroupID @ 0x37e4fe // // 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 SpawnTriggerGameObject::changeRemap(SpawnTriggerGameObject *a1, int a2, int a3, bool a4) { ChanceObject *m_start; // r4 ChanceObject *m_finish; // r5 ChanceObject *i; // r0 _DWORD *v8; // r8 _DWORD **v9; // r11 int m_chance; // r3 _DWORD *v11; // r6 _DWORD *v12; // r3 _DWORD **v13; // r6 _BOOL4 v14; // r0 _DWORD *v15; // r3 int v16; // r0 _BOOL4 v17; // r8 int v18; // r0 int v19; // r1 int m_groupID; // [sp+4h] [bp-28h] BYREF int v21; // [sp+8h] [bp-24h] char v22[4]; // [sp+Ch] [bp-20h] BYREF _DWORD *v23[4]; // [sp+10h] [bp-1Ch] BYREF int v24; // [sp+20h] [bp-Ch] m_start = a1->m_remapObjects.m_start; m_finish = a1->m_remapObjects.m_finish; if ( m_start != m_finish ) { for ( i = m_start + 1; ; ++i ) { if ( a4 ) { if ( i[-1].m_groupID == a2 && i[-1].m_chance != a3 ) i[-1].m_groupID = a3; } else if ( i[-1].m_chance == a2 && i[-1].m_groupID != a3 ) { i[-1].m_chance = a3; } if ( m_finish == i ) break; } memset(v23, 0, sizeof(v23)); v23[2] = v23; v24 = 0; v23[3] = v23; while ( 1 ) { while ( 1 ) { if ( m_start == a1->m_remapObjects.m_finish ) { std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_erase( (int)v22, v23[1]); return; } v8 = v23[1]; v9 = v23; m_chance = m_start->m_chance; v11 = v23[1]; m_groupID = m_start->m_groupID; v21 = m_chance; while ( v11 ) { if ( std::operator<(v11 + 4, &m_groupID) ) { v12 = (_DWORD *)v11[3]; v11 = v9; } else { v12 = (_DWORD *)v11[2]; } v9 = (_DWORD **)v11; v11 = v12; } if ( v9 == v23 || std::operator<(&m_groupID, v9 + 4) ) break; m_start = (ChanceObject *)std::vector::erase((int)&a1->m_remapObjects, (int)m_start); } v13 = v23; v14 = 1; while ( v8 ) { v14 = std::operator<(&m_groupID, v8 + 4); if ( v14 ) v15 = (_DWORD *)v8[2]; else v15 = (_DWORD *)v8[3]; v13 = (_DWORD **)v8; v8 = v15; } if ( !v14 ) break; if ( v13 != v23[2] ) { v16 = sub_762018(v13); goto LABEL_34; } LABEL_35: v17 = v13 == v23 || std::operator<(&m_groupID, v13 + 4); v18 = operator new(0x18u); v19 = v21; *(_DWORD *)(v18 + 16) = m_groupID; *(_DWORD *)(v18 + 20) = v19; sub_7620E8(v17, v18, v13, v23); ++v24; LABEL_38: ++m_start; } v16 = (int)v13; LABEL_34: if ( !std::operator<((_DWORD *)(v16 + 16), &m_groupID) ) goto LABEL_38; goto LABEL_35; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source