// // std::__ndk1::__assoc_sub_state::set_exception_at_thread_exit from 0x97f2a8 to 0x97f358 (176 bytes) // // 1 xrefs: // > std::__ndk1::promise::set_exception_at_thread_exit @ 0x97f8c0 // // 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_exception_at_thread_exit(int a1, _DWORD *a2) { pthread_mutex_t *v3; // r8 int v5; // r4 pthread_key_t *v6; // r0 std::__thread_struct *v7; // r0 void *exception; // r5 _DWORD v10[2]; // [sp+0h] [bp-14h] BYREF v3 = (pthread_mutex_t *)(a1 + 12); std::mutex::lock((pthread_mutex_t *)(a1 + 12)); if ( (*(_BYTE *)(a1 + 20) & 1) != 0 || (v10[0] = 0, v5 = *(_DWORD *)(a1 + 8), std::exception_ptr::~exception_ptr((std::exception_ptr *)v10), v5) ) { 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); } std::exception_ptr::operator=((_DWORD *)(a1 + 8), a2); v6 = std::__thread_local_data(); v7 = (std::__thread_struct *)pthread_getspecific(*v6); std::__thread_struct::__make_ready_at_thread_exit(v7, (std::__assoc_sub_state *)a1); std::mutex::unlock(v3); return _stack_chk_guard - v10[1]; }
GD Web Decomp Icon

GD Web Decomp

Raw Source