//
// sub_100050DD8 from 0x100050dd8 to 0x100050e18 (64 bytes)
//
// 1 xrefs:
// > UILayer::refreshDpad @ 0x1000510ec
//
// 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 10:57:43 +0000
//
__int64 __fastcall sub_100050DD8(__int64 a1, int a2)
{
int v2; // w19
__int64 v3; // x0
__int64 v4; // x8
v2 = a2 + a1;
v3 = GameManager::sharedState(a1);
v4 = 1316;
if ( (unsigned int)(v2 - 1) < 4 )
v4 = 40LL * (unsigned int)(v2 - 1) + 1356;
return v3 + v4;
}