//
// cocos2d::CCIMEDelegate::dCCIMEDelegate from 0x1004b4f60 to 0x1004b5034 (212 bytes)
//
// 7 xrefs:
// > CCTextInputNode::dCCTextInputNode @ 0x1000657d5
// > ??> @ 0x100268385
// > cocos2d::CCTextFieldTTF::dCCTextFieldTTF @ 0x100268465
// > sub_1004A30B0 @ 0x1004a31a4
// > sub_1004B50B0 @ 0x1004b50b5
// > sub_1004B50C0 @ 0x1004b50c9
// > sub_1009A62F0 @ 0x1009a6333
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:31:00 +0000
//
void __fastcall cocos2d::CCIMEDelegate::dCCIMEDelegate(_QWORD *a1)
{
__int64 v2; // rax
__int64 *v3; // rdi
__int64 v4; // rcx
_QWORD *v5; // rdx
_QWORD *v6; // rax
*a1 = &off_100B57DE0;
if ( !(_BYTE)byte_100BE41A0 && __cxa_guard_acquire(&byte_100BE41A0) )
{
v6 = operator new(0x20u);
*v6 = v6;
v6[1] = v6;
v6[2] = 0;
qword_100BE4198 = (__int64)v6;
v6[3] = 0;
__cxa_atexit(func, &qword_100BE4198, (void *)&_mh_execute_header);
__cxa_guard_release(&byte_100BE41A0);
}
v2 = qword_100BE4198;
if ( qword_100BE4198 )
{
v3 = (__int64 *)qword_100BE4198;
while ( 1 )
{
v3 = (__int64 *)v3[1];
if ( v3 == (__int64 *)qword_100BE4198 )
break;
if ( (_QWORD *)v3[2] == a1 )
{
if ( *(_QWORD **)(qword_100BE4198 + 24) == a1 )
*(_QWORD *)(qword_100BE4198 + 24) = 0;
v4 = *v3;
v5 = (_QWORD *)v3[1];
*(_QWORD *)(v4 + 8) = v5;
*v5 = v4;
--*(_QWORD *)(v2 + 16);
operator delete(v3);
return;
}
}
}
}