//
// GJBaseGameLayer::getBumpMod from 0x58f7a0 to 0x58f840 (160 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::bumpPlayer @ 0x5a4aae
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:04 +0000
//
float __fastcall GJBaseGameLayer::getBumpMod(GJBaseGameLayer *this, PlayerObject *a2, int a3)
{
int v3; // s15
int v4; // s14
bool v5; // nf
if ( a3 == 9 )
{
if ( *((_BYTE *)a2 + 1953) )
{
v3 = 1051931443;
}
else if ( *((_BYTE *)a2 + 1954) )
{
v3 = 1053609165;
}
else if ( *((_BYTE *)a2 + 1955) )
{
v3 = 1060320051;
}
else
{
v3 = 1060320051;
if ( !*((_BYTE *)a2 + 1958) )
v3 = 1059481190;
}
}
else if ( a3 == 34 )
{
if ( *((_BYTE *)a2 + 1953) )
{
v4 = 1059145646;
v5 = *((float *)a2 + 502) < 1.0;
v3 = 1064514355;
}
else
{
if ( !*((_BYTE *)a2 + 1954) )
{
v3 = 1.25;
return *(float *)&v3;
}
v4 = 1058642330;
v3 = 1065017672;
v5 = *((float *)a2 + 502) < 1.0;
}
if ( !v5 )
v3 = v4;
}
else
{
v3 = 1.0;
}
return *(float *)&v3;
}