{"type": "func", "start": 4295815072, "end": 4295815132, "name": "GJGameLevel::getLengthKey", "pseudocode": "// \n// GJGameLevel::getLengthKey from 0x1000cefa0 to 0x1000cefdc (60 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::updateLevelSaveInfo @ 0x100404e38\n// > EditorPauseLayer::init @ 0x100443534\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\n__int64 __fastcall GJGameLevel::getLengthKey(unsigned int a1, char a2)\n{\n  int v2; // w11\n  int v3; // w10\n  unsigned int v4; // w9\n\n  if ( a1 < 0x78 )\n    v2 = 3;\n  else\n    v2 = 4;\n  if ( a1 >= 0x3C )\n    v3 = v2;\n  else\n    v3 = 2;\n  if ( a1 >= 0x1E )\n    v4 = v3;\n  else\n    v4 = 1;\n  if ( (int)a1 < 10 )\n    v4 = 0;\n  if ( (a2 & 1) != 0 )\n    return 5;\n  else\n    return v4;\n}", "assembly": "; \n; GJGameLevel::getLengthKey from 0x1000cefa0 to 0x1000cefdc (60 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::updateLevelSaveInfo @ 0x100404e38\n; > EditorPauseLayer::init @ 0x100443534\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; \nMOV             W8, #5                                                 ; +0x0, 0x1000cefa0\nMOV             W9, #1                                                 ; +0x4, 0x1000cefa4\nMOV             W10, #2                                                ; +0x8, 0x1000cefa8\nCMP             W0, #0x78 ; 'x'                                        ; +0xc, 0x1000cefac\nMOV             W11, #3                                                ; +0x10, 0x1000cefb0\nCINC            W11, W11, CS                                           ; +0x14, 0x1000cefb4\nCMP             W0, #0x3C ; '<'                                        ; +0x18, 0x1000cefb8\nCSEL            W10, W10, W11, CC                                      ; +0x1c, 0x1000cefbc\nCMP             W0, #0x1E                                              ; +0x20, 0x1000cefc0\nCSEL            W9, W9, W10, CC                                        ; +0x24, 0x1000cefc4\nCMP             W0, #0xA                                               ; +0x28, 0x1000cefc8\nCSEL            W9, WZR, W9, LT                                        ; +0x2c, 0x1000cefcc\nTST             W1, #1                                                 ; +0x30, 0x1000cefd0\nCSEL            W0, W8, W9, NE                                         ; +0x34, 0x1000cefd4\nRET                                                                    ; +0x38, 0x1000cefd8", "xrefs": ["LevelEditorLayer::updateLevelSaveInfo @ 0x100404e38", "EditorPauseLayer::init @ 0x100443534"], "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"}