{"type": "func", "start": 4295815176, "end": 4295815220, "name": "GJGameLevel::getAverageDifficulty", "pseudocode": "// \n// GJGameLevel::getAverageDifficulty from 0x1000cf008 to 0x1000cf034 (44 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::updateLabelValues @ 0x10002cfd8\n// > LevelCell::loadCustomLevelCell @ 0x100134938\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:58:53 +0000\n// \n\nunsigned int __fastcall GJGameLevel::getAverageDifficulty(__int64 a1)\n{\n  int v1; // w8\n\n  v1 = *(_DWORD *)(a1 + 636);\n  if ( v1 >= 5 )\n    return llroundf((float)*(int *)(a1 + 640) / (float)(unsigned int)v1);\n  else\n    return 0;\n}", "assembly": "; \n; GJGameLevel::getAverageDifficulty from 0x1000cf008 to 0x1000cf034 (44 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::updateLabelValues @ 0x10002cfd8\n; > LevelCell::loadCustomLevelCell @ 0x100134938\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:58:53 +0000\n; \nLDR             W8, [X0,#0x27C]                                        ; +0x0, 0x1000cf008\nCMP             W8, #5                                                 ; +0x4, 0x1000cf00c\nB.GE            loc_1000CF01C                                          ; +0x8, 0x1000cf010\nMOV             W0, #0                                                 ; +0xc, 0x1000cf014\nRET                                                                    ; +0x10, 0x1000cf018\nLDR             S0, [X0,#0x280]                                        ; +0x14, 0x1000cf01c\nSCVTF           S0, S0                                                 ; +0x18, 0x1000cf020\nUCVTF           S1, W8                                                 ; +0x1c, 0x1000cf024\nFDIV            S0, S0, S1                                             ; +0x20, 0x1000cf028\nFCVTAS          W0, S0                                                 ; +0x24, 0x1000cf02c\nRET                                                                    ; +0x28, 0x1000cf030", "xrefs": ["LevelInfoLayer::updateLabelValues @ 0x10002cfd8", "LevelCell::loadCustomLevelCell @ 0x100134938"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}