//
// std::function std::deque cocos2d::extension::CCThreadPool::enqueue @ 0xaad404
// > ??> @ 0x338a0
// > ??> @ 0x9e148
//
// 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
//
// Alternative name is '_ZNSt8functionIFvvEEC2ERKS1_'
__int64 __fastcall std::function::function(__int64 result, __int64 a2)
{
void (*v2)(void); // x4
__int64 v4; // x19
__int64 v5; // x1
*(_QWORD *)(result + 16) = 0;
v2 = *(void (**)(void))(a2 + 16);
if ( v2 )
{
v4 = result;
v2();
v5 = *(_QWORD *)(a2 + 24);
result = *(_QWORD *)(a2 + 16);
*(_QWORD *)(v4 + 16) = result;
*(_QWORD *)(v4 + 24) = v5;
}
return result;
}