{"type": "func", "start": 7347076, "end": 7347152, "name": "GJGameLevel::getLengthKey", "pseudocode": "// \n// GJGameLevel::getLengthKey from 0x701b84 to 0x701bd0 (76 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::init @ 0x78b6cc\n// > EditorPauseLayer::saveLevel @ 0x78e348\n// > <???> @ 0x52e60\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::getLengthKey(int a1, bool a2)\n{\n  int result; // w0\n\n  result = 5;\n  if ( !a2 )\n  {\n    result = 0;\n    if ( a1 > 9 )\n    {\n      result = 1;\n      if ( a1 > 29 )\n      {\n        result = 2;\n        if ( a1 > 59 )\n        {\n          if ( a1 >= 120 )\n            return 4;\n          else\n            return 3;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJGameLevel::getLengthKey from 0x701b84 to 0x701bd0 (76 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::init @ 0x78b6cc\n; > EditorPauseLayer::saveLevel @ 0x78e348\n; > <???> @ 0x52e60\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\nUXTB            W1, W1                                                 ; +0x0, 0x701b84\nMOV             W2, W0                                                 ; +0x4, 0x701b88\nMOV             W0, #5                                                 ; +0x8, 0x701b8c\nCBZ             W1, loc_701B98                                         ; +0xc, 0x701b90\nRET                                                                    ; +0x10, 0x701b94\nCMP             W2, #9                                                 ; +0x14, 0x701b98\nMOV             W0, #0                                                 ; +0x18, 0x701b9c\nB.LE            locret_701B94                                          ; +0x1c, 0x701ba0\nCMP             W2, #0x1D                                              ; +0x20, 0x701ba4\nMOV             W0, #1                                                 ; +0x24, 0x701ba8\nB.LE            locret_701B94                                          ; +0x28, 0x701bac\nCMP             W2, #0x3B ; ';'                                        ; +0x2c, 0x701bb0\nMOV             W0, #2                                                 ; +0x30, 0x701bb4\nB.LE            locret_701B94                                          ; +0x34, 0x701bb8\nCMP             W2, #0x78 ; 'x'                                        ; +0x38, 0x701bbc\nMOV             W1, #4                                                 ; +0x3c, 0x701bc0\nMOV             W0, #3                                                 ; +0x40, 0x701bc4\nCSEL            W0, W0, W1, LT                                         ; +0x44, 0x701bc8\nRET                                                                    ; +0x48, 0x701bcc", "xrefs": ["EditorPauseLayer::init @ 0x78b6cc", "EditorPauseLayer::saveLevel @ 0x78e348", "<???> @ 0x52e60"], "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"}