//
// sub_583094 from 0x583094 to 0x583164 (208 bytes)
//
// 11 xrefs:
// > GameToolbox::pointsToString @ 0x5879a8
// > GameToolbox::pointsToString @ 0x587b5c
// > ColorSelectPopup::colorToHex @ 0x7402f4
// > ColorSelectPopup::colorToHex @ 0x740364
// > GameStatsManager::createSpecialChestItems @ 0x7c1a64
// > GameStatsManager::createSpecialChestItems @ 0x7c29f8
// > PurchaseItemPopup::init @ 0x9302ac
// > GJShopLayer::showCantAffordMessage @ 0x930ba0
// > GJShopLayer::showCantAffordMessage @ 0x930c2c
// > GJPathPage::showCantAffordMessage @ 0xa719d8
// > GJPathPage::showCantAffordMessage @ 0xa71a64
//
// 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
//
_QWORD *__usercall sub_583094@(const char *a1@, _QWORD *a2@, _QWORD *a3@)
{
size_t v6; // x22
v6 = strlen(a1);
*a3 = &byte_124B6C8;
sub_D15888(a3, v6 + *(_QWORD *)(*a2 - 24LL));
sub_D15FD4(a3, a1, v6);
sub_D15E14(a3, a2);
return a3;
}