//
// sub_100873590 from 0x100873590 to 0x1008735cf (63 bytes)
//
// 19 xrefs:
// > GJAccountManager::getShaPassword @ 0x1000a2ea3
// > GameManager::recountUserStats @ 0x10036ee2b
// > GameLevelManager::onGetOnlineLevelsCompleted @ 0x100523af7
// > GameLevelManager::onGetMapPacksCompleted @ 0x100524595
// > GameLevelManager::onGetGJRewardsCompleted @ 0x10052c57e
// > sub_10052CE00 @ 0x10052d1e0
// > GameLevelManager::uploadLevel @ 0x100555b5e
// > GameLevelManager::uploadLevelList @ 0x10055a112
// > GameLevelManager::downloadLevel @ 0x10055e946
// > sub_10055F180 @ 0x10055fc3e
// > sub_10055F180 @ 0x10055ff87
// > sub_100560AF0 @ 0x100560c89
// > GameLevelManager::rateStars @ 0x1005617ae
// > GameLevelManager::updateUserScore @ 0x10056442c
// > GameLevelManager::getLevelLeaderboard @ 0x100566511
// > GameLevelManager::uploadComment @ 0x10056c9ef
// > sub_100577350 @ 0x10057771a
// > GameLevelManager::likeItem @ 0x10057eaee
// > GJMultiplayerManager::uploadComment @ 0x10073ad6e
//
// 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:36:51 +0000
//
__int64 __fastcall sub_100873590(__int64 a1, __int64 a2)
{
__int64 result; // rax
bool v3; // cf
result = 21;
do
{
*(_BYTE *)(a2 + 2 * result - 4) = a0123456789abcd_4[*(unsigned __int8 *)(a1 + result - 2) >> 4];
*(_BYTE *)(a2 + 2 * result - 3) = a0123456789abcd_4[*(_BYTE *)(a1 + result - 2) & 0xF];
v3 = result-- == 1;
}
while ( !v3 && result != 1 );
*(_BYTE *)(a2 + 40) = 0;
return result;
}