// // cocos2d::extension::CCThreadPool::CCThreadPool from 0x7b23fc to 0x7b2540 (324 bytes) // // 1 xrefs: // > cocos2d::extension::CCHttpClient::CCHttpClient @ 0x7b2582 // // 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:00:08 +0000 // // Alternative name is '_ZN7cocos2d9extension12CCThreadPoolC1Ej' cocos2d::extension::CCThreadPool *__fastcall cocos2d::extension::CCThreadPool::CCThreadPool( cocos2d::extension::CCThreadPool *this, unsigned int a2) { int v2; // r5 pthread_t *v5; // r0 unsigned int v6; // r3 int v7; // r6 unsigned int v8; // r7 unsigned int v9; // r0 unsigned int v10; // r0 int v11; // r7 pthread_t *v12; // r6 pthread_t *v13; // r1 pthread_t *v14; // r3 pthread_t *v15; // r1 pthread_t *v16; // r3 pthread_t *v17; // r2 unsigned int v18; // r2 char *v20; // [sp+4h] [bp-28h] std::__thread_struct *v21; // [sp+Ch] [bp-20h] BYREF unsigned int v22; // [sp+10h] [bp-1Ch] BYREF pthread_t *v23; // [sp+14h] [bp-18h] pthread_t *v24; // [sp+18h] [bp-14h] unsigned int v25; // [sp+1Ch] [bp-10h] char *v26; // [sp+20h] [bp-Ch] v2 = 0; *((_DWORD *)this + 9) = 0; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; *((_DWORD *)this + 3) = 0; *((_DWORD *)this + 4) = 0; *((_DWORD *)this + 5) = 0; *((_DWORD *)this + 6) = 0; *((_DWORD *)this + 7) = 0; *((_DWORD *)this + 8) = 0; *((_DWORD *)this + 10) = 0; *((_BYTE *)this + 44) = 0; *((_DWORD *)this + 12) = 0; v20 = (char *)this + 8; while ( v2 != a2 ) { v5 = *((pthread_t **)this + 1); v6 = *((_DWORD *)this + 2); v21 = this; if ( (unsigned int)v5 >= v6 ) { v7 = (int)v5 - *(_DWORD *)this; v8 = (v7 >> 2) + 1; if ( v8 >= 0x40000000 ) sub_38B890(); v9 = (int)(v6 - *(_DWORD *)this) >> 2; if ( v9 > 0x1FFFFFFE ) { v10 = 0x3FFFFFFF; } else { v10 = 2 * v9; if ( v10 < v8 ) v10 = (v7 >> 2) + 1; } v11 = 4 * v10; v25 = 0; v26 = v20; if ( v10 ) v10 = operator new(4 * v10); v12 = (pthread_t *)(v7 + v10); v22 = v10; v24 = v12; v23 = v12; v25 = v10 + v11; if ( v12 ) sub_7B238C(v12, &v21); ++v24; v13 = *(pthread_t **)this; v14 = *((pthread_t **)this + 1); while ( v14 != v13 ) { --v14; if ( v23 != (pthread_t *)&byte_4 ) { *(v23 - 1) = *v14; *v14 = 0; } --v23; } v15 = v24; v16 = *(pthread_t **)this; *(_DWORD *)this = v23; v17 = *((pthread_t **)this + 1); *((_DWORD *)this + 1) = v15; v24 = v17; v18 = *((_DWORD *)this + 2); v22 = (unsigned int)v16; *((_DWORD *)this + 2) = v25; v23 = v16; v25 = v18; std::__split_buffer::~__split_buffer((int)&v22); } else { if ( v5 ) sub_7B238C(v5, &v21); *((_DWORD *)this + 1) += 4; } ++v2; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source