//
// sub_1005101EC from 0x1005101ec to 0x1005102c8 (220 bytes)
//
// 2 xrefs:
// > InvitesPopup::buildRows @ 0x10050f0d8
// > InvitesPopup::buildRows @ 0x10050f4a0
//
// 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:07:02 +0000
//
char *__fastcall sub_1005101EC(_DWORD *a1, float a2)
{
char *v4; // x19
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
int v8; // w1
__int16 v10; // [xsp+Ch] [xbp-24h] BYREF
char v11; // [xsp+Eh] [xbp-22h]
v4 = SimplePlayer::create(1);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v4 + 160LL))(v4, a2);
v5 = GameManager::sharedState();
v6 = GameManager::colorForIdx(v5, a1[78]);
v10 = v6;
v11 = BYTE2(v6);
(*(void (__fastcall **)(char *, __int16 *))(*(_QWORD *)v4 + 960LL))(v4, &v10);
v7 = GameManager::sharedState();
GameManager::colorForIdx(v7, a1[79]);
SimplePlayer::setSecondColor((__int64)v4);
sub_1003A426C((__int64)v4, (unsigned int)a1[80]);
v4[660] = a1[82] == 2;
if ( (int)a1[77] <= 1 )
v8 = 1;
else
v8 = a1[77];
SimplePlayer::updatePlayerFrame((__int64)v4, v8, (unsigned int)a1[81]);
SimplePlayer::updateColors((__int64)v4);
return v4;
}