//
// __dynamic_cast from 0x981804 to 0x9818cc (200 bytes)
//
// 159 xrefs:
// > ButtonSprite::updateSpriteBGSize @ 0x3c29d8
// > ButtonSprite::setString @ 0x3c2ffe
// > CCScrollLayerExt::ccTouchBegan @ 0x3c8514
// > FileSaveManager::firstLoad @ 0x3cb0bc
// > ObjectManager::replaceAllOccurencesOfString @ 0x3d716c
// > cocos2d::ccTouchClippedByAncestor @ 0x3dc6d6
// > ScrollableContentLayer::sectionAddChild @ 0x3f5d2c
// > ScrollableContentLayer::ensureOwnedContentNode @ 0x3f68dc
// > UILayer::updateCheckState @ 0x3fc5d6
// > UILayer::updateCheckState @ 0x3fc5f0
// > GameLevelManager::getCompletedGauntletDemons @ 0x4ab4e8
// > GameLevelManager::getCompletedGauntletLevels @ 0x4ab55c
// > GameLevelManager::getCompletedWeeklyLevels @ 0x4ad468
// > GameLevelManager::getCompletedDailyLevels @ 0x4ad56e
// > GameLevelManager::getCompletedEventLevels @ 0x4ad66c
// > GameLevelManager::getDemonLevelsString @ 0x4d5d2a
// > GameLevelManager::getStarLevelsString @ 0x4d5e6c
// > GameLevelManager::verifyContainerOnlyHasLevels @ 0x4d9110
// > GameLevelManager::dataLoaded @ 0x4dccf8
// > GameLevelManager::dataLoaded @ 0x4dcd20
// > GameLevelManager::dataLoaded @ 0x4dcdf6
// > GameLevelManager::dataLoaded @ 0x4dce22
// > GameLevelManager::dataLoaded @ 0x4dcf1c
// > GameLevelManager::dataLoaded @ 0x4dcf48
// > GameLevelManager::dataLoaded @ 0x4dd03e
// > GameLevelManager::dataLoaded @ 0x4dd06a
// > GameLevelManager::dataLoaded @ 0x4dd126
// > GameLevelManager::dataLoaded @ 0x4dd1e2
// > GameLevelManager::dataLoaded @ 0x4dd20e
// > TextAlertPopup::replaceIn @ 0x5d4cc0
// > ConfigureHSVWidget::hostPopup @ 0x5e4adc
// > CustomSFXRowMenu::ccTouchBegan @ 0x6a5e54
// > DpadMenu::ccTouchBegan @ 0x6f571e
// > MessageThreadsPage::isCovered @ 0x746b4e
// > ThreadViewPopup::onAutoRefresh @ 0x749a40
// > sub_7936BC @ 0x7936f4
// > IDNameInput::initCore @ 0x793fde
// > cocos2d::extension::CCControl::setOpacityModifyRGB @ 0x7a66a4
// > cocos2d::extension::CCControlButton::getTitleTTFForState @ 0x7a7242
// > cocos2d::extension::CCControlButton::getTitleTTFForState @ 0x7a7254
// > cocos2d::extension::CCControlButton::setTitleTTFSizeForState @ 0x7a72ae
// > cocos2d::extension::CCControlButton::setTitleTTFSizeForState @ 0x7a72c0
// > cocos2d::extension::CCControlButton::getTitleTTFSizeForState @ 0x7a72fe
// > cocos2d::extension::CCControlButton::getTitleTTFSizeForState @ 0x7a7310
// > cocos2d::extension::CCControlButton::getTitleBMFontForState @ 0x7a734e
// > cocos2d::extension::CCControlButton::getTitleBMFontForState @ 0x7a7360
// > cocos2d::extension::CCControlButton::needsLayout @ 0x7a76a4
// > cocos2d::extension::CCControlButton::needsLayout @ 0x7a76de
// > cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0x7a7dcc
// > cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0x7a7de0
// > cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB @ 0x7abf0c
// > cocos2d::extension::CCScale9Sprite::setColor @ 0x7abf82
// > cocos2d::extension::CCScale9Sprite::setOpacity @ 0x7abfee
// > cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject @ 0x7b04d0
// > cocos2d::extension::CCArrayForObjectSorting::insertSortedObject @ 0x7b0516
// > cocos2d::extension::CCArrayForObjectSorting::removeSortedObject @ 0x7b0582
// > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0x7b0600
// > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0x7b0610
// > cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID @ 0x7b06f2
// > cocos2d::CCConfiguration::getCString @ 0x7b3ee2
// > cocos2d::CCConfiguration::getBool @ 0x7b3f68
// > cocos2d::CCConfiguration::getBool @ 0x7b3f80
// > cocos2d::CCConfiguration::getNumber @ 0x7b401a
// > cocos2d::CCConfiguration::getNumber @ 0x7b4032
// > cocos2d::CCConfiguration::getNumber @ 0x7b404e
// > cocos2d::CCConfiguration::loadConfigFile @ 0x7b4194
// > cocos2d::CCConfiguration::loadConfigFile @ 0x7b41d2
// > cocos2d::CCConfiguration::loadConfigFile @ 0x7b4214
// > cocos2d::CCFadeIn::update @ 0x7bcbe4
// > cocos2d::CCFadeOut::update @ 0x7bcc44
// > cocos2d::CCFadeTo::startWithTarget @ 0x7bccaa
// > cocos2d::CCFadeTo::update @ 0x7bcce6
// > cocos2d::CCTintTo::startWithTarget @ 0x7bcd54
// > cocos2d::CCTintTo::update @ 0x7bcda6
// > cocos2d::CCTintBy::startWithTarget @ 0x7bce72
// > cocos2d::CCTintBy::update @ 0x7bceca
// > cocos2d::CCRepeat::initWithAction @ 0x7be3d8
// > cocos2d::CCNodeRGBA::updateDisplayedOpacity @ 0x7c3f06
// > cocos2d::CCNodeRGBA::setOpacity @ 0x7c4000
// > cocos2d::CCNodeRGBA::setColor @ 0x7c4096
// > cocos2d::CCNodeRGBA::updateDisplayedColor @ 0x7c41a0
// > cocos2d::CCDictionary::valueForKey @ 0x7c7abc
// > cocos2d::CCDictionary::valueForKey @ 0x7c7bf4
// > cocos2d::CCString::isEqual @ 0x7c8928
// > cocos2d::CCDirector::pushScene @ 0x7ca90a
// > cocos2d::CCDirector::replaceScene @ 0x7ca986
// > cocos2d::CCDirector::setNextScene @ 0x7cac5e
// > cocos2d::CCDirector::setNextScene @ 0x7cac84
// > cocos2d::CCKeypadHandler::~CCKeypadHandler @ 0x7d1eba
// > cocos2d::CCKeypadHandler::initWithDelegate @ 0x7d1f04
// > cocos2d::CCKeypadHandler::setDelegate @ 0x7d1f3e
// > cocos2d::CCKeypadHandler::setDelegate @ 0x7d1f5e
// > cocos2d::CCLabelBMFont::setOpacityModifyRGB @ 0x7d2c60
// > cocos2d::CCLabelBMFont::setColor @ 0x7d2cde
// > cocos2d::CCLabelBMFont::setOpacity @ 0x7d2d64
// > cocos2d::CCLayerRGBA::setOpacity @ 0x7d7620
// > cocos2d::CCLayerRGBA::setColor @ 0x7d76d6
// > cocos2d::CCLayerRGBA::updateDisplayedOpacity @ 0x7d77b6
// > cocos2d::CCLayerRGBA::updateDisplayedColor @ 0x7d7890
// > cocos2d::CCMenu::alignItemsVerticallyWithPadding @ 0x7dbe80
// > cocos2d::CCMenu::alignItemsVerticallyWithPadding @ 0x7dbf00
// > cocos2d::CCMenu::alignItemsHorizontallyWithPadding @ 0x7dc014
// > cocos2d::CCMenu::alignItemsHorizontallyWithPadding @ 0x7dc094
// > cocos2d::CCMenu::itemForTouch @ 0x7dc1ae
// > cocos2d::CCMenu::ccTouchBegan @ 0x7dc352
// > cocos2d::CCMenu::alignItemsInColumnsWithArray @ 0x7dc628
// > cocos2d::CCMenu::alignItemsInColumnsWithArray @ 0x7dc6a2
// > cocos2d::CCMenu::alignItemsInRowsWithArray @ 0x7dc922
// > cocos2d::CCMenu::alignItemsInRowsWithArray @ 0x7dca4c
// > cocos2d::CCMenu::removeChild @ 0x7dce42
// > cocos2d::CCMenuItemLabel::setEnabled @ 0x7dd1c8
// > cocos2d::CCMenuItemLabel::setEnabled @ 0x7dd1ec
// > cocos2d::CCMenuItemLabel::setEnabled @ 0x7dd210
// > cocos2d::CCMenuItemLabel::setString @ 0x7dd9f0
// > cocos2d::CCMenuItemFont::recreateLabel @ 0x7dda6e
// > sub_7E6F24 @ 0x7e6f3e
// > sub_7E6F24 @ 0x7e6f76
// > sub_7E6F24 @ 0x7e6f8a
// > cocos2d::CCSprite::setChildOpacity @ 0x7f12de
// > cocos2d::CCSprite::setChildColor @ 0x7f133a
// > cocos2d::CCSprite::addChild @ 0x7f1cba
// > cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0x7f1dda
// > cocos2d::CCComponentContainer::remove @ 0x7fdd7c
// > cocos2d::CCComponentContainer::get @ 0x7fe1ae
// > cocos2d::CCComponentContainer::add @ 0x7fe258
// > cocos2d::CCTMXTiledMap::layerNamed @ 0x80535a
// > cocos2d::CCTouchDispatcher::ownerLevelFor @ 0x807e52
// > cocos2d::CCTouchDispatcher::touches @ 0x808450
// > cocos2d::CCTouchHandler::initWithDelegate @ 0x8085e8
// > cocos2d::CCTouchHandler::~CCTouchHandler @ 0x80862a
// > cocos2d::CCTouchHandler::setDelegate @ 0x8086e6
// > cocos2d::CCTouchHandler::setDelegate @ 0x808706
// > cocos2d::CCKeyboardHandler::~CCKeyboardHandler @ 0x809c42
// > cocos2d::CCKeyboardHandler::initWithDelegate @ 0x809c8c
// > cocos2d::CCKeyboardHandler::setDelegate @ 0x809cc6
// > cocos2d::CCKeyboardHandler::setDelegate @ 0x809ce6
// > cocos2d::CCMouseHandler::~CCMouseHandler @ 0x809fbe
// > cocos2d::CCMouseHandler::initWithDelegate @ 0x80a008
// > cocos2d::CCMouseHandler::setDelegate @ 0x80a042
// > cocos2d::CCMouseHandler::setDelegate @ 0x80a062
// > DS_Dictionary::setObjectForKey @ 0x80d4be
// > DS_Dictionary::setObjectForKey @ 0x80d4d0
// > DS_Dictionary::setObjectForKey @ 0x80d4e2
// > sub_981154 @ 0x981184
// > sub_981360 @ 0x981386
// > sub_9813BC @ 0x981416
// > sub_9813BC @ 0x98146e
// > sub_9813BC @ 0x9814a0
// > sub_9813BC @ 0x9814c0
// > sub_9813BC @ 0x9814ee
// > sub_9813BC @ 0x98150c
// > sub_9815AC @ 0x9815c6
// > sub_9815AC @ 0x9815f2
// > sub_981638 @ 0x981670
// > sub_981638 @ 0x98169e
// > sub_981638 @ 0x9816c6
// > sub_9816F8 @ 0x981714
// > sub_981748 @ 0x98177c
// > sub_981748 @ 0x9817be
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:06:08 +0000
//
void *_dynamic_cast(
const void *lpsrc,
const struct __class_type_info *lpstype,
const struct __class_type_info *lpdtype,
ptrdiff_t s2d)
{
__int64 v6; // kr00_8
char *v7; // r5
void *v8; // r4
bool v9; // zf
_DWORD v11[15]; // [sp+8h] [bp-4Ch] BYREF
v6 = *(_QWORD *)(*(_DWORD *)lpsrc - 8);
v11[0] = lpdtype;
v11[1] = lpsrc;
v11[2] = lpstype;
v11[3] = s2d;
memset(&v11[4], 0, 0x27u);
v7 = (char *)lpsrc + v6;
if ( (const struct __class_type_info *)HIDWORD(v6) == lpdtype )
{
v11[12] = 1;
(*(void (__fastcall **)(const struct __class_type_info *, _DWORD *, char *, char *, int, _DWORD))(*(_DWORD *)lpdtype + 20))(
lpdtype,
v11,
v7,
v7,
1,
0);
if ( v11[6] != 1 )
return nullptr;
return v7;
}
else
{
v8 = nullptr;
(*(void (__fastcall **)(_DWORD, _DWORD *, char *, int, _DWORD))(*(_DWORD *)HIDWORD(v6) + 24))(
HIDWORD(v6),
v11,
v7,
1,
0);
if ( v11[9] == 1 )
{
if ( v11[6] == 1 )
return (void *)v11[4];
v8 = nullptr;
if ( !v11[10] )
{
v9 = v11[7] == 1;
if ( v11[7] == 1 )
v9 = v11[8] == 1;
if ( v9 )
return (void *)v11[4];
}
}
else if ( !v11[9] )
{
v8 = (void *)v11[5];
if ( v11[8] != 1 )
v8 = nullptr;
if ( v11[7] != 1 )
v8 = nullptr;
if ( v11[10] != 1 )
return nullptr;
}
}
return v8;
}