// // std::__ndk1::__assoc_sub_state::set_value_at_thread_exit from 0x97f128 to 0x97f1d0 (168 bytes) // // 1 xrefs: // > std::__ndk1::promise::set_value_at_thread_exit @ 0x97f858 // // 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:06:05 +0000 // int __fastcall std::__assoc_sub_state::set_value_at_thread_exit(std::__assoc_sub_state *this) { pthread_mutex_t *v2; // r4 int v3; // r6 pthread_key_t *v4; // r0 std::__thread_struct *v5; // r0 void *exception; // r5 _DWORD v8[2]; // [sp+4h] [bp-14h] BYREF v2 = (pthread_mutex_t *)((char *)this + 12); std::mutex::lock((pthread_mutex_t *)((char *)this + 12)); if ( (*((_BYTE *)this + 20) & 1) != 0 || (v8[0] = 0, v3 = *((_DWORD *)this + 2), std::exception_ptr::~exception_ptr((std::exception_ptr *)v8), v3) ) { exception = _cxa_allocate_exception(0x10u); std::future_category(); std::future_error::future_error((int)exception, 2u, (unsigned int)&dword_D33CC4); _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::future_error, (void (*)(void *))std::future_error::~future_error); } *((_DWORD *)this + 5) |= 1u; v4 = std::__thread_local_data(); v5 = (std::__thread_struct *)pthread_getspecific(*v4); std::__thread_struct::__make_ready_at_thread_exit(v5, this); std::mutex::unlock(v2); return _stack_chk_guard - v8[1]; }
GD Web Decomp Icon

GD Web Decomp

Raw Source