//
// sub_1001D3DAC from 0x1001d3dac to 0x1001d3e08 (92 bytes)
//
// 1 xrefs:
// > cocos2d::CCIMEDispatcher::dCCIMEDispatcher @ 0x1001d3bcc
//
// 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
//
_QWORD *__fastcall sub_1001D3DAC(_QWORD *result)
{
_QWORD *v1; // x19
_QWORD *v2; // x8
__int64 v3; // x9
_QWORD *v4; // x20
if ( result[2] )
{
v1 = result;
result = (_QWORD *)result[1];
v2 = *(_QWORD **)(*v1 + 8LL);
v3 = *result;
*(_QWORD *)(v3 + 8) = v2;
*v2 = v3;
v1[2] = 0;
if ( result != v1 )
{
do
{
v4 = (_QWORD *)result[1];
operator delete(result);
result = v4;
}
while ( v4 != v1 );
}
}
return result;
}