//
// GJGameLevel::getAverageDifficulty from 0x8050dc to 0x805108 (44 bytes)
//
// 4 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x746148
// > LevelInfoLayer::updateLabelValues @ 0x7e8898
// > GJRateLevelListLayer::impliedStarsForLevel @ 0x951ee8
// > ??> @ 0xcd258
//
// 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 12:54:45 +0000
//
__int64 __fastcall GJGameLevel::getAverageDifficulty(GJGameLevel *this)
{
int v1; // w2
unsigned int v2; // w1
v1 = *((_DWORD *)this + 159);
v2 = 0;
if ( v1 > 4 )
return llroundf((float)*((int *)this + 160) / (float)v1);
return v2;
}