//
// std::__ndk1::mutex::lock from 0x9770d4 to 0x9770ec (24 bytes)
//
// 30 xrefs:
// > LevelEditorLayer::~LevelEditorLayer @ 0x469448
// > LevelEditorLayer::doAutoSave @ 0x472a3e
// > GameLevelManager::collectPlatformerJournalKeys @ 0x4b5b96
// > GameLevelManager::prunePlatformerJournalKeys @ 0x4b5d06
// > sub_4C60B4 @ 0x4c60d0
// > GameLevelManager::writePlatformerSaveJournal @ 0x4caeb6
// > GameLevelManager::replayPlatformerSaveJournal @ 0x4cfae4
// > LocalLevelManager::didEncodeForSave @ 0x544276
// > LocalLevelManager::saveFinished @ 0x544456
// > cocos2d::extension::CCHttpClient::dispatchResponseCallbacks @ 0x7b1634
// > cocos2d::extension::CCThreadPool::shutdown @ 0x7b1722
// > cocos2d::extension::CCThreadPool::availableThreadCount @ 0x7b175c
// > cocos2d::extension::CCThreadPool::enqueue @ 0x7b207c
// > sub_7B21A8 @ 0x7b21fe
// > sub_7B26B0 @ 0x7b2aca
// > std::__ndk1::__sp_mut::lock @ 0x976f7e
// > std::__ndk1::timed_mutex::~timed_mutex @ 0x9771fe
// > std::__ndk1::timed_mutex::lock @ 0x977248
// > std::__ndk1::timed_mutex::unlock @ 0x9772c2
// > std::__ndk1::recursive_timed_mutex::~recursive_timed_mutex @ 0x9772f0
// > std::__ndk1::recursive_timed_mutex::lock @ 0x977344
// > std::__ndk1::recursive_timed_mutex::unlock @ 0x977444
// > std::__ndk1::__assoc_sub_state::set_value @ 0x97f08c
// > std::__ndk1::__assoc_sub_state::set_value_at_thread_exit @ 0x97f140
// > std::__ndk1::__assoc_sub_state::set_exception @ 0x97f200
// > std::__ndk1::__assoc_sub_state::set_exception_at_thread_exit @ 0x97f2c4
// > std::__ndk1::__assoc_sub_state::__make_ready @ 0x97f378
// > std::__ndk1::__assoc_sub_state::copy @ 0x97f3b6
// > std::__ndk1::__assoc_sub_state::wait @ 0x97f492
// > std::__ndk1::future::future @ 0x97f544
//
// 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 12:05:58 +0000
//
int __fastcall std::mutex::lock(pthread_mutex_t *this)
{
int result; // r0
result = pthread_mutex_lock(this);
if ( result )
std::__throw_system_error(result, "mutex lock failed");
return result;
}