//
// std::__ndk1::__assoc_sub_state::copy from 0x97f398 to 0x97f420 (136 bytes)
//
// 1 xrefs:
// > std::__ndk1::future::get @ 0x97f5be
//
// 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:06 +0000
//
int __fastcall std::__assoc_sub_state::copy(std::__assoc_sub_state *this)
{
const std::exception_ptr *v2; // r4
int v3; // t1
std::exception_ptr *v5; // r0
_BYTE v6[4]; // [sp+4h] [bp-1Ch] BYREF
int v7; // [sp+8h] [bp-18h] BYREF
std::mutex *v8; // [sp+Ch] [bp-14h] BYREF
char v9; // [sp+10h] [bp-10h]
int v10; // [sp+14h] [bp-Ch]
v8 = (std::__assoc_sub_state *)((char *)this + 12);
v9 = 1;
std::mutex::lock((pthread_mutex_t *)((char *)this + 12));
std::__assoc_sub_state::__sub_wait(this, &v8);
v7 = 0;
v3 = *((_DWORD *)this + 2);
v2 = (std::__assoc_sub_state *)((char *)this + 8);
std::exception_ptr::~exception_ptr((std::exception_ptr *)&v7);
if ( v3 )
{
v5 = std::exception_ptr::exception_ptr((std::exception_ptr *)v6, v2);
std::rethrow_exception(v5);
}
if ( v9 )
std::mutex::unlock((pthread_mutex_t *)v8);
return _stack_chk_guard - v10;
}