//
// cocos2d::CCSpriteFrameCache::spriteFrameByName from 0xb1ace0 to 0xb1aed0 (496 bytes)
//
// 227 xrefs:
// > SpriteDescription::initDescription @ 0x571e98
// > SpriteDescription::initDescription @ 0x572eb8
// > CCSpritePart::updateDisplayFrame @ 0x577f80
// > GameToolbox::particleFromStruct @ 0x582338
// > SpriteAnimationManager::createAnimations @ 0x58e8fc
// > SpriteAnimationManager::createAnimations @ 0x58ea88
// > SpriteAnimationManager::createAnimations @ 0x58ef70
// > CCSpritePlus::createWithSpriteFrameName @ 0x5a8638
// > CCSpriteCOpacity::createWithSpriteFrameName @ 0x5a87d8
// > CCSpriteWithHue::createWithSpriteFrameName @ 0x5bc6b4
// > CCSpriteGrayscale::createWithSpriteFrameName @ 0x5bd4ac
// > MenuLayer::googlePlaySignedIn @ 0x5c219c
// > MenuLayer::googlePlaySignedIn @ 0x5c21d4
// > GJUINode::updateButtonFrames @ 0x5c632c
// > GJUINode::updateButtonFrames @ 0x5c635c
// > GJUINode::updateButtonFrames @ 0x5c6390
// > LevelCell::loadCustomLevelCell @ 0x610c38
// > LevelCell::loadCustomLevelCell @ 0x611b34
// > CommentCell::loadFromComment @ 0x617260
// > CommentCell::loadFromComment @ 0x618078
// > CommentCell::updateLabelValues @ 0x6188f4
// > CommentCell::updateLabelValues @ 0x618920
// > LevelListCell::loadFromList @ 0x61ef18
// > LevelListCell::loadFromList @ 0x61f7dc
// > PlayerObject::updateDashAnimation @ 0x623788
// > PlayerObject::updateDashAnimation @ 0x6237a8
// > PlayerObject::playSpiderDashEffect @ 0x627028
// > PlayerObject::updatePlayerSpriteExtra @ 0x627994
// > PlayerObject::updatePlayerFrame @ 0x627b24
// > PlayerObject::updatePlayerFrame @ 0x627b48
// > PlayerObject::updatePlayerFrame @ 0x627b6c
// > PlayerObject::updatePlayerRollFrame @ 0x627d7c
// > PlayerObject::updatePlayerRollFrame @ 0x627da0
// > PlayerObject::updatePlayerRollFrame @ 0x627dc4
// > PlayerObject::updatePlayerSwingFrame @ 0x627fcc
// > PlayerObject::updatePlayerSwingFrame @ 0x627ff0
// > PlayerObject::updatePlayerSwingFrame @ 0x628014
// > PlayerObject::updatePlayerDartFrame @ 0x628224
// > PlayerObject::updatePlayerDartFrame @ 0x628248
// > PlayerObject::updatePlayerDartFrame @ 0x62826c
// > PlayerObject::updateShipSpriteExtra @ 0x6283f8
// > PlayerObject::updatePlayerShipFrame @ 0x628584
// > PlayerObject::updatePlayerShipFrame @ 0x6285a8
// > PlayerObject::updatePlayerShipFrame @ 0x6285cc
// > PlayerObject::updatePlayerJetpackFrame @ 0x6287dc
// > PlayerObject::updatePlayerJetpackFrame @ 0x628800
// > PlayerObject::updatePlayerJetpackFrame @ 0x628824
// > PlayerObject::updatePlayerBirdFrame @ 0x628a4c
// > PlayerObject::updatePlayerBirdFrame @ 0x628a70
// > PlayerObject::updatePlayerBirdFrame @ 0x628a94
// > PlayerObject::updatePlayerBirdFrame @ 0x628ab8
// > PlayerObject::startDashing @ 0x62ac10
// > PlayerObject::toggleSpiderMode @ 0x630ccc
// > PlayerObject::toggleRobotMode @ 0x6319a0
// > PlayerObject::spiderTestJumpY @ 0x6364ac
// > PlayerObject::spiderTestJumpX @ 0x636fb8
// > GameObject::customSetup @ 0x6518ec
// > GameObject::customSetup @ 0x651f24
// > GJScaleControl::onToggleLockScale @ 0x685c9c
// > GJScaleControl::onToggleLockScale @ 0x685cc4
// > GJTransformControl::onToggleLockScale @ 0x685d38
// > GJTransformControl::onToggleLockScale @ 0x685d60
// > GJRotationControl::ccTouchBegan @ 0x686860
// > EditorUI::updateDeleteButtons @ 0x688ab8
// > EditorUI::updateDeleteButtons @ 0x688be8
// > EditorUI::updateDeleteButtons @ 0x688c94
// > EditorUI::updatePlaybackBtn @ 0x689278
// > EditorUI::updatePlaybackBtn @ 0x689314
// > EditorUI::resetUI @ 0x68a880
// > EditorUI::resetUI @ 0x68a8bc
// > EditorUI::resetUI @ 0x68a8f8
// > EditorUI::toggleMode @ 0x68a9c4
// > EditorUI::toggleMode @ 0x68aa0c
// > EditorUI::toggleMode @ 0x68aa4c
// > EditorUI::updateEditColorButton @ 0x68cd48
// > EditorUI::updateEditColorButton @ 0x68cdc8
// > GJRotationControl::finishTouch @ 0x69537c
// > EditorUI::playtestStopped @ 0x696218
// > EditorUI::updateButtons @ 0x6b53e4
// > EditorUI::onPlaytest @ 0x6beee0
// > EditorUI::onPlaytest @ 0x6bef64
// > CreatorLayer::dialogClosed @ 0x6ca964
// > LevelSearchLayer::demonFilterSelectClosed @ 0x6cda64
// > LevelInfoLayer::onFavorite @ 0x6d584c
// > LevelInfoLayer::updateSideButtons @ 0x6d9880
// > LevelInfoLayer::updateSideButtons @ 0x6d98d8
// > LevelInfoLayer::updateSideButtons @ 0x6d9950
// > LevelInfoLayer::updateLabelValues @ 0x6d9b18
// > LevelInfoLayer::updateLabelValues @ 0x6da2a0
// > LevelInfoLayer::levelDownloadFinished @ 0x6ddab0
// > ShareLevelLayer::selectRating @ 0x6e35f4
// > CustomSongWidget::positionInfoObjects @ 0x743920
// > CustomSongWidget::updatePlaybackBtn @ 0x743f34
// > CustomSongWidget::updatePlaybackBtn @ 0x743f7c
// > CustomSongWidget::updateSongInfo @ 0x744bf4
// > CustomSongWidget::updateSongInfo @ 0x745488
// > AnimatedGameObject::displayFrameChanged @ 0x753124
// > SmartGameObject::updateSmartFrame @ 0x7541ec
// > TriggerControlGameObject::updateTriggerControlFrame @ 0x76dd00
// > GJGarageLayer::updateRate @ 0x78fb04
// > SimplePlayer::setFrames @ 0x7922f4
// > SimplePlayer::setFrames @ 0x79231c
// > SimplePlayer::setFrames @ 0x792344
// > SimplePlayer::setFrames @ 0x7923f0
// > SimplePlayer::setFrames @ 0x792450
// > GJGarageLayer::setupPage @ 0x7978f0
// > GJGarageLayer::setupPage @ 0x797c4c
// > LevelPage::dialogClosed @ 0x79bd18
// > LevelPage::addSecretCoin @ 0x79e788
// > LevelPage::addSecretCoin @ 0x79e7bc
// > LevelPage::addSecretCoin @ 0x79e7f0
// > LevelPage::addSecretCoin @ 0x79e824
// > LevelPage::playCoinEffect @ 0x79eab4
// > LevelPage::playCoinEffect @ 0x79eae8
// > LevelPage::playCoinEffect @ 0x79eb1c
// > LevelPage::playCoinEffect @ 0x79eb50
// > LevelPage::updateDynamicPage @ 0x79f394
// > LevelPage::updateDynamicPage @ 0x79f55c
// > LevelPage::updateDynamicPage @ 0x79f82c
// > SongOptionsLayer::updatePlaybackBtn @ 0x83de5c
// > SongOptionsLayer::updatePlaybackBtn @ 0x83de8c
// > CustomizeObjectLayer::updateHSVButtons @ 0x84088c
// > CustomizeObjectLayer::updateHSVButtons @ 0x8408cc
// > GJDifficultySprite::updateDifficultyFrame @ 0x8d9fd8
// > GJRobotSprite::updateFrame @ 0x8e3110
// > GJRobotSprite::updateFrame @ 0x8e3148
// > GJRobotSprite::updateFrame @ 0x8e31d8
// > GJRobotSprite::updateFrame @ 0x8e33a8
// > ProfilePage::onFollow @ 0x8f852c
// > SecretLayer::playCoinEffect @ 0x903e60
// > SecretLayer::playCoinEffect @ 0x903e94
// > SecretLayer::playCoinEffect @ 0x903ec8
// > SecretLayer::playCoinEffect @ 0x903efc
// > DialogLayer::updateNavButtonFrame @ 0x916ba0
// > DialogLayer::updateNavButtonFrame @ 0x916bd4
// > RewardsPage::updateTimers @ 0x9350ec
// > RewardsPage::updateTimers @ 0x935150
// > SecretLayer2::dialogClosed @ 0x93a7c4
// > SecretLayer2::playCoinEffect @ 0x941378
// > SecretLayer2::playCoinEffect @ 0x9413ac
// > SecretLayer2::playCoinEffect @ 0x9413e0
// > SecretLayer2::playCoinEffect @ 0x941414
// > SecretLayer3::init @ 0x945074
// > SecretLayer3::init @ 0x9450a8
// > SecretLayer4::playCoinEffect @ 0x94a528
// > SecretLayer4::playCoinEffect @ 0x94a55c
// > SecretLayer4::playCoinEffect @ 0x94a590
// > SecretLayer4::playCoinEffect @ 0x94a5c4
// > ShardsPage::goToPage @ 0x95c3e0
// > GJWorldNode::unlockActiveItem @ 0x95ee60
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b0f90
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1110
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1188
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b11fc
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1278
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b12ec
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1344
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1548
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1638
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b16dc
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1834
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b188c
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b19a4
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b19f4
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1a4c
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1ae8
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1b5c
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1c88
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1ca8
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1d8c
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1e28
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1f44
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1ff8
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b205c
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b22a0
// > GameObject::playDestroyObjectAnim @ 0x9b337c
// > GameObject::playDestroyObjectAnim @ 0x9b33b0
// > GameObject::playDestroyObjectAnim @ 0x9b33e4
// > GameObject::playDestroyObjectAnim @ 0x9b3418
// > GameObject::playDestroyObjectAnim @ 0x9b3844
// > GameObject::playDestroyObjectAnim @ 0x9b387c
// > GameObject::playDestroyObjectAnim @ 0x9b38b4
// > GameObject::playDestroyObjectAnim @ 0x9b38ec
// > CreateParticlePopup::onSelectParticleTexture @ 0x9c3134
// > SetupAreaTintTriggerPopup::updateHSVButton @ 0xa0ead0
// > SetupEnterEffectPopup::updateHSVButton @ 0xa131a0
// > PlayerObject::playDeathEffect @ 0xa28070
// > PlayerObject::playDeathEffect @ 0xa284b0
// > PlayerObject::playDeathEffect @ 0xa288e4
// > PlayerObject::playDeathEffect @ 0xa28d14
// > PlayerObject::playDeathEffect @ 0xa29178
// > PlayerObject::playDeathEffect @ 0xa295b8
// > PlayerObject::playDeathEffect @ 0xa299b8
// > PlayerObject::playDeathEffect @ 0xa29dd8
// > PlayerObject::playDeathEffect @ 0xa2a260
// > PlayerObject::playDeathEffect @ 0xa2a6d0
// > PlayerObject::playDeathEffect @ 0xa2ab14
// > PlayerObject::playDeathEffect @ 0xa2aff0
// > PlayerObject::playDeathEffect @ 0xa2b448
// > PlayerObject::playDeathEffect @ 0xa2b8f8
// > PlayerObject::playDeathEffect @ 0xa2bd7c
// > PlayerObject::playDeathEffect @ 0xa2c1ec
// > PlayerObject::playDeathEffect @ 0xa2c608
// > PlayerObject::playDeathEffect @ 0xa2ca24
// > PlayerObject::playDeathEffect @ 0xa2ce74
// > LevelAreaLayer::addTorch @ 0xa2ed78
// > LevelAreaLayer::addTorch @ 0xa2edac
// > CustomSFXWidget::updateSFXInfo @ 0xa321f4
// > CustomSFXWidget::updateSFXInfo @ 0xa323d4
// > LevelSettingsLayer::selectArtClosed @ 0xa345a0
// > LevelSettingsLayer::selectArtClosed @ 0xa34654
// > LevelSettingsLayer::selectArtClosed @ 0xa346e0
// > LevelSettingsLayer::selectSettingClosed @ 0xa397e0
// > LevelSettingsLayer::selectSettingClosed @ 0xa3983c
// > SetupAudioLineGuidePopup::selectSettingClosed @ 0xa4409c
// > SetupArtSwitchPopup::selectArtClosed @ 0xa51660
// > SecretRewardsLayer::updateBackButton @ 0xa61170
// > LevelListLayer::onFavorite @ 0xa726f8
// > LevelListLayer::onFavorite @ 0xa72728
// > LevelListLayer::updateStatsArt @ 0xa748a0
// > LevelListLayer::updateSideButtons @ 0xa75b18
// > cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName @ 0xaa214c
// > cocos2d::CCAnimationCache::parseVersion1 @ 0xb13cbc
// > cocos2d::CCAnimationCache::parseVersion2 @ 0xb13ff8
// > cocos2d::CCSprite::initWithSpriteFrameName @ 0xb14ae0
// > cocos2d::CCSprite::createWithSpriteFrameName @ 0xb15e00
// > ??> @ 0xa4c88
//
// 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
//
cocos2d::CCSpriteFrame *cocos2d::CCSpriteFrameCache::spriteFrameByName(cocos2d::CCSpriteFrameCache *a1, const char *a2)
{
cocos2d::CCSpriteFrameCache_vtbl *v3; // x21
cocos2d::CCSpriteFrame *v5; // x21
char *v6; // x0
unsigned int *v8; // x1
int v9; // w2
__int64 v10; // x26
cocos2d::CCString *v11; // x25
char *v12; // x0
cocos2d::CCSpriteFrameCache_vtbl *v13; // x21
char *CString; // x0
char *v15; // x0
unsigned int *v16; // x1
int v17; // w2
unsigned int *v18; // x1
int v19; // w2
const char *v20; // [xsp+60h] [xbp+60h] BYREF
v3 = a1[1].__vftable;
sub_D153B8((int)&v20, (char *)a2);
v5 = (cocos2d::CCSpriteFrame *)cocos2d::CCDictionary::objectForKey((__int64)v3, &v20);
v6 = (char *)(v20 - 24);
if ( v20 - 24 == (const char *)&qword_124B6B0 )
goto LABEL_2;
if ( &pthread_create )
{
v8 = (unsigned int *)(v20 - 8);
do
v9 = __ldaxr(v8);
while ( __stlxr(v9 - 1, v8) );
}
else
{
v9 = *((_DWORD *)v20 - 2);
*((_DWORD *)v20 - 2) = v9 - 1;
}
if ( v9 > 0 )
{
LABEL_2:
if ( v5 )
return v5;
}
else
{
operator delete(v6);
if ( v5 )
return v5;
}
v10 = *(_QWORD *)&a1[1].m_uID;
sub_D153B8((int)&v20, (char *)a2);
v11 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v10, &v20);
v12 = (char *)(v20 - 24);
if ( v20 - 24 != (const char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v18 = (unsigned int *)(v20 - 8);
do
v19 = __ldaxr(v18);
while ( __stlxr(v19 - 1, v18) );
}
else
{
v19 = *((_DWORD *)v20 - 2);
*((_DWORD *)v20 - 2) = v19 - 1;
}
if ( v19 <= 0 )
operator delete(v12);
}
if ( v11 )
{
v13 = a1[1].__vftable;
CString = (char *)cocos2d::CCString::getCString(v11);
sub_D153B8((int)&v20, CString);
v5 = (cocos2d::CCSpriteFrame *)cocos2d::CCDictionary::objectForKey((__int64)v13, &v20);
v15 = (char *)(v20 - 24);
if ( v20 - 24 != (const char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v16 = (unsigned int *)(v20 - 8);
do
v17 = __ldaxr(v16);
while ( __stlxr(v17 - 1, v16) );
}
else
{
v17 = *((_DWORD *)v20 - 2);
*((_DWORD *)v20 - 2) = v17 - 1;
}
if ( v17 <= 0 )
operator delete(v15);
}
}
return v5;
}