// // sub_1003074F8 from 0x1003074f8 to 0x10030758c (148 bytes) // // 1 xrefs: // > AppDelegate::applicationDidEnterBackground @ 0x1003071ec // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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:03:08 +0000 // __int64 __fastcall sub_1003074F8(const void **a1) { std::__thread_specific_ptr *v2; // x0 const void *v3; // x1 __int64 v4; // x0 __int64 v5; // x0 __int64 v6; // x0 int v7; // w19 unsigned __int8 v8; // w8 const void **v10; // [xsp+0h] [xbp-20h] BYREF std::chrono::nanoseconds __ns; // [xsp+8h] [xbp-18h] BYREF v10 = a1; v2 = std::__thread_local_data(); v3 = *a1; *a1 = nullptr; v4 = pthread_setspecific(v2->__key_, v3); v5 = GameManager::sharedState(v4); GManager::waitForSave(v5, 30.0); v6 = LocalLevelManager::sharedState(); GManager::waitForSave(v6, 30.0); v7 = 3000; do { v8 = atomic_load((unsigned __int8 *)(LocalLevelManager::sharedState() + 601)); if ( (v8 & 1) == 0 ) break; __ns.__rep_ = 10000000; std::this_thread::sleep_for(&__ns); --v7; } while ( v7 ); sub_1001FA220(); sub_1002DE574((void **)&v10); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source