//
// __dynamic_cast from 0x742e44 to 0x742eea (166 bytes)
//
// 183 xrefs:
// > ButtonSprite::updateSpriteBGSize @ 0x2e3318
// > ButtonSprite::setString @ 0x2e38ae
// > FileSaveManager::firstLoad @ 0x2eab0e
// > ObjectManager::replaceAllOccurencesOfString @ 0x2f20aa
// > UILayer::updateCheckState @ 0x30cbfa
// > UILayer::updateCheckState @ 0x30cc14
// > GameLevelManager::getCompletedGauntletDemons @ 0x3c6910
// > GameLevelManager::getCompletedGauntletLevels @ 0x3c6984
// > GameLevelManager::getCompletedWeeklyLevels @ 0x3c6c20
// > GameLevelManager::getCompletedDailyLevels @ 0x3c6d16
// > GameLevelManager::getCompletedEventLevels @ 0x3c6e0a
// > GameLevelManager::verifyContainerOnlyHasLevels @ 0x3cf2b6
// > GameLevelManager::getDemonLevelsString @ 0x3d53d4
// > GameLevelManager::getStarLevelsString @ 0x3d577a
// > GameLevelManager::dataLoaded @ 0x3d86ea
// > GameLevelManager::dataLoaded @ 0x3d8712
// > GameLevelManager::dataLoaded @ 0x3d87d6
// > GameLevelManager::dataLoaded @ 0x3d8802
// > GameLevelManager::dataLoaded @ 0x3d88e8
// > GameLevelManager::dataLoaded @ 0x3d8914
// > GameLevelManager::dataLoaded @ 0x3d89f6
// > GameLevelManager::dataLoaded @ 0x3d8a22
// > GameLevelManager::dataLoaded @ 0x3d8ae0
// > GameLevelManager::dataLoaded @ 0x3d8b78
// > GameLevelManager::dataLoaded @ 0x3d8ba4
// > cocos2d::extension::CCControl::setOpacityModifyRGB @ 0x5a0974
// > cocos2d::extension::CCControlButton::getTitleTTFForState @ 0x5a160e
// > cocos2d::extension::CCControlButton::getTitleTTFForState @ 0x5a1620
// > cocos2d::extension::CCControlButton::setTitleTTFSizeForState @ 0x5a167a
// > cocos2d::extension::CCControlButton::setTitleTTFSizeForState @ 0x5a168c
// > cocos2d::extension::CCControlButton::getTitleTTFSizeForState @ 0x5a16ca
// > cocos2d::extension::CCControlButton::getTitleTTFSizeForState @ 0x5a16dc
// > cocos2d::extension::CCControlButton::getTitleBMFontForState @ 0x5a179a
// > cocos2d::extension::CCControlButton::getTitleBMFontForState @ 0x5a17ac
// > cocos2d::extension::CCControlButton::needsLayout @ 0x5a1af0
// > cocos2d::extension::CCControlButton::needsLayout @ 0x5a1b2a
// > cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0x5a20e4
// > cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0x5a20f8
// > cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB @ 0x5a61fc
// > cocos2d::extension::CCScale9Sprite::setColor @ 0x5a6272
// > cocos2d::extension::CCScale9Sprite::setOpacity @ 0x5a62de
// > cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject @ 0x5aa86c
// > cocos2d::extension::CCArrayForObjectSorting::insertSortedObject @ 0x5aa8b2
// > cocos2d::extension::CCArrayForObjectSorting::removeSortedObject @ 0x5aa91e
// > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0x5aa99c
// > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0x5aa9ac
// > cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID @ 0x5aaa8e
// > cocos2d::CCConfiguration::getCString @ 0x5addf2
// > cocos2d::CCConfiguration::getBool @ 0x5ade5c
// > cocos2d::CCConfiguration::getBool @ 0x5ade74
// > cocos2d::CCConfiguration::getNumber @ 0x5adef6
// > cocos2d::CCConfiguration::getNumber @ 0x5adf0e
// > cocos2d::CCConfiguration::getNumber @ 0x5adf2a
// > cocos2d::CCConfiguration::loadConfigFile @ 0x5ae046
// > cocos2d::CCConfiguration::loadConfigFile @ 0x5ae07c
// > cocos2d::CCConfiguration::loadConfigFile @ 0x5ae0b8
// > cocos2d::CCFadeIn::update @ 0x5b63b0
// > cocos2d::CCFadeOut::update @ 0x5b6410
// > cocos2d::CCFadeTo::startWithTarget @ 0x5b6476
// > cocos2d::CCFadeTo::update @ 0x5b64b2
// > cocos2d::CCTintTo::startWithTarget @ 0x5b6520
// > cocos2d::CCTintTo::update @ 0x5b6572
// > cocos2d::CCTintBy::startWithTarget @ 0x5b663e
// > cocos2d::CCTintBy::update @ 0x5b6696
// > cocos2d::CCRepeat::initWithAction @ 0x5b7bb0
// > cocos2d::CCNodeRGBA::updateDisplayedOpacity @ 0x5bd51e
// > cocos2d::CCNodeRGBA::setOpacity @ 0x5bd5b8
// > cocos2d::CCNodeRGBA::setColor @ 0x5bd64e
// > cocos2d::CCNodeRGBA::updateDisplayedColor @ 0x5bd758
// > cocos2d::CCDictionary::valueForKey @ 0x5bfdfc
// > cocos2d::CCDictionary::valueForKey @ 0x5bfe74
// > cocos2d::CCString::isEqual @ 0x5c1956
// > cocos2d::CCDirector::pushScene @ 0x5c365a
// > cocos2d::CCDirector::replaceScene @ 0x5c36d6
// > cocos2d::CCDirector::setNextScene @ 0x5c39ae
// > cocos2d::CCDirector::setNextScene @ 0x5c39d4
// > cocos2d::CCKeypadHandler::~CCKeypadHandler @ 0x5cabaa
// > cocos2d::CCKeypadHandler::initWithDelegate @ 0x5cabf4
// > cocos2d::CCKeypadHandler::setDelegate @ 0x5cac2e
// > cocos2d::CCKeypadHandler::setDelegate @ 0x5cac4e
// > cocos2d::CCLabelBMFont::setOpacityModifyRGB @ 0x5cb8d4
// > cocos2d::CCLabelBMFont::setColor @ 0x5cb952
// > cocos2d::CCLabelBMFont::setOpacity @ 0x5cb9d8
// > cocos2d::CCLayerRGBA::setOpacity @ 0x5cf490
// > cocos2d::CCLayerRGBA::setColor @ 0x5cf546
// > cocos2d::CCLayerRGBA::updateDisplayedOpacity @ 0x5cf626
// > cocos2d::CCLayerRGBA::updateDisplayedColor @ 0x5cf700
// > cocos2d::CCMenu::alignItemsVerticallyWithPadding @ 0x5d3cdc
// > cocos2d::CCMenu::alignItemsVerticallyWithPadding @ 0x5d3d5c
// > cocos2d::CCMenu::alignItemsHorizontallyWithPadding @ 0x5d3e70
// > cocos2d::CCMenu::alignItemsHorizontallyWithPadding @ 0x5d3ef0
// > cocos2d::CCMenu::itemForTouch @ 0x5d400a
// > cocos2d::CCMenu::alignItemsInColumnsWithArray @ 0x5d43ba
// > cocos2d::CCMenu::alignItemsInColumnsWithArray @ 0x5d4430
// > cocos2d::CCMenu::alignItemsInRowsWithArray @ 0x5d46b8
// > cocos2d::CCMenu::alignItemsInRowsWithArray @ 0x5d47ea
// > cocos2d::CCMenu::removeChild @ 0x5d4bee
// > cocos2d::CCMenuItemLabel::setEnabled @ 0x5d4f74
// > cocos2d::CCMenuItemLabel::setEnabled @ 0x5d4f98
// > cocos2d::CCMenuItemLabel::setEnabled @ 0x5d4fbc
// > cocos2d::CCMenuItemLabel::setString @ 0x5d579c
// > cocos2d::CCMenuItemFont::recreateLabel @ 0x5d5afa
// > sub_5DEB00 @ 0x5deb1a
// > sub_5DEB00 @ 0x5deb52
// > sub_5DEB00 @ 0x5deb66
// > cocos2d::CCSprite::setChildOpacity @ 0x5e6a3e
// > cocos2d::CCSprite::setChildColor @ 0x5e6a9a
// > cocos2d::CCSprite::addChild @ 0x5e741a
// > cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0x5e753a
// > cocos2d::CCComponentContainer::get @ 0x5f2576
// > cocos2d::CCComponentContainer::remove @ 0x5f267a
// > cocos2d::CCComponentContainer::add @ 0x5f2a00
// > cocos2d::CCTMXTiledMap::layerNamed @ 0x5f8772
// > cocos2d::CCTouchDispatcher::touches @ 0x5fac50
// > cocos2d::CCTouchHandler::initWithDelegate @ 0x5fad88
// > cocos2d::CCTouchHandler::~CCTouchHandler @ 0x5fadca
// > cocos2d::CCTouchHandler::setDelegate @ 0x5fae86
// > cocos2d::CCTouchHandler::setDelegate @ 0x5faea6
// > cocos2d::CCKeyboardHandler::~CCKeyboardHandler @ 0x5fbf1e
// > cocos2d::CCKeyboardHandler::initWithDelegate @ 0x5fbf68
// > cocos2d::CCKeyboardHandler::setDelegate @ 0x5fbfa2
// > cocos2d::CCKeyboardHandler::setDelegate @ 0x5fbfc2
// > cocos2d::CCMouseHandler::~CCMouseHandler @ 0x5fc21e
// > cocos2d::CCMouseHandler::initWithDelegate @ 0x5fc268
// > cocos2d::CCMouseHandler::setDelegate @ 0x5fc2a2
// > cocos2d::CCMouseHandler::setDelegate @ 0x5fc2c2
// > DS_Dictionary::setObjectForKey @ 0x5ff398
// > DS_Dictionary::setObjectForKey @ 0x5ff3aa
// > DS_Dictionary::setObjectForKey @ 0x5ff3bc
// > sub_74C87C @ 0x74c8aa
// > sub_74CD40 @ 0x74cd6e
// > sub_74CD8C @ 0x74cdb4
// > sub_74CDD0 @ 0x74cdf8
// > sub_74D224 @ 0x74d24c
// > sub_74D268 @ 0x74d290
// > sub_74D2AC @ 0x74d2d4
// > sub_74D620 @ 0x74d648
// > sub_74D958 @ 0x74d980
// > sub_74D99C @ 0x74d9c4
// > sub_74D9E0 @ 0x74da08
// > sub_74DACC @ 0x74daf4
// > sub_74DB10 @ 0x74db38
// > sub_74DB54 @ 0x74db7c
// > sub_74DB98 @ 0x74dbc6
// > sub_74DBE4 @ 0x74dc12
// > sub_74DC30 @ 0x74dc58
// > sub_74DC74 @ 0x74dc9c
// > sub_74DCB8 @ 0x74dce0
// > sub_74DCFC @ 0x74dd24
// > sub_74DD40 @ 0x74dd68
// > sub_74DD84 @ 0x74ddac
// > sub_74DDC8 @ 0x74ddf0
// > sub_74DE0C @ 0x74de34
// > sub_74DE50 @ 0x74de78
// > sub_74DE94 @ 0x74debc
// > sub_74DED8 @ 0x74df00
// > sub_764188 @ 0x7641b6
// > sub_7645D4 @ 0x764602
// > sub_764620 @ 0x764648
// > sub_764664 @ 0x76468c
// > sub_764A50 @ 0x764a78
// > sub_764A94 @ 0x764abc
// > sub_764AD8 @ 0x764b00
// > sub_764FDC @ 0x765004
// > sub_7654E0 @ 0x765508
// > sub_765524 @ 0x76554c
// > sub_765568 @ 0x765590
// > sub_765644 @ 0x76566c
// > sub_765688 @ 0x7656b0
// > sub_7656CC @ 0x7656f4
// > sub_765710 @ 0x76573e
// > sub_76575C @ 0x76578a
// > sub_7657A8 @ 0x7657d0
// > sub_7657EC @ 0x765814
// > sub_765830 @ 0x765858
// > sub_765874 @ 0x76589c
// > sub_7658B8 @ 0x7658e0
// > sub_7658FC @ 0x765924
// > sub_765940 @ 0x765968
// > sub_765984 @ 0x7659ac
// > sub_7659C8 @ 0x7659f0
// > sub_765A0C @ 0x765a34
// > sub_765A50 @ 0x765a78
//
// 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)
{
int v5; // r2
int *v8; // r0
int v9; // lr
int v11; // r9
void (__fastcall *v12)(int *, ptrdiff_t, int, const struct __class_type_info *, char *, const struct __class_type_info *, const void *, char **); // r9
void *result; // r0
char *v14; // [sp+14h] [bp-18h] BYREF
int v15; // [sp+18h] [bp-14h]
int v16; // [sp+1Ch] [bp-10h]
int v17; // [sp+20h] [bp-Ch]
int v18; // [sp+24h] [bp-8h]
v5 = *(_DWORD *)lpsrc;
v8 = *(int **)(*(_DWORD *)lpsrc - 4);
v9 = *(_DWORD *)(v5 - 8);
v14 = nullptr;
v11 = *v8;
v15 = 0;
v12 = *(void (__fastcall **)(int *, ptrdiff_t, int, const struct __class_type_info *, char *, const struct __class_type_info *, const void *, char **))(v11 + 28);
v16 = 0;
v17 = 0;
v18 = 16;
v12(v8, s2d, 6, lpdtype, (char *)lpsrc + v9, lpstype, lpsrc, &v14);
result = v14;
if ( !v14 )
return nullptr;
if ( (v17 & 6) != 6 && ((unsigned __int8)v15 & (unsigned __int8)v16 & 6) != 6 )
{
if ( (v16 & 5) != 4 && !v17 )
{
if ( s2d < 0 )
{
if ( s2d != -2
&& ((*(int (__fastcall **)(const struct __class_type_info *, ptrdiff_t, char *, const struct __class_type_info *, const void *))(*(_DWORD *)lpdtype + 32))(
lpdtype,
s2d,
v14,
lpstype,
lpsrc)
& 6) == 6 )
{
return v14;
}
}
else if ( lpsrc == &v14[s2d] )
{
return result;
}
}
return nullptr;
}
return result;
}