// // cocos2d::extension::CCThreadPool::enqueue from 0x5ac07c to 0x5ac128 (172 bytes) // // 1 xrefs: // > cocos2d::extension::CCHttpClient::send @ 0x5ac16a // // 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 // int __fastcall cocos2d::extension::CCThreadPool::enqueue(int a1, int a2, int a3, int a4) { pthread_mutex_t *v5; // r0 int v7; // r2 int v8; // r5 void (__fastcall *v9)(int, int, int, _DWORD, int, pthread_mutex_t *, int, int); // r3 pthread_mutex_t *v12; // [sp+4h] [bp-Ch] BYREF int v13; // [sp+8h] [bp-8h] int v14; // [sp+Ch] [bp-4h] v13 = a3; v14 = a4; v5 = (pthread_mutex_t *)(a1 + 52); v12 = v5; LOBYTE(v13) = 0; if ( !v5 ) sub_7735D4(1); std::mutex::lock(v5); v7 = *(unsigned __int8 *)(a1 + 60); LOBYTE(v13) = 1; if ( v7 ) return std::unique_lock::~unique_lock((int)&v12); v8 = *(_DWORD *)(a1 + 36); if ( v8 == *(_DWORD *)(a1 + 44) - 16 ) { std::deque>::_M_push_back_aux const&>( (void **)(a1 + 12), a2); } else { if ( v8 ) { *(_DWORD *)(v8 + 8) = 0; v9 = *(void (__fastcall **)(int, int, int, _DWORD, int, pthread_mutex_t *, int, int))(a2 + 8); if ( v9 ) { v9(v8, a2, 2, v9, a1, v12, v13, v14); *(_DWORD *)(v8 + 12) = *(_DWORD *)(a2 + 12); *(_DWORD *)(v8 + 8) = *(_DWORD *)(a2 + 8); } } *(_DWORD *)(a1 + 36) += 16; } std::unique_lock::~unique_lock((int)&v12); return sub_76DB88(a1 + 56); }
GD Web Decomp Icon

GD Web Decomp

Raw Source