//
// sub_1003A426C from 0x1003a426c to 0x1003a42bc (80 bytes)
//
// 8 xrefs:
// > CommentCell::loadFromComment @ 0x10012b230
// > GJScoreCell::loadFromScore @ 0x10012ce60
// > GJLevelScoreCell::loadFromScore @ 0x10012e2a0
// > GJThreadCell::loadFromThread @ 0x10012fe74
// > GJCompactUserCell::buildUserRow @ 0x1001392e4
// > ProfilePage::loadPageFromUserInfo @ 0x10022be84
// > ThreadViewPopup::mountVirtualRow @ 0x100500380
// > sub_1005101EC @ 0x10051027c
//
// This function is hookable on this platform (idp: arm, 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 11:03:48 +0000
//
__int64 __fastcall sub_1003A426C(__int64 result, __int64 a2)
{
__int64 v2; // x19
__int64 v4; // x0
char v5; // w8
v2 = result;
if ( (a2 & 0x80000000) != 0 )
{
v5 = 0;
}
else
{
v4 = GameManager::sharedState(result);
result = GameManager::colorForIdx(v4, a2);
*(_WORD *)(v2 + 669) = result;
*(_BYTE *)(v2 + 671) = BYTE2(result);
v5 = 1;
}
*(_BYTE *)(v2 + 668) = v5;
return result;
}