//
// std::__ndk1::mutex::lock from 0xf79c24 to 0xf79c4c (40 bytes)
//
// 25 xrefs:
// > LevelEditorLayer::~LevelEditorLayer @ 0x7988c4
// > LevelEditorLayer::doAutoSave @ 0x7a7f54
// > GameLevelManager::collectPlatformerJournalKeys @ 0x82fbd8
// > GameLevelManager::prunePlatformerJournalKeys @ 0x82ff10
// > sub_833644 @ 0x833684
// > GameLevelManager::writePlatformerSaveJournal @ 0x83cda0
// > GameLevelManager::replayPlatformerSaveJournal @ 0x844f84
// > LocalLevelManager::didEncodeForSave @ 0x914084
// > LocalLevelManager::saveFinished @ 0x914380
// > cocos2d::extension::CCHttpClient::dispatchResponseCallbacks @ 0xd1cc58
// > cocos2d::extension::CCThreadPool::shutdown @ 0xd1cfa0
// > cocos2d::extension::CCThreadPool::availableThreadCount @ 0xd1d01c
// > sub_D1D888 @ 0xd1d91c
// > std::__ndk1::vector>::assign @ 0xd1e104
// > cocos2d::extension::CCThreadPool::enqueue @ 0xd1f194
// > std::__ndk1::__sp_mut::lock @ 0xf79a54
// > std::__ndk1::__assoc_sub_state::set_value @ 0xf87188
// > std::__ndk1::__assoc_sub_state::set_value_at_thread_exit @ 0xf872d4
// > std::__ndk1::__assoc_sub_state::set_exception @ 0xf8742c
// > std::__ndk1::__assoc_sub_state::set_exception_at_thread_exit @ 0xf87584
// > std::__ndk1::__assoc_sub_state::__make_ready @ 0xf876c4
// > std::__ndk1::__assoc_sub_state::copy @ 0xf87720
// > std::__ndk1::__assoc_sub_state::wait @ 0xf878c4
// > std::__ndk1::future::future @ 0xf87a48
// > ??> @ 0xa09c0
//
// 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 13:13:44 +0000
//
__int64 __fastcall std::mutex::lock(pthread_mutex_t *this)
{
__int64 result; // x0
result = pthread_mutex_lock(this);
if ( (_DWORD)result )
return std::__throw_system_error(result, "mutex lock failed");
return result;
}