{"type": "func", "start": 3953844, "end": 3953884, "name": "GJGameLevel::getLengthKey", "pseudocode": "// \n// GJGameLevel::getLengthKey from 0x3c54b4 to 0x3c54dc (40 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::init @ 0x3ff918\n// > EditorPauseLayer::saveLevel @ 0x4013ee\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  if ( a2 )\n    return 5;\n  if ( a1 <= 9 )\n    return 0;\n  if ( a1 <= 29 )\n    return 1;\n  if ( a1 <= 59 )\n    return 2;\n  if ( a1 >= 120 )\n    return 4;\n  return 3;\n}", "assembly": "; \n; GJGameLevel::getLengthKey from 0x3c54b4 to 0x3c54dc (40 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::init @ 0x3ff918\n; > EditorPauseLayer::saveLevel @ 0x4013ee\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\nCBNZ            R1, loc_3C54CC                                         ; +0x0, 0x3c54b4\nCMP             R0, #9                                                 ; +0x2, 0x3c54b6\nBLE             loc_3C54D0                                             ; +0x4, 0x3c54b8\nCMP             R0, #0x1D                                              ; +0x6, 0x3c54ba\nBLE             loc_3C54D4                                             ; +0x8, 0x3c54bc\nCMP             R0, #0x3B ; ';'                                        ; +0xa, 0x3c54be\nBLE             loc_3C54D8                                             ; +0xc, 0x3c54c0\nCMP             R0, #0x78 ; 'x'                                        ; +0xe, 0x3c54c2\nITE LT                                                                 ; +0x10, 0x3c54c4\nMOVLT           R0, #3                                                 ; +0x12, 0x3c54c6\nMOVGE           R0, #4                                                 ; +0x14, 0x3c54c8\nBX              LR                                                     ; +0x16, 0x3c54ca\nMOVS            R0, #5                                                 ; +0x18, 0x3c54cc\nBX              LR                                                     ; +0x1a, 0x3c54ce\nMOV             R0, R1                                                 ; +0x1c, 0x3c54d0\nBX              LR                                                     ; +0x1e, 0x3c54d2\nMOVS            R0, #1                                                 ; +0x20, 0x3c54d4\nBX              LR                                                     ; +0x22, 0x3c54d6\nMOVS            R0, #2                                                 ; +0x24, 0x3c54d8\nBX              LR                                                     ; +0x26, 0x3c54da", "xrefs": ["EditorPauseLayer::init @ 0x3ff918", "EditorPauseLayer::saveLevel @ 0x4013ee"], "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"}