//
// cocos2d::CCKeypadDispatcher::forceRemoveDelegate from 0x1006d0450 to 0x1006d04dd (141 bytes)
//
// 0 xrefs:
//
// 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:35:38 +0000
//
unsigned int *__fastcall cocos2d::CCKeypadDispatcher::forceRemoveDelegate(__int64 a1, unsigned int *a2)
{
unsigned int *result; // rax
__int64 *v3; // r12
unsigned __int64 v4; // r13
__int64 v5; // r15
result = *(unsigned int **)(a1 + 56);
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v3 = *((__int64 **)result + 2);
v4 = (unsigned __int64)&v3[*result - 1];
do
{
v5 = *v3;
if ( !*v3 )
break;
result = (unsigned int *)cocos2d::CCKeypadHandler::getDelegate(*v3);
if ( result == a2 )
return (unsigned int *)sub_1007FF140(*(_QWORD *)(a1 + 56), v5, 1);
++v3;
}
while ( (unsigned __int64)v3 <= v4 );
}
}
return result;
}