//
// sub_100505100 from 0x100505100 to 0x10050514e (78 bytes)
//
// 1 xrefs:
// > GJRateLevelLayer::init @ 0x100504a95
//
// 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:31:31 +0000
//
__int64 __fastcall sub_100505100(__int64 a1)
{
char v1; // al
__int64 v2; // rdi
_WORD v4[2]; // [rsp+Ch] [rbp-4h] BYREF
v1 = *(_BYTE *)(a1 + 1084);
*(_BYTE *)(a1 + 1084) = v1 ^ 1;
v2 = *(_QWORD *)(a1 + 1088);
if ( v1 )
{
memset(v4, 50, 3);
}
else
{
LOBYTE(v4[1]) = -1;
v4[0] = -1;
}
return (*(__int64 (__fastcall **)(__int64, _WORD *))(*(_QWORD *)v2 + 960LL))(v2, v4);
}