; ; GJGameLevel::getAverageDifficulty from 0x14016cd30 to 0x14016cd96 (102 bytes) ; ; 3 xrefs: ; > LevelCell::loadCustomLevelCell @ 0x1400af5b9 ; > LevelInfoLayer::updateLabelValues @ 0x1402ffa74 ; > @ 0x1406cadb8 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; sub rsp, 28h ; +0x0, 0x14016cd30 mov eax, [rcx+2BCh] ; +0x4, 0x14016cd34 cmp eax, 5 ; +0xa, 0x14016cd3a jge short loc_14016CD46 ; +0xd, 0x14016cd3d xor eax, eax ; +0xf, 0x14016cd3f add rsp, 28h ; +0x11, 0x14016cd41 retn ; +0x15, 0x14016cd45 movd xmm1, dword ptr [rcx+2C0h] ; +0x16, 0x14016cd46 movd xmm0, eax ; +0x1e, 0x14016cd4e cvtdq2ps xmm0, xmm0 ; +0x22, 0x14016cd52 cvtdq2ps xmm1, xmm1 ; +0x25, 0x14016cd55 divss xmm1, xmm0 ; +0x28, 0x14016cd58 xorps xmm0, xmm0 ; +0x2c, 0x14016cd5c comiss xmm1, xmm0 ; +0x2f, 0x14016cd5f jb short loc_14016CD7D ; +0x32, 0x14016cd62 addss xmm1, cs:dword_140622B08 ; +0x34, 0x14016cd64 movaps xmm0, xmm1; X ; +0x3c, 0x14016cd6c call floorf ; +0x3f, 0x14016cd6f cvttss2si eax, xmm0 ; +0x44, 0x14016cd74 add rsp, 28h ; +0x48, 0x14016cd78 retn ; +0x4c, 0x14016cd7c subss xmm1, cs:dword_140622B08 ; +0x4d, 0x14016cd7d movaps xmm0, xmm1; X ; +0x55, 0x14016cd85 call ceilf ; +0x58, 0x14016cd88 cvttss2si eax, xmm0 ; +0x5d, 0x14016cd8d add rsp, 28h ; +0x61, 0x14016cd91 retn ; +0x65, 0x14016cd95