// // EditorUI::resetObjectEditorValues from 0x1000406c0 to 0x1000407db (283 bytes) // // 1 xrefs: // > EditorUI::updateTransformControl @ 0x10004054d // // 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 __fastcall EditorUI::resetObjectEditorValues(EditorUI *a1, cocos2d::CCArray *a2) { cocos2d::CCArray *v2; // rbx std::unordered_map *p_m_objectEditorStates; // r14 unsigned int v4; // r15d __int64 v5; // r13 std::unordered_map *v6; // rbx __int64 v7; // r14 __int64 v8; // rsi int *v9; // [rsp-48h] [rbp-48h] BYREF cocos2d::CCArray *v10; // [rsp-40h] [rbp-40h] int v11; // [rsp-38h] [rbp-38h] BYREF char v12; // [rsp-31h] [rbp-31h] BYREF if ( a2 ) { v2 = a2; if ( (unsigned int)sub_100720070(a2) ) { if ( (unsigned int)sub_100720070(a2) ) { p_m_objectEditorStates = &a1->m_objectEditorStates; v4 = 0; v10 = a2; do { v5 = sub_1007200C0(v2, v4); GameObject::updateStartPos((GameObject *)v5); v11 = *(_DWORD *)(v5 + 916); v9 = &v11; v6 = p_m_objectEditorStates; v7 = sub_100056050(p_m_objectEditorStates, &v11, &unk_10081561F, &v9, &v12); v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5); sub_10028CC90(v7 + 20, v8); _mm_storel_ps( (double *)(v7 + 28), _mm_div_ps((__m128)*(unsigned __int64 *)(v5 + 1152), (__m128)*(unsigned __int64 *)(v5 + 1312))); *(float *)(v7 + 36) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v5 + 368LL))(v5); *(float *)(v7 + 40) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v5 + 384LL))(v5); p_m_objectEditorStates = v6; v2 = v10; ++v4; } while ( v4 < (unsigned int)sub_100720070(v10) ); } } } }