{"type": "func", "start": 7347440, "end": 7347484, "name": "GJGameLevel::getAverageDifficulty", "pseudocode": "// \n// GJGameLevel::getAverageDifficulty from 0x701cf0 to 0x701d1c (44 bytes)\n// \n// 3 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x6103b8\n// > LevelInfoLayer::updateLabelValues @ 0x6d9bc4\n// > <???> @ 0x9bb38\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint GJGameLevel::getAverageDifficulty(GJGameLevel *a1)\n{\n  int m_ratings; // w2\n  int v2; // w1\n\n  m_ratings = a1->m_ratings;\n  v2 = 0;\n  if ( m_ratings > 4 )\n    return llroundf((float)a1->m_ratingsSum / (float)m_ratings);\n  return v2;\n}", "assembly": "; \n; GJGameLevel::getAverageDifficulty from 0x701cf0 to 0x701d1c (44 bytes)\n; \n; 3 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x6103b8\n; > LevelInfoLayer::updateLabelValues @ 0x6d9bc4\n; > <???> @ 0x9bb38\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDR             W2, [X0,#0x1E4]                                        ; +0x0, 0x701cf0\nMOV             W1, #0                                                 ; +0x4, 0x701cf4\nCMP             W2, #4                                                 ; +0x8, 0x701cf8\nB.LE            loc_701D14                                             ; +0xc, 0x701cfc\nLDR             W1, [X0,#0x1E8]                                        ; +0x10, 0x701d00\nSCVTF           S1, W2                                                 ; +0x14, 0x701d04\nSCVTF           S0, W1                                                 ; +0x18, 0x701d08\nFDIV            S0, S0, S1                                             ; +0x1c, 0x701d0c\nFCVTAS          W1, S0                                                 ; +0x20, 0x701d10\nMOV             W0, W1                                                 ; +0x24, 0x701d14\nRET                                                                    ; +0x28, 0x701d18", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x6103b8", "LevelInfoLayer::updateLabelValues @ 0x6d9bc4", "<???> @ 0x9bb38"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}