{"type": "func", "start": 7347152, "end": 7347440, "name": "GJGameLevel::lengthKeyToString", "pseudocode": "// \n// GJGameLevel::lengthKeyToString from 0x701bd0 to 0x701cf0 (288 bytes)\n// \n// 7 xrefs:\n// > LevelCell::loadLocalLevelCell @ 0x60f520\n// > LevelCell::loadCustomLevelCell @ 0x6109d8\n// > LevelSearchLayer::init @ 0x6d2994\n// > LevelInfoLayer::updateLabelValues @ 0x6d99fc\n// > EditLevelLayer::setupLevelInfo @ 0x6df454\n// > EditorPauseLayer::init @ 0x78b6d4\n// > <???> @ 0xb7e10\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\n__int64 *__usercall GJGameLevel::lengthKeyToString@<X0>(__int64 *__return_ptr a1@<X8>, GJGameLevel *this@<X0>)\n{\n  __int64 *v2; // x8\n\n  switch ( (int)this )\n  {\n    case 0:\n      sub_D153B8((int)a1, \"Tiny\");\n      v2 = a1;\n      break;\n    case 1:\n      sub_D153B8((int)a1, \"Short\");\n      v2 = a1;\n      break;\n    case 2:\n      sub_D153B8((int)a1, \"Medium\");\n      v2 = a1;\n      break;\n    case 3:\n      sub_D153B8((int)a1, \"Long\");\n      v2 = a1;\n      break;\n    case 5:\n      sub_D153B8((int)a1, \"Plat.\");\n      v2 = a1;\n      break;\n    default:\n      sub_D153B8((int)a1, \"XL\");\n      v2 = a1;\n      break;\n  }\n  return v2;\n}", "assembly": "; \n; GJGameLevel::lengthKeyToString from 0x701bd0 to 0x701cf0 (288 bytes)\n; \n; 7 xrefs:\n; > LevelCell::loadLocalLevelCell @ 0x60f520\n; > LevelCell::loadCustomLevelCell @ 0x6109d8\n; > LevelSearchLayer::init @ 0x6d2994\n; > LevelInfoLayer::updateLabelValues @ 0x6d99fc\n; > EditLevelLayer::setupLevelInfo @ 0x6df454\n; > EditorPauseLayer::init @ 0x78b6d4\n; > <???> @ 0xb7e10\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x701bd0\nCMP             W0, #5; switch 6 cases                                 ; +0x4, 0x701bd4\nMOV             X29, SP                                                ; +0x8, 0x701bd8\nSTR             X19, [SP,#0x40+var_30]                                 ; +0xc, 0x701bdc\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x701be0\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x14, 0x701be4\nLDR             X1, [X1]                                               ; +0x18, 0x701be8\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x1c, 0x701bec\nB.LS            loc_701C34                                             ; +0x20, 0x701bf0\nADRP            X1, #aXl@PAGE; jumptable 0000000000701C48 default case, case 4 ; +0x24, 0x701bf4\nMOV             X0, X8; int                                            ; +0x28, 0x701bf8\nADD             X1, X1, #aXl@PAGEOFF; \"XL\"                             ; +0x2c, 0x701bfc\nADD             X2, X29, #0x40+var_10                                  ; +0x30, 0x701c00\nSTR             X8, [X29,#0x40+var_18]                                 ; +0x34, 0x701c04\nBL              sub_D153B8                                             ; +0x38, 0x701c08\nLDR             X8, [X29,#0x40+var_18]                                 ; +0x3c, 0x701c0c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x40, 0x701c10\nMOV             X0, X8                                                 ; +0x44, 0x701c14\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x48, 0x701c18\nLDR             X1, [X19]                                              ; +0x4c, 0x701c1c\nCMP             X2, X1                                                 ; +0x50, 0x701c20\nB.NE            loc_701CEC                                             ; +0x54, 0x701c24\nLDR             X19, [SP,#0x40+var_30]                                 ; +0x58, 0x701c28\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x5c, 0x701c2c\nRET                                                                    ; +0x60, 0x701c30\nADRL            X1, jpt_701C48                                         ; +0x64, 0x701c34\nLDRB            W0, [X1,W0,UXTW]                                       ; +0x6c, 0x701c3c\nADR             X1, loc_701C4C; jumptable 0000000000701C48 case 3      ; +0x70, 0x701c40\nADD             X0, X1, W0,SXTB#2                                      ; +0x74, 0x701c44\nBR              X0; switch jump                                        ; +0x78, 0x701c48\nADRP            X1, #(aRequestUriTooL+0x10)@PAGE; jumptable 0000000000701C48 case 3 ; +0x7c, 0x701c4c\nMOV             X0, X8; int                                            ; +0x80, 0x701c50\nADD             X1, X1, #(aRequestUriTooL+0x10)@PAGEOFF; char *        ; +0x84, 0x701c54\nADD             X2, X29, #0x40+var_10                                  ; +0x88, 0x701c58\nSTR             X8, [X29,#0x40+var_18]                                 ; +0x8c, 0x701c5c\nBL              sub_D153B8                                             ; +0x90, 0x701c60\nLDR             X8, [X29,#0x40+var_18]                                 ; +0x94, 0x701c64\nB               loc_701C10                                             ; +0x98, 0x701c68\nADRP            X1, #aPlat@PAGE; jumptable 0000000000701C48 case 5     ; +0x9c, 0x701c6c\nMOV             X0, X8; int                                            ; +0xa0, 0x701c70\nADD             X1, X1, #aPlat@PAGEOFF; \"Plat.\"                        ; +0xa4, 0x701c74\nADD             X2, X29, #0x40+var_10                                  ; +0xa8, 0x701c78\nSTR             X8, [X29,#0x40+var_18]                                 ; +0xac, 0x701c7c\nBL              sub_D153B8                                             ; +0xb0, 0x701c80\nLDR             X8, [X29,#0x40+var_18]                                 ; +0xb4, 0x701c84\nB               loc_701C10                                             ; +0xb8, 0x701c88\nADRP            X1, #aTiny@PAGE; jumptable 0000000000701C48 case 0     ; +0xbc, 0x701c8c\nMOV             X0, X8; int                                            ; +0xc0, 0x701c90\nADD             X1, X1, #aTiny@PAGEOFF; \"Tiny\"                         ; +0xc4, 0x701c94\nADD             X2, X29, #0x40+var_10                                  ; +0xc8, 0x701c98\nSTR             X8, [X29,#0x40+var_18]                                 ; +0xcc, 0x701c9c\nBL              sub_D153B8                                             ; +0xd0, 0x701ca0\nLDR             X8, [X29,#0x40+var_18]                                 ; +0xd4, 0x701ca4\nB               loc_701C10                                             ; +0xd8, 0x701ca8\nADRP            X1, #aShort@PAGE; jumptable 0000000000701C48 case 1    ; +0xdc, 0x701cac\nMOV             X0, X8; int                                            ; +0xe0, 0x701cb0\nADD             X1, X1, #aShort@PAGEOFF; \"Short\"                       ; +0xe4, 0x701cb4\nADD             X2, X29, #0x40+var_10                                  ; +0xe8, 0x701cb8\nSTR             X8, [X29,#0x40+var_18]                                 ; +0xec, 0x701cbc\nBL              sub_D153B8                                             ; +0xf0, 0x701cc0\nLDR             X8, [X29,#0x40+var_18]                                 ; +0xf4, 0x701cc4\nB               loc_701C10                                             ; +0xf8, 0x701cc8\nADRP            X1, #aMedium@PAGE; jumptable 0000000000701C48 case 2   ; +0xfc, 0x701ccc\nMOV             X0, X8; int                                            ; +0x100, 0x701cd0\nADD             X1, X1, #aMedium@PAGEOFF; \"Medium\"                     ; +0x104, 0x701cd4\nADD             X2, X29, #0x40+var_10                                  ; +0x108, 0x701cd8\nSTR             X8, [X29,#0x40+var_18]                                 ; +0x10c, 0x701cdc\nBL              sub_D153B8                                             ; +0x110, 0x701ce0\nLDR             X8, [X29,#0x40+var_18]                                 ; +0x114, 0x701ce4\nB               loc_701C10                                             ; +0x118, 0x701ce8\nBL              .__stack_chk_fail                                      ; +0x11c, 0x701cec", "xrefs": ["LevelCell::loadLocalLevelCell @ 0x60f520", "LevelCell::loadCustomLevelCell @ 0x6109d8", "LevelSearchLayer::init @ 0x6d2994", "LevelInfoLayer::updateLabelValues @ 0x6d99fc", "EditLevelLayer::setupLevelInfo @ 0x6df454", "EditorPauseLayer::init @ 0x78b6d4", "<???> @ 0xb7e10"], "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"}