//
// sub_1003DCA04 from 0x1003dca04 to 0x1003dca54 (80 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::init @ 0x100384298
// > SecretRewardsLayer::onGoldChest @ 0x100384eb0
//
// 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:04:19 +0000
//
__int64 __fastcall sub_1003DCA04(__int64 a1)
{
int v2; // w21
__int64 v3; // x19
v2 = 30;
v3 = 6001;
while ( sub_1003D455C(a1, v3) )
{
v3 = (unsigned int)(v3 + 1);
if ( !--v2 )
return 0;
}
return v3;
}