//
// sub_10038528C from 0x10038528c to 0x1003852e4 (88 bytes)
//
// 1 xrefs:
// > SecretRewardsLayer::init @ 0x10038485c
//
// 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:32 +0000
//
__int64 __fastcall sub_10038528C(__int64 a1, __int64 a2)
{
__int64 v3; // x8
int v4; // w20
int v5; // w8
v3 = 552;
if ( *(_BYTE *)(a1 + 584) )
v3 = 544;
v4 = *(_DWORD *)(*(_QWORD *)(a1 + v3) + 588LL);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
v5 = 1;
else
v5 = -1;
return sub_1003852E4(a1, (unsigned int)(v5 + v4));
}