//
// ButtonSprite::updateBGImage from 0x10005a690 to 0x10005a79e (270 bytes)
//
// 158 xrefs:
// > EditorUI::init @ 0x10000790d
// > EditorUI::init @ 0x100007968
// > EditorUI::init @ 0x1000079f4
// > EditorUI::toggleMode @ 0x100007e35
// > EditorUI::toggleSwipe @ 0x100007e8c
// > EditorUI::toggleFreeMove @ 0x100007f8c
// > EditorUI::toggleSnap @ 0x10000803b
// > EditorUI::toggleEnableRotate @ 0x1000080d8
// > EditorUI::toggleEnableRotate @ 0x1000080f9
// > EditorUI::resetUI @ 0x100008c87
// > EditorUI::resetUI @ 0x100008ca2
// > EditorUI::resetUI @ 0x100008cbd
// > EditorUI::resetUI @ 0x100008cd8
// > AccountLayer::onBackup @ 0x10009aae6
// > AccountHelpLayer::onUnlink @ 0x10009ce9f
// > AccountHelpLayer::verifyUnlink @ 0x10009d328
// > CustomizeObjectLayer::onSelectMode @ 0x1001d98ce
// > CustomizeObjectLayer::onSelectMode @ 0x1001d98f4
// > CustomizeObjectLayer::onSelectMode @ 0x1001d991f
// > CustomizeObjectLayer::highlightSelected @ 0x1001db0ea
// > CustomizeObjectLayer::highlightSelected @ 0x1001db116
// > SongSelectNode::onSongMode @ 0x1001fcb04
// > SongSelectNode::onSongMode @ 0x1001fcb1f
// > sub_100212A20 @ 0x100212bab
// > GJNotificationCell::onMute @ 0x100241b9e
// > GJMessageCell::onDeleteMessage @ 0x100242403
// > HSVLiveOverlay::createHSVWidget @ 0x10025500f
// > LevelSettingsLayer::init @ 0x100256774
// > LevelSettingsLayer::init @ 0x100256797
// > LevelSettingsLayer::onGameplayMode @ 0x100257fc3
// > LevelSettingsLayer::onGameplayMode @ 0x100257ff4
// > LevelSettingsLayer::updateGameplayModeButtons @ 0x100258078
// > LevelSettingsLayer::updateGameplayModeButtons @ 0x1002580a9
// > LevelSettingsLayer::onGArt @ 0x100258193
// > SelectArtLayer::updateSelectedCustom @ 0x100259353
// > SelectArtLayer::onSelectCustom @ 0x10025a5c3
// > ShareLevelLayer::selectRating @ 0x10026dd89
// > sub_1002778C0 @ 0x100277949
// > FriendRequestPopup::onBlock @ 0x10029277a
// > GJMessagePopup::onRemove @ 0x100294676
// > GJMessagePopup::onBlock @ 0x1002948a1
// > GJWriteMessagePopup::onClearBody @ 0x1002968bc
// > LevelInfoLayer::confirmOwnerDelete @ 0x1002aeba2
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002bcc93
// > SetupShaderEffectPopup::onZLayer @ 0x1002bd123
// > SetupShaderEffectPopup::updateZLayerButtons @ 0x1002bd223
// > SetGroupIDLayer::init @ 0x1002fe68b
// > SetGroupIDLayer::onZLayer @ 0x1002ffd66
// > SetGroupIDLayer::updateZLayerButtons @ 0x100300ad6
// > SetGroupIDLayer::onPaste @ 0x1003011b6
// > SetupPulsePopup::onSelectTargetMode @ 0x100396f7c
// > SetupPulsePopup::onSelectTargetMode @ 0x100396f97
// > SetupPulsePopup::onSelectPulseMode @ 0x100397232
// > SetupPulsePopup::onSelectPulseMode @ 0x100397255
// > FollowRewardPage::onSpecialItem @ 0x10040d96e
// > sub_100432370 @ 0x1004323c1
// > sub_100432370 @ 0x1004323ee
// > sub_100432370 @ 0x100432420
// > CreateParticlePopup::onMode @ 0x100467a13
// > CreateParticlePopup::onMode @ 0x100467a39
// > CreateParticlePopup::onMode @ 0x100467a69
// > CreateParticlePopup::onPage @ 0x100467c40
// > LevelBrowserLayer::onProcessSelected @ 0x100482ded
// > MPLobbyLayer::onBtn1 @ 0x10048ad37
// > SetupAudioTriggerPopup::onProxMode @ 0x1004b0b03
// > SetupAreaMoveTriggerPopup::onMode @ 0x1004d018f
// > SetupSequenceTriggerPopup::onSelect @ 0x1004d9d8c
// > SetupSequenceTriggerPopup::onSelect @ 0x1004d9dbe
// > sub_100505220 @ 0x1005052a9
// > GJRateLevelLayer::onCustomButton @ 0x100505588
// > GJRateLevelListLayer::onCustomButton @ 0x1005086f0
// > GJRateEditorSoundLayer::onCustomButton @ 0x10050975e
// > LeaderboardsLayer::toggleTabButtons @ 0x100514ba3
// > ColorSelectLiveOverlay::onSelectTab @ 0x100596de0
// > EditorUI::setDpadStep @ 0x10063b0b8
// > EditorUI::updateDeleteButtons @ 0x10063bdd6
// > EditorUI::updateDeleteButtons @ 0x10063bdf9
// > EditorUI::updateDeleteButtons @ 0x10063be1c
// > EditorUI::updateDeleteButtons @ 0x10063be3f
// > EditorUI::setupViewMenu @ 0x10063de35
// > sub_10063E320 @ 0x10063e3a5
// > EditorUI::toggleViewOption @ 0x10063e9e3
// > TabbedPopupLayer::showTab @ 0x10063fdda
// > sub_10063FEA0 @ 0x10063ff31
// > TabbedPopupLayer::pageChanged @ 0x100640157
// > sub_1006C4830 @ 0x1006c5843
// > SetupGradientPopup::onZLayer @ 0x1006c5db3
// > SetupGradientPopup::updateZLayerButtons @ 0x1006c5e53
// > MusicBrowser::setupList @ 0x1006ea0e0
// > MusicBrowser::setupList @ 0x1006ea10d
// > MusicBrowser::setupList @ 0x1006ea148
// > MusicBrowser::setupList @ 0x1006ea175
// > MusicBrowser::setupList @ 0x1006ea1a7
// > sub_1006EA4B0 @ 0x1006ea501
// > sub_1006EA4B0 @ 0x1006ea52e
// > sub_1006EA4B0 @ 0x1006ea56a
// > GJSpecialColorSelect::onSelectColor @ 0x1007034ea
// > GJSpecialColorSelect::onSelectColor @ 0x100703521
// > GJSpecialColorSelect::highlightSelected @ 0x10070362a
// > GJSpecialColorSelect::highlightSelected @ 0x100703661
// > MoreSearchLayer::onSongMode @ 0x10070b86a
// > MoreSearchLayer::onSongMode @ 0x10070b885
// > FriendsProfilePage::onUnblock @ 0x100736800
// > FriendsProfilePage::onUnmute @ 0x100736aac
// > FriendsProfilePage::onUnfollow @ 0x100736dfc
// > CharacterColorPage::updateColorMode @ 0x10073d8e8
// > CharacterColorPage::updateColorMode @ 0x10073d996
// > CharacterColorPage::updateColorMode @ 0x10073da44
// > sub_100870760 @ 0x1008709b8
// > InfoLayer::init @ 0x100892ace
// > InfoLayer::init @ 0x100892b4d
// > InfoLayer::init @ 0x100892bd6
// > InfoLayer::init @ 0x100892d4a
// > InfoLayer::init @ 0x100892d65
// > InfoLayer::toggleCommentMode @ 0x10089425b
// > InfoLayer::toggleCommentMode @ 0x100894276
// > sub_100894470 @ 0x1008944b6
// > InfoLayer::updateCommentModeButtons @ 0x100894573
// > InfoLayer::updateCommentModeButtons @ 0x10089458e
// > InfoLayer::commentUploadFinished @ 0x100896a5c
// > InfoLayer::commentUploadFinished @ 0x100896a77
// > ProfilePage::onFriend @ 0x1008a25ca
// > ProfilePage::onBlockUser @ 0x1008a2ad6
// > sub_1008A5090 @ 0x1008a521e
// > sub_1008B4A50 @ 0x1008b4b1c
// > sub_1008C8250 @ 0x1008c8328
// > sub_1008CA5B0 @ 0x1008ca699
// > EditorSFXActionConfigLayer::init @ 0x1008df938
// > sub_1008DFA20 @ 0x1008dfa8f
// > sub_1008DFAD0 @ 0x1008dfb0c
// > MessageThreadsPage::onDeleteSelected @ 0x10092a534
// > sub_10092FFD0 @ 0x1009302e4
// > sub_1009428A0 @ 0x100942a61
// > sub_100949FA0 @ 0x10094a070
// > sub_10094A530 @ 0x10094a607
// > sub_10094A640 @ 0x10094a7d1
// > sub_10094A810 @ 0x10094a989
// > sub_10094EB10 @ 0x10094ec02
// > sub_10095F7F0 @ 0x10095f858
// > sub_10095F7F0 @ 0x10095f87f
// > sub_10095F7F0 @ 0x10095f8b7
// > sub_10095F7F0 @ 0x10095f8cf
// > sub_10095F7F0 @ 0x10095f8e7
// > sub_100963910 @ 0x100963999
// > sub_100966920 @ 0x100967019
// > SFXFolderPickerPopup::init @ 0x1009724b5
// > SFXFolderPickerPopup::onSelectAll @ 0x100972720
// > sub_100973790 @ 0x1009737eb
// > SFXFolderPickerPopup::updateShareHint @ 0x100973928
// > sub_1009739B0 @ 0x100973baa
// > sub_100973BD0 @ 0x100973c52
// > SFXFolderPickerPopup::setTextPopupClosed @ 0x100973e6d
// > sub_100997F60 @ 0x100997f95
// > sub_100997F60 @ 0x100997fac
// > sub_100997F60 @ 0x100997fc3
// > sub_1009A16E0 @ 0x1009a192c
// > sub_1009A1CB0 @ 0x1009a1ef9
// > sub_1009A24F0 @ 0x1009a26df
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:19:39 +0000
//
void __fastcall ButtonSprite::updateBGImage(__int64 a1, __int64 a2)
{
__int64 v3; // rdi
__int64 v4; // r14
const std::string::value_type *v5; // rsi
__int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // rax
_BYTE v9[40]; // [rsp+8h] [rbp-28h] BYREF
v3 = *(_QWORD *)(a1 + 648);
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 536LL))(v3);
sub_100278270(v9, 0.0, 0.0, COERCE_DOUBLE(1109393408), COERCE_DOUBLE(1109393408));
v4 = cocos2d::extension::CCScale9Sprite::create_2(a2, v9);
*(_QWORD *)(a1 + 648) = v4;
sub_100278260(v9, COERCE_DOUBLE(1098907648), COERCE_DOUBLE(1098907648));
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 320LL))(v4, v9);
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 648), 0);
if ( *(_DWORD *)(a1 + 596) == 1 )
{
if ( (*(_BYTE *)(a1 + 672) & 1) != 0 )
v5 = *(const std::string::value_type **)(a1 + 688);
else
v5 = (const std::string::value_type *)(a1 + 673);
ButtonSprite::setString(a1, v5);
}
else
{
ButtonSprite::updateSpriteBGSize(a1);
}
}
else
{
v6 = *(_QWORD *)(a1 + 640);
if ( v6 )
{
v7 = cocos2d::CCTextureCache::sharedTextureCache();
v8 = cocos2d::CCTextureCache::addImage(v7, a2, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1064LL))(v6, v8);
}
}
}