{"type": "func", "start": 4295674540, "end": 4295674600, "name": "GJGameLevel::getLengthKey", "pseudocode": "// \n// GJGameLevel::getLengthKey from 0x1000acaac to 0x1000acae8 (60 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::init @ 0x10039becc\n// > EditorPauseLayer::saveLevel @ 0x10039e470\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::getLengthKey(int a1, bool a2)\n{\n  int v2; // w11\n  int v3; // w10\n  int v4; // w9\n\n  if ( (unsigned int)a1 < 0x78 )\n    v2 = 3;\n  else\n    v2 = 4;\n  if ( (unsigned int)a1 >= 0x3C )\n    v3 = v2;\n  else\n    v3 = 2;\n  if ( (unsigned int)a1 >= 0x1E )\n    v4 = v3;\n  else\n    v4 = 1;\n  if ( a1 < 10 )\n    v4 = 0;\n  if ( a2 )\n    return 5;\n  else\n    return v4;\n}", "assembly": "; \n; GJGameLevel::getLengthKey from 0x1000acaac to 0x1000acae8 (60 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::init @ 0x10039becc\n; > EditorPauseLayer::saveLevel @ 0x10039e470\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\nMOV             W8, #5                                                 ; +0x0, 0x1000acaac\nMOV             W9, #1                                                 ; +0x4, 0x1000acab0\nMOV             W10, #2                                                ; +0x8, 0x1000acab4\nCMP             W0, #0x78 ; 'x'                                        ; +0xc, 0x1000acab8\nMOV             W11, #3                                                ; +0x10, 0x1000acabc\nCINC            W11, W11, CS                                           ; +0x14, 0x1000acac0\nCMP             W0, #0x3C ; '<'                                        ; +0x18, 0x1000acac4\nCSEL            W10, W10, W11, CC                                      ; +0x1c, 0x1000acac8\nCMP             W0, #0x1E                                              ; +0x20, 0x1000acacc\nCSEL            W9, W9, W10, CC                                        ; +0x24, 0x1000acad0\nCMP             W0, #0xA                                               ; +0x28, 0x1000acad4\nCSEL            W9, WZR, W9, LT                                        ; +0x2c, 0x1000acad8\nTST             W1, #1                                                 ; +0x30, 0x1000acadc\nCSEL            W0, W8, W9, NE                                         ; +0x34, 0x1000acae0\nRET                                                                    ; +0x38, 0x1000acae4", "xrefs": ["EditorPauseLayer::init @ 0x10039becc", "EditorPauseLayer::saveLevel @ 0x10039e470"], "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"}