// // cocos2d::CCKeypadHandler::handlerWithDelegate from 0x1800b40e0 to 0x1800b4198 (184 bytes) // // 5 xrefs: // > cocos2d::CCKeypadDispatcher::addDelegate @ 0x1800b43e6 // > cocos2d::CCKeypadDispatcher::dispatchKeypadMSG @ 0x1800b4548 // > cocos2d::CCKeypadDispatcher::forceAddDelegate @ 0x1800b45ac // > @ 0x1801438a8 // > @ 0x1801b8814 // // 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 // struct cocos2d::CCKeypadHandler *__fastcall cocos2d::CCKeypadHandler::handlerWithDelegate(cocos2d::CCObject_vtbl *a1) { cocos2d::CCObject *v2; // rax cocos2d::CCObject *v3; // rbx bool (__fastcall *copyWithZone)(cocos2d::CCKeypadHandler *__hidden, struct cocos2d::CCKeypadDelegate *); // r8 cocos2d::CCObject *v5; // rax v2 = (cocos2d::CCObject *)operator new(0x40u); v3 = v2; if ( v2 ) { cocos2d::CCObject::CCObject(v2); v3->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCKeypadHandler::`vftable'; } else { v3 = nullptr; } if ( !v3 ) return (struct cocos2d::CCKeypadHandler *)v3; copyWithZone = (bool (__fastcall *)(cocos2d::CCKeypadHandler *__hidden, struct cocos2d::CCKeypadDelegate *))v3->__vftable[1].copyWithZone; if ( copyWithZone == cocos2d::CCKeypadHandler::initWithDelegate ) { v3[1].__vftable = a1; v5 = (cocos2d::CCObject *)_RTDynamicCast( a1, 0, &cocos2d::CCKeypadDelegate `RTTI Type Descriptor', &cocos2d::CCObject `RTTI Type Descriptor', 0); cocos2d::CCObject::retain(v5); LABEL_8: cocos2d::CCObject::autorelease(v3); return (struct cocos2d::CCKeypadHandler *)v3; } if ( copyWithZone((cocos2d::CCKeypadHandler *)v3, (struct cocos2d::CCKeypadDelegate *)a1) ) goto LABEL_8; cocos2d::CCObject::release(v3); return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source