//
// AppDelegate::applicationWillTerminate from 0x3f6b34 to 0x3f6b5e (42 bytes)
//
// 0 xrefs:
//
// 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:47:17 +0000
//
int __fastcall AppDelegate::applicationWillTerminate(AppDelegate *this)
{
GameManager *v1; // r0
GManager *v2; // r0
LocalLevelManager *v3; // r0
GManager *v4; // r0
v1 = (GameManager *)(*(int (__fastcall **)(AppDelegate *, _DWORD))(*(_DWORD *)this + 32))(this, 0);
v2 = (GManager *)GameManager::sharedState(v1);
v3 = (LocalLevelManager *)GManager::waitForSave(v2, 2.0);
v4 = (GManager *)LocalLevelManager::sharedState(v3);
return GManager::waitForSave(v4, 2.0);
}