//
// sub_45F97E from 0x45f97e to 0x45f9a6 (40 bytes)
//
// 4 xrefs:
// > sub_46BA3C @ 0x46baca
// > sub_46BA3C @ 0x46bb00
// > LevelEditorLayer::doAutoSave @ 0x472b16
// > LevelEditorLayer::doAutoSave @ 0x472b6a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:48:52 +0000
//
std::__thread_struct **__fastcall sub_45F97E(std::__thread_struct **a1)
{
std::__thread_struct *v2; // r5
std::string::~string((int)(a1 + 4));
std::string::~string((int)(a1 + 1));
v2 = *a1;
*a1 = nullptr;
if ( v2 )
{
std::__thread_struct::~__thread_struct(v2);
operator delete(v2);
}
return a1;
}