{"type": "func", "start": 4295674644, "end": 4295674688, "name": "GJGameLevel::getAverageDifficulty", "pseudocode": "// \n// GJGameLevel::getAverageDifficulty from 0x1000acb14 to 0x1000acb40 (44 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::updateLabelValues @ 0x1000298a4\n// > LevelCell::loadCustomLevelCell @ 0x10010d808\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 __fastcall GJGameLevel::getAverageDifficulty(GJGameLevel *a1)\n{\n  int m_ratings; // w8\n\n  m_ratings = a1->m_ratings;\n  if ( m_ratings >= 5 )\n    return llroundf((float)a1->m_ratingsSum / (float)(unsigned int)m_ratings);\n  else\n    return 0;\n}", "assembly": "; \n; GJGameLevel::getAverageDifficulty from 0x1000acb14 to 0x1000acb40 (44 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::updateLabelValues @ 0x1000298a4\n; > LevelCell::loadCustomLevelCell @ 0x10010d808\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             W8, [X0,#0x274]                                        ; +0x0, 0x1000acb14\nCMP             W8, #5                                                 ; +0x4, 0x1000acb18\nB.GE            loc_1000ACB28                                          ; +0x8, 0x1000acb1c\nMOV             W0, #0                                                 ; +0xc, 0x1000acb20\nRET                                                                    ; +0x10, 0x1000acb24\nLDR             S0, [X0,#0x278]                                        ; +0x14, 0x1000acb28\nSCVTF           S0, S0                                                 ; +0x18, 0x1000acb2c\nUCVTF           S1, W8                                                 ; +0x1c, 0x1000acb30\nFDIV            S0, S0, S1                                             ; +0x20, 0x1000acb34\nFCVTAS          W0, S0                                                 ; +0x24, 0x1000acb38\nRET                                                                    ; +0x28, 0x1000acb3c", "xrefs": ["LevelInfoLayer::updateLabelValues @ 0x1000298a4", "LevelCell::loadCustomLevelCell @ 0x10010d808"], "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"}