//
// cocos2d::CCIMEDispatcher::~CCIMEDispatcher from 0x1800b4720 to 0x1800b4796 (118 bytes)
//
// 4 xrefs:
// > ??> @ 0x180141134
// > ??> @ 0x180141144
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b88ec
//
// 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
//
void __fastcall cocos2d::CCIMEDispatcher::~CCIMEDispatcher(cocos2d::CCIMEDispatcher *this)
{
void **m_pImpl; // rdi
_QWORD **v3; // rdx
_QWORD *v4; // rcx
_QWORD *v5; // rbx
m_pImpl = (void **)this->m_pImpl;
if ( this->m_pImpl )
{
v3 = (_QWORD **)*m_pImpl;
**((_QWORD **)*m_pImpl + 1) = 0;
v4 = *v3;
if ( *v3 )
{
do
{
v5 = (_QWORD *)*v4;
j_j_free_0(v4);
v4 = v5;
}
while ( v5 );
}
j_j_free_0(*m_pImpl);
j_j_free_0(m_pImpl);
this->m_pImpl = nullptr;
}
}