//
// sub_5ABA18 from 0x5aba18 to 0x5abaa2 (138 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCThreadPool::CCThreadPool @ 0x5ac280
// > cocos2d::extension::CCThreadPool::CCThreadPool @ 0x5ac2be
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
pthread_t *__fastcall sub_5ABA18(pthread_t *a1, unsigned int *a2)
{
unsigned int v3; // r7
unsigned int *v4; // r3
unsigned int *v5; // r0
unsigned int *v6; // r3
unsigned int *v8[2]; // [sp+8h] [bp-14h] BYREF
unsigned int *v9[3]; // [sp+10h] [bp-Ch] BYREF
v3 = *a2;
v4 = (unsigned int *)_stack_chk_guard;
*a1 = 0;
v9[1] = v4;
v5 = (unsigned int *)operator new(0x1Cu);
v5[1] = 1;
v5[2] = 1;
v5[4] = 0;
v5[5] = 0;
*v5 = (unsigned int)&off_A2CD50;
v5[6] = v3;
v5[3] = (unsigned int)&off_A2CD70;
v9[0] = v5;
sub_5AB774((int)v5, (int)&`typeinfo for'std::_Sp_make_shared_tag);
v6 = v9[0];
v9[0] = nullptr;
v8[1] = nullptr;
v8[0] = v6;
sub_776A9C(a1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v8);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v9);
return a1;
}