//
// cocos2d::extension::CCScale9Sprite::create_2 from 0x1003f5540 to 0x1003f55b4 (116 bytes)
//
// 214 xrefs:
// > GJRotateCommandLayer::init @ 0x100001a71
// > GJRotateCommandLayer::init @ 0x100002399
// > GJRotateCommandLayer::init @ 0x100002bd3
// > SetupOpacityPopup::init @ 0x1000573d0
// > SetupOpacityPopup::init @ 0x1000577ec
// > ButtonSprite::init @ 0x10009246b
// > ButtonSprite::init_1 @ 0x100092e31
// > ButtonSprite::updateBGImage @ 0x1000932cf
// > CustomizeObjectLayer::init @ 0x1001f5178
// > CustomizeObjectLayer::init @ 0x1001f5faa
// > CustomizeObjectLayer::init @ 0x1001f6980
// > EditLevelLayer::init @ 0x1001fab40
// > EditLevelLayer::init @ 0x1001faefd
// > GJColorSetupLayer::init @ 0x10020b5da
// > CustomSongLayer::init @ 0x100214d39
// > CustomSongLayer::init @ 0x100215425
// > CustomSongLayer::init @ 0x1002154ae
// > SongOptionsLayer::init @ 0x1002166de
// > SongOptionsLayer::init @ 0x100216d65
// > NewgroundsInfoLayer::init @ 0x1002175e8
// > NCSInfoLayer::init @ 0x100218142
// > SongSelectNode::init @ 0x100218ccf
// > RewardsPage::init @ 0x10021a2cf
// > RewardUnlockLayer::init @ 0x10021c00a
// > RewardUnlockLayer::init @ 0x10021c102
// > MessagesProfilePage::init @ 0x10022daa2
// > DailyLevelPage::init @ 0x100230418
// > DailyLevelNode::init @ 0x100232956
// > SetupTriggerPopup::init @ 0x1002350a7
// > SetupTriggerPopup::createValueControlAdvanced @ 0x100239de9
// > CommentCell::loadFromComment @ 0x100248221
// > LevelSettingsLayer::init @ 0x10026b7dc
// > LevelSettingsLayer::init @ 0x10026d0d6
// > LevelSettingsLayer::init @ 0x10026d3a8
// > SelectArtLayer::init @ 0x10026faea
// > SelectSettingLayer::init @ 0x100270b2f
// > ShareLevelLayer::init @ 0x100280253
// > ShareLevelLayer::init @ 0x10028052c
// > UploadPopup::init @ 0x100281b5e
// > ShareLevelSettingsLayer::init @ 0x10028261e
// > RateDemonLayer::init @ 0x100283c2f
// > CollisionBlockPopup::init @ 0x100285e14
// > CollisionBlockPopup::init @ 0x1002861e4
// > RateStarsLayer::init @ 0x10028b9b2
// > SetupSpawnPopup::init @ 0x10028feff
// > SelectFontLayer::init @ 0x100299fed
// > GJAccountSettingsLayer::init @ 0x10029fb24
// > GJAccountSettingsLayer::init @ 0x10029fc67
// > GJAccountSettingsLayer::init @ 0x10029fff8
// > GJAccountSettingsLayer::init @ 0x1002a02bd
// > GJAccountSettingsLayer::init @ 0x1002a0ad1
// > UpdateAccountSettingsPopup::init @ 0x1002a33e1
// > UploadActionPopup::init @ 0x1002a4219
// > FriendRequestPopup::init @ 0x1002a4fe3
// > FriendRequestPopup::init @ 0x1002a53ce
// > GJMessagePopup::init @ 0x1002a6d84
// > GJMessagePopup::init @ 0x1002a72b8
// > GJWriteMessagePopup::init @ 0x1002a8e53
// > GJWriteMessagePopup::init @ 0x1002a9265
// > GJWriteMessagePopup::init @ 0x1002a95cb
// > SetIDPopup::init @ 0x1002abc11
// > SetIDPopup::init @ 0x1002abe62
// > SetTextPopup::init @ 0x1002aec4b
// > SetTextPopup::init @ 0x1002aeea1
// > TextAlertPopup::init @ 0x1002afa4f
// > TOSPopup::init @ 0x1002afedb
// > TOSPopup::init @ 0x1002aff7e
// > SetupTouchTogglePopup::init @ 0x1002b8a24
// > SetupCountTriggerPopup::init @ 0x1002bb99e
// > GJFollowCommandLayer::init @ 0x1002d55fb
// > GJFollowCommandLayer::init @ 0x1002d5a26
// > GJFollowCommandLayer::init @ 0x1002d5f14
// > SelectPremadeLayer::init @ 0x100309fe1
// > TopArtistsLayer::init @ 0x100310811
// > SetGroupIDLayer::init @ 0x100312688
// > SetGroupIDLayer::init @ 0x10031272b
// > SetGroupIDLayer::createTextInput @ 0x100314db5
// > SetupObjectOptionsPopup::init @ 0x1003180df
// > CommunityCreditsPage::init @ 0x10031eab4
// > PurchaseItemPopup::init @ 0x100327abc
// > LevelListLayer::init @ 0x10035c36d
// > SelectListIconLayer::init @ 0x100361486
// > ShareListLayer::init @ 0x100361e73
// > ShareListLayer::init @ 0x100362156
// > UploadListPopup::init @ 0x10036398e
// > GJPFollowCommandLayer::init @ 0x100364cfa
// > GJPFollowCommandLayer::init @ 0x100365141
// > GJPFollowCommandLayer::init @ 0x100365523
// > GJPFollowCommandLayer::init @ 0x10036593d
// > GJPFollowCommandLayer::init @ 0x100365be3
// > GJGarageLayer::setupIconSelect @ 0x10036b496
// > ItemInfoPopup::init @ 0x100371a3d
// > ItemInfoPopup::init @ 0x100371b13
// > SetupRandAdvTriggerPopup::init @ 0x10038e089
// > SetupRandAdvTriggerPopup::init @ 0x10038e40a
// > SetupCollisionTriggerPopup::init @ 0x10039588a
// > ChallengesPage::init @ 0x10039d159
// > ChallengeNode::init @ 0x10039ea94
// > SetupPulsePopup::init @ 0x1003aa5a4
// > SetupPulsePopup::init @ 0x1003aa9b9
// > SetupPulsePopup::init @ 0x1003aadb1
// > SetupPulsePopup::init @ 0x1003ab3f1
// > SetupPulsePopup::init @ 0x1003ac236
// > SetupPulsePopup::init @ 0x1003ac8b6
// > SetupPulsePopup::init @ 0x1003acd18
// > SecretLayer4::init @ 0x1003b126c
// > WorldLevelPage::init @ 0x1003c57ba
// > DialogLayer::init @ 0x1003c74e7
// > DialogLayer::init @ 0x1003c7613
// > SetupAnimationPopup::init @ 0x1003d4ec4
// > PauseLayer::customSetup @ 0x1003d5e1c
// > SetupGravityModPopup::init @ 0x1003d8388
// > SetupGravityModPopup::init @ 0x1003d89ef
// > LevelLeaderboard::init @ 0x1003da15c
// > FollowRewardPage::init @ 0x10041f924
// > HSVWidgetPopup::init @ 0x10042f69c
// > ConfigureHSVWidget::init @ 0x10042fe8a
// > ConfigureHSVWidget::createTextInputNode @ 0x1004307c1
// > LevelPage::init @ 0x100435497
// > SFXBrowser::init @ 0x10043e6f1
// > SelectSFXSortLayer::init @ 0x100441266
// > CreateParticlePopup::init @ 0x10046ed5c
// > CreateParticlePopup::createParticleSlider @ 0x100473da6
// > SecretLayer5::init @ 0x10047a4ab
// > NumberInputLayer::init @ 0x100492481
// > AccountRegisterLayer::init @ 0x1004955be
// > AccountRegisterLayer::init @ 0x10049588b
// > AccountRegisterLayer::init @ 0x100495af2
// > AccountRegisterLayer::init @ 0x100495d4e
// > AccountRegisterLayer::init @ 0x100495fb9
// > AccountRegisterLayer::init @ 0x100496202
// > AccountRegisterLayer::createTextBackground @ 0x100496f90
// > AccountLoginLayer::init @ 0x100498eb0
// > AccountLoginLayer::init @ 0x100499191
// > AccountLoginLayer::init @ 0x100499580
// > AccountLoginLayer::createTextBackground @ 0x100499f30
// > FLAlertLayer::init @ 0x10049b9b3
// > SecretLayer2::init @ 0x10049d78c
// > SetupCameraRotatePopup::init @ 0x1004bcd1d
// > SetupCameraRotatePopup::init @ 0x1004bd584
// > ShardsPage::init @ 0x1004c5b94
// > TutorialLayer::init @ 0x1004dc7b3
// > SetupSequenceTriggerPopup::init @ 0x1004ddfa8
// > SetupSmartBlockLayer::init @ 0x1004e5e3c
// > SetupSmartTemplateLayer::init @ 0x1004e7be7
// > SetupSmartTemplateLayer::init @ 0x1004e7f1e
// > BrowseSmartTemplateLayer::baseSetup @ 0x1004e96f7
// > LevelFeatureLayer::init @ 0x100504d85
// > GJRateLevelLayer::init @ 0x10050608c
// > SetupMGTrigger::init @ 0x100508995
// > SetupMGTrigger::init @ 0x100509204
// > CreateGuidelinesLayer::init @ 0x10050b46c
// > CreateGuidelinesLayer::init @ 0x10050bb3d
// > RateLevelLayer::init @ 0x100567d0b
// > ColorSelectLiveOverlay::init @ 0x1005691e4
// > SetupPortalPopup::init @ 0x10056f8d4
// > GauntletNode::onUnlock @ 0x100573733
// > GauntletNode::showUnlockAnimation @ 0x100573887
// > GauntletNode::generateNode @ 0x100574956
// > SetupItemEditTriggerPopup::init @ 0x10057f1fc
// > SetupItemCompareTriggerPopup::init @ 0x100581c0b
// > SetupCameraEdgePopup::init @ 0x100588410
// > ShareCommentLayer::init @ 0x1005dfb0f
// > ShareCommentLayer::init @ 0x1005e0559
// > CustomSFXWidget::init @ 0x1005e2b9b
// > CustomSFXWidget::init @ 0x1005e35a8
// > SetupRandTriggerPopup::init @ 0x1005e575b
// > SetupRandTriggerPopup::init @ 0x1005e5b9a
// > SetupInstantCountPopup::init @ 0x1005e90cf
// > LikeItemLayer::init @ 0x1005f8ddf
// > SecretLayer::init @ 0x1005fb1cd
// > SongInfoLayer::init @ 0x100600b4b
// > KeybindingsLayer::init @ 0x100609ef1
// > MusicBrowser::init @ 0x10060dddc
// > AchievementBar::init @ 0x100618dac
// > AchievementBar::init @ 0x100618ea3
// > CustomSongWidget::init @ 0x10061aa27
// > CustomSongWidget::init @ 0x10061b490
// > CustomSongWidget::addExtraVisuals @ 0x10061e89b
// > ConfigureValuePopup::init @ 0x10062496b
// > ConfigureValuePopup::init @ 0x100624d83
// > GJSpecialColorSelect::init @ 0x1006260ea
// > LevelSearchLayer::init @ 0x100627fe8
// > LevelSearchLayer::init @ 0x100628094
// > LevelSearchLayer::init @ 0x100628616
// > LevelSearchLayer::init @ 0x1006290ec
// > LevelSearchLayer::init @ 0x10062986d
// > MoreSearchLayer::init @ 0x10062d12c
// > MoreSearchLayer::init @ 0x10062de9e
// > DemonFilterSelectLayer::init @ 0x10062f571
// > SecretRewardsLayer::createSecondaryLayer @ 0x1006336c0
// > FriendsProfilePage::init @ 0x100657c72
// > CharacterColorPage::init @ 0x10065cc01
// > CharacterColorPage::init @ 0x10065ce15
// > SetupCameraOffsetTrigger::init @ 0x100661901
// > SetupCameraOffsetTrigger::init @ 0x100662223
// > SetupShakePopup::init @ 0x100664710
// > SetupEndPopup::init @ 0x100668ed6
// > ColorSelectPopup::init @ 0x1007251e1
// > ColorSelectPopup::init @ 0x10072649d
// > ColorSelectPopup::init @ 0x100726a22
// > ColorSelectPopup::init @ 0x100727132
// > FRequestProfilePage::init @ 0x10078fe46
// > MoreOptionsLayer::init @ 0x10079b8be
// > MoreOptionsLayer::init @ 0x10079c553
// > VideoOptionsLayer::init @ 0x10079f188
// > MoreVideoOptionsLayer::init @ 0x1007a10bb
// > ParentalOptionsLayer::init @ 0x1007a35c1
// > InfoLayer::init @ 0x1007ae4c6
// > InfoLayer::init @ 0x1007aeba0
// > AudioAssetsBrowser::init @ 0x1007b3f92
// > ProfilePage::init @ 0x1007b88db
// > DemonInfoPopup::init @ 0x1007c149e
// > StarInfoPopup::init @ 0x1007c203a
//
// 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::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::create_2(
const char *a1,
cocos2d::CCRect a2)
{
unsigned __int64 *v2; // rsi
cocos2d::extension::CCScale9Sprite *v3; // rbx
double v4; // xmm0_8
__m128 v6[3]; // [rsp+0h] [rbp-30h] BYREF
v3 = (cocos2d::extension::CCScale9Sprite *)operator new(0x208u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite((__int64)v3);
v4 = sub_10028D180(v6, v2);
if ( ((unsigned __int8 (__fastcall *)(cocos2d::extension::CCScale9Sprite *, const char *, __m128 *, double, double))v3->initWithFile_0)(
v3,
a1,
v6,
v4,
*(double *)&a2.size) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *))v3->~CCScale9Sprite_0)(v3);
return nullptr;
}
return v3;
}