//
// GJItemIcon::darkenStoreItem_1 from 0x140383d10 to 0x140383d8e (126 bytes)
//
// 2 xrefs:
// > GJShopLayer::didPurchaseItem @ 0x1403b2ad6
// > ??> @ 0x140922a30
//
// 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 11:31:06 +0000
//
__int64 __fastcall GJItemIcon::darkenStoreItem_1(__int64 a1, int a2)
{
int v3; // edx
int v4; // edx
int v5; // edx
int v6; // edx
char v7; // cl
__int16 v9; // [rsp+38h] [rbp+10h]
__int16 v10; // [rsp+40h] [rbp+18h] BYREF
char v11; // [rsp+42h] [rbp+1Ah]
v3 = a2 - 1;
if ( !v3 )
{
v9 = 7690;
goto LABEL_12;
}
v4 = v3 - 1;
if ( v4 )
{
v5 = v4 - 1;
if ( v5 )
{
v6 = v5 - 1;
if ( v6 )
{
if ( v6 != 1 )
{
v9 = 7740;
LABEL_12:
v7 = 20;
goto LABEL_13;
}
v9 = 12850;
v7 = 50;
}
else
{
v9 = 7700;
v7 = 50;
}
}
else
{
v9 = 5140;
v7 = 40;
}
}
else
{
v9 = 5665;
v7 = 66;
}
LABEL_13:
v11 = v7;
v10 = v9;
return GJItemIcon::darkenStoreItem(a1, &v10);
}