//
// __dynamic_cast from 0xccbefc to 0xccc02c (304 bytes)
//
// 185 xrefs:
// > ButtonSprite::updateSpriteBGSize @ 0x56f27c
// > ButtonSprite::setString @ 0x56fb94
// > FileSaveManager::firstLoad @ 0x57d8cc
// > ObjectManager::replaceAllOccurencesOfString @ 0x58c5ac
// > UILayer::updateCheckState @ 0x5c6024
// > UILayer::updateCheckState @ 0x5c6094
// > GameLevelManager::getCompletedGauntletDemons @ 0x705df0
// > GameLevelManager::getCompletedGauntletLevels @ 0x705ec8
// > GameLevelManager::getCompletedWeeklyLevels @ 0x7064f0
// > GameLevelManager::getCompletedDailyLevels @ 0x706708
// > GameLevelManager::getCompletedEventLevels @ 0x706924
// > GameLevelManager::verifyContainerOnlyHasLevels @ 0x73162c
// > GameLevelManager::getDemonLevelsString @ 0x735c64
// > GameLevelManager::getStarLevelsString @ 0x736960
// > GameLevelManager::dataLoaded @ 0x739998
// > GameLevelManager::dataLoaded @ 0x7399bc
// > GameLevelManager::dataLoaded @ 0x739ac4
// > GameLevelManager::dataLoaded @ 0x739ae8
// > GameLevelManager::dataLoaded @ 0x739c6c
// > GameLevelManager::dataLoaded @ 0x739c90
// > GameLevelManager::dataLoaded @ 0x739dec
// > GameLevelManager::dataLoaded @ 0x739e10
// > GameLevelManager::dataLoaded @ 0x739f88
// > GameLevelManager::dataLoaded @ 0x73a040
// > GameLevelManager::dataLoaded @ 0x73a064
// > cocos2d::extension::CCControl::setOpacityModifyRGB @ 0xa9966c
// > cocos2d::extension::CCControlButton::getTitleTTFForState @ 0xa9adc4
// > cocos2d::extension::CCControlButton::getTitleTTFForState @ 0xa9addc
// > cocos2d::extension::CCControlButton::setTitleTTFSizeForState @ 0xa9ae40
// > cocos2d::extension::CCControlButton::setTitleTTFSizeForState @ 0xa9ae58
// > cocos2d::extension::CCControlButton::getTitleTTFSizeForState @ 0xa9aeb8
// > cocos2d::extension::CCControlButton::getTitleTTFSizeForState @ 0xa9aed0
// > cocos2d::extension::CCControlButton::getTitleBMFontForState @ 0xa9af28
// > cocos2d::extension::CCControlButton::getTitleBMFontForState @ 0xa9af40
// > cocos2d::extension::CCControlButton::needsLayout @ 0xa9b5f0
// > cocos2d::extension::CCControlButton::needsLayout @ 0xa9b638
// > cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0xa9c194
// > cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0xa9c1b0
// > cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB @ 0xaa2238
// > cocos2d::extension::CCScale9Sprite::setColor @ 0xaa230c
// > cocos2d::extension::CCScale9Sprite::setOpacity @ 0xaa23d0
// > cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject @ 0xaa9070
// > cocos2d::extension::CCArrayForObjectSorting::insertSortedObject @ 0xaa9104
// > cocos2d::extension::CCArrayForObjectSorting::removeSortedObject @ 0xaa91bc
// > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0xaa9280
// > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0xaa9298
// > cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID @ 0xaa9400
// > cocos2d::CCConfiguration::getCString @ 0xab030c
// > cocos2d::CCConfiguration::getBool @ 0xab040c
// > cocos2d::CCConfiguration::getBool @ 0xab048c
// > cocos2d::CCConfiguration::getNumber @ 0xab0538
// > cocos2d::CCConfiguration::getNumber @ 0xab05bc
// > cocos2d::CCConfiguration::getNumber @ 0xab05e4
// > cocos2d::CCConfiguration::loadConfigFile @ 0xab083c
// > cocos2d::CCConfiguration::loadConfigFile @ 0xab0894
// > cocos2d::CCConfiguration::loadConfigFile @ 0xab08f8
// > cocos2d::CCFadeIn::update @ 0xabfcd4
// > cocos2d::CCFadeOut::update @ 0xabfd30
// > cocos2d::CCFadeTo::startWithTarget @ 0xabfd9c
// > cocos2d::CCFadeTo::update @ 0xabfdf8
// > cocos2d::CCTintTo::startWithTarget @ 0xabfe68
// > cocos2d::CCTintTo::update @ 0xabfed8
// > cocos2d::CCTintBy::startWithTarget @ 0xabffac
// > cocos2d::CCTintBy::update @ 0xac0024
// > cocos2d::CCRepeat::initWithAction @ 0xac1a58
// > cocos2d::CCNodeRGBA::updateDisplayedOpacity @ 0xacba8c
// > cocos2d::CCNodeRGBA::setOpacity @ 0xacbb78
// > cocos2d::CCNodeRGBA::setColor @ 0xacbc50
// > cocos2d::CCNodeRGBA::updateDisplayedColor @ 0xacbd9c
// > cocos2d::CCDictionary::valueForKey @ 0xacfb3c
// > cocos2d::CCDictionary::valueForKey @ 0xacfc3c
// > cocos2d::CCString::isEqual @ 0xad3344
// > cocos2d::CCDirector::pushScene @ 0xad6cd0
// > cocos2d::CCDirector::replaceScene @ 0xad6dbc
// > cocos2d::CCDirector::setNextScene @ 0xad72a0
// > cocos2d::CCDirector::setNextScene @ 0xad72c4
// > cocos2d::CCDirector::setNextScene @ 0xad73a4
// > cocos2d::CCKeypadHandler::~CCKeypadHandler @ 0xae1088
// > cocos2d::CCKeypadHandler::initWithDelegate @ 0xae10ec
// > cocos2d::CCKeypadHandler::setDelegate @ 0xae114c
// > cocos2d::CCKeypadHandler::setDelegate @ 0xae1170
// > cocos2d::CCLabelBMFont::setOpacityModifyRGB @ 0xae29e4
// > cocos2d::CCLabelBMFont::setColor @ 0xae2aa8
// > cocos2d::CCLabelBMFont::setOpacity @ 0xae2b6c
// > cocos2d::CCLayerRGBA::setOpacity @ 0xaeab60
// > cocos2d::CCLayerRGBA::setColor @ 0xaeac70
// > cocos2d::CCLayerRGBA::updateDisplayedOpacity @ 0xaeadbc
// > cocos2d::CCLayerRGBA::updateDisplayedColor @ 0xaeaed4
// > cocos2d::CCMenu::alignItemsVerticallyWithPadding @ 0xaf1af8
// > cocos2d::CCMenu::alignItemsVerticallyWithPadding @ 0xaf1c00
// > cocos2d::CCMenu::alignItemsHorizontallyWithPadding @ 0xaf1d18
// > cocos2d::CCMenu::alignItemsHorizontallyWithPadding @ 0xaf1e20
// > cocos2d::CCMenu::itemForTouch @ 0xaf1f48
// > cocos2d::CCMenu::alignItemsInColumnsWithArray @ 0xaf2510
// > cocos2d::CCMenu::alignItemsInColumnsWithArray @ 0xaf25f8
// > cocos2d::CCMenu::alignItemsInRowsWithArray @ 0xaf2a00
// > cocos2d::CCMenu::alignItemsInRowsWithArray @ 0xaf2b78
// > cocos2d::CCMenu::removeChild @ 0xaf33e0
// > cocos2d::CCMenuItemLabel::setEnabled @ 0xaf3a68
// > cocos2d::CCMenuItemLabel::setEnabled @ 0xaf3aa0
// > cocos2d::CCMenuItemLabel::setEnabled @ 0xaf3ae4
// > cocos2d::CCMenuItemLabel::setString @ 0xaf58a8
// > cocos2d::CCMenuItemFont::recreateLabel @ 0xaf5de0
// > sub_B0449C @ 0xb044d0
// > sub_B0449C @ 0xb0453c
// > sub_B0449C @ 0xb045f0
// > cocos2d::CCSprite::setChildOpacity @ 0xb15884
// > cocos2d::CCSprite::setChildColor @ 0xb15930
// > cocos2d::CCSprite::addChild @ 0xb1664c
// > cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0xb16834
// > cocos2d::CCComponentContainer::remove @ 0xb2ec94
// > cocos2d::CCComponentContainer::get @ 0xb2f27c
// > cocos2d::CCComponentContainer::add @ 0xb2f3a4
// > cocos2d::CCTMXTiledMap::layerNamed @ 0xb3ab60
// > cocos2d::CCTouchDispatcher::touches @ 0xb3f160
// > cocos2d::CCTouchHandler::initWithDelegate @ 0xb3f650
// > cocos2d::CCTouchHandler::~CCTouchHandler @ 0xb3f6d0
// > cocos2d::CCTouchHandler::setDelegate @ 0xb3f7ec
// > cocos2d::CCTouchHandler::setDelegate @ 0xb3f810
// > cocos2d::CCKeyboardHandler::~CCKeyboardHandler @ 0xb40938
// > cocos2d::CCKeyboardHandler::initWithDelegate @ 0xb4099c
// > cocos2d::CCKeyboardHandler::setDelegate @ 0xb409fc
// > cocos2d::CCKeyboardHandler::setDelegate @ 0xb40a20
// > cocos2d::CCMouseHandler::~CCMouseHandler @ 0xb40e68
// > cocos2d::CCMouseHandler::initWithDelegate @ 0xb40ecc
// > cocos2d::CCMouseHandler::setDelegate @ 0xb40f2c
// > cocos2d::CCMouseHandler::setDelegate @ 0xb40f50
// > DS_Dictionary::setObjectForKey @ 0xb46528
// > DS_Dictionary::setObjectForKey @ 0xb465d4
// > DS_Dictionary::setObjectForKey @ 0xb46604
// > sub_CDB730 @ 0xcdb77c
// > sub_CDBE94 @ 0xcdbee0
// > sub_CDBEFC @ 0xcdbf48
// > sub_CDBF64 @ 0xcdbfb0
// > sub_CDC560 @ 0xcdc5ac
// > sub_CDC5C8 @ 0xcdc614
// > sub_CDC630 @ 0xcdc67c
// > sub_CDCBC8 @ 0xcdcc14
// > sub_CDD120 @ 0xcdd16c
// > sub_CDD188 @ 0xcdd1d4
// > sub_CDD1F0 @ 0xcdd23c
// > sub_CDD364 @ 0xcdd3b0
// > sub_CDD3CC @ 0xcdd418
// > sub_CDD434 @ 0xcdd480
// > sub_CDD49C @ 0xcdd4ec
// > sub_CDD508 @ 0xcdd558
// > sub_CDD574 @ 0xcdd5c4
// > sub_CDD5E0 @ 0xcdd630
// > sub_CDD64C @ 0xcdd69c
// > sub_CDD6B8 @ 0xcdd708
// > sub_CDD724 @ 0xcdd774
// > sub_CDD790 @ 0xcdd7e0
// > sub_CDD7FC @ 0xcdd84c
// > sub_CDD868 @ 0xcdd8b8
// > sub_CDD8D4 @ 0xcdd924
// > sub_CDD940 @ 0xcdd990
// > sub_CDD9AC @ 0xcdd9fc
// > sub_CFDB80 @ 0xcfdbcc
// > sub_CFE234 @ 0xcfe280
// > sub_CFE29C @ 0xcfe2e8
// > sub_CFE304 @ 0xcfe350
// > sub_CFE894 @ 0xcfe8e0
// > sub_CFE8FC @ 0xcfe948
// > sub_CFE964 @ 0xcfe9b0
// > sub_CFF084 @ 0xcff0d0
// > sub_CFF7A4 @ 0xcff7f0
// > sub_CFF80C @ 0xcff858
// > sub_CFF874 @ 0xcff8c0
// > sub_CFF9D0 @ 0xcffa1c
// > sub_CFFA38 @ 0xcffa84
// > sub_CFFAA0 @ 0xcffaec
// > sub_CFFB08 @ 0xcffb58
// > sub_CFFB74 @ 0xcffbc4
// > sub_CFFBE0 @ 0xcffc30
// > sub_CFFC4C @ 0xcffc9c
// > sub_CFFCB8 @ 0xcffd08
// > sub_CFFD24 @ 0xcffd74
// > sub_CFFD90 @ 0xcffde0
// > sub_CFFDFC @ 0xcffe4c
// > sub_CFFE68 @ 0xcffeb8
// > sub_CFFED4 @ 0xcfff24
// > sub_CFFF40 @ 0xcfff90
// > sub_CFFFAC @ 0xcffffc
// > sub_D00018 @ 0xd00068
// > ??> @ 0xad0a0
//
// 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 *_dynamic_cast(
const void *lpsrc,
const struct __class_type_info *lpstype,
const struct __class_type_info *lpdtype,
ptrdiff_t s2d)
{
__int64 v5; // x0
__int64 v7; // x4
__int64 v8; // x0
void (__fastcall *v10)(__int64, ptrdiff_t, __int64, const struct __class_type_info *, char *, const struct __class_type_info *, const void *, char **); // x8
void *v11; // x2
char *v13; // [xsp+48h] [xbp+48h] BYREF
int v14; // [xsp+50h] [xbp+50h]
int v15; // [xsp+54h] [xbp+54h]
int v16; // [xsp+58h] [xbp+58h]
int v17; // [xsp+5Ch] [xbp+5Ch]
v5 = *(_QWORD *)lpsrc;
v7 = *(_QWORD *)(v5 - 16);
v8 = *(_QWORD *)(v5 - 8);
v10 = *(void (__fastcall **)(__int64, ptrdiff_t, __int64, const struct __class_type_info *, char *, const struct __class_type_info *, const void *, char **))(*(_QWORD *)v8 + 56LL);
v13 = nullptr;
v14 = 0;
v15 = 0;
v16 = 0;
v17 = 16;
v10(v8, s2d, 6, lpdtype, (char *)lpsrc + v7, lpstype, lpsrc, &v13);
v11 = v13;
if ( !v13 )
return nullptr;
if ( (v16 & 6) != 6 && ((unsigned __int8)v15 & (unsigned __int8)v14 & 6) != 6 )
{
if ( (v15 & 5) == 4 || v16 )
return nullptr;
if ( s2d < 0 )
{
if ( s2d == -2
|| ((*(__int64 (__fastcall **)(const struct __class_type_info *, ptrdiff_t))(*(_QWORD *)lpdtype + 64LL))(
lpdtype,
s2d)
& 6) != 6 )
{
return nullptr;
}
return v13;
}
else if ( lpsrc != &v13[s2d] )
{
return nullptr;
}
}
return v11;
}