{"type": "func", "start": 4300586144, "end": 4300586314, "name": "GJGameLevel::lengthKeyToString", "pseudocode": "// \n// GJGameLevel::lengthKeyToString from 0x10055bca0 to 0x10055bd4a (170 bytes)\n// \n// 6 xrefs:\n// > EditLevelLayer::setupLevelInfo @ 0x1001fc4a7\n// > LevelCell::loadLocalLevelCell @ 0x10024f057\n// > LevelCell::loadCustomLevelCell @ 0x10025107a\n// > EditorPauseLayer::init @ 0x100291696\n// > LevelInfoLayer::updateLabelValues @ 0x1002c2e89\n// > LevelSearchLayer::init @ 0x1006299b6\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_BYTE *__fastcall GJGameLevel::lengthKeyToString(_BYTE *a1, int a2)\n{\n  _BYTE *result; // rax\n  _DWORD *v3; // rcx\n\n  result = a1;\n  v3 = a1 + 1;\n  switch ( a2 )\n  {\n    case 0:\n      *a1 = 8;\n      strcpy(a1 + 1, \"Tiny\");\n      break;\n    case 1:\n      *a1 = 10;\n      a1[5] = 116;\n      *v3 = 1919903827;\n      a1[6] = 0;\n      break;\n    case 2:\n      *a1 = 12;\n      strcpy(a1 + 1, \"Medium\");\n      break;\n    case 3:\n      *a1 = 8;\n      strcpy(a1 + 1, \"Long\");\n      break;\n    case 5:\n      *a1 = 10;\n      a1[5] = 46;\n      *v3 = 1952541776;\n      a1[6] = 0;\n      break;\n    default:\n      *a1 = 4;\n      strcpy(a1 + 1, \"XL\");\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJGameLevel::lengthKeyToString from 0x10055bca0 to 0x10055bd4a (170 bytes)\n; \n; 6 xrefs:\n; > EditLevelLayer::setupLevelInfo @ 0x1001fc4a7\n; > LevelCell::loadLocalLevelCell @ 0x10024f057\n; > LevelCell::loadCustomLevelCell @ 0x10025107a\n; > EditorPauseLayer::init @ 0x100291696\n; > LevelInfoLayer::updateLabelValues @ 0x1002c2e89\n; > LevelSearchLayer::init @ 0x1006299b6\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\npush    rbp                                                            ; +0x0, 0x10055bca0\nmov     rbp, rsp                                                       ; +0x1, 0x10055bca1\nmov     rax, rdi                                                       ; +0x4, 0x10055bca4\ncmp     esi, 5; switch 6 cases                                         ; +0x7, 0x10055bca7\nja      short def_10055BCC0; jumptable 000000010055BCC0 default case, case 4 ; +0xa, 0x10055bcaa\nlea     rcx, [rax+1]                                                   ; +0xc, 0x10055bcac\nmov     edx, esi                                                       ; +0x10, 0x10055bcb0\nlea     rsi, jpt_10055BCC0                                             ; +0x12, 0x10055bcb2\nmovsxd  rdx, (jpt_10055BCC0 - 10055BD4Ch)[rsi+rdx*4]                   ; +0x19, 0x10055bcb9\nadd     rdx, rsi                                                       ; +0x1d, 0x10055bcbd\njmp     rdx; switch jump                                               ; +0x20, 0x10055bcc0\nmov     byte ptr [rax], 8; jumptable 000000010055BCC0 case 0           ; +0x22, 0x10055bcc2\nmov     dword ptr [rax+1], 796E6954h                                   ; +0x25, 0x10055bcc5\nmov     ecx, 5                                                         ; +0x2c, 0x10055bccc\nmov     byte ptr [rax+rcx], 0                                          ; +0x31, 0x10055bcd1\npop     rbp                                                            ; +0x35, 0x10055bcd5\nretn                                                                   ; +0x36, 0x10055bcd6\nmov     byte ptr [rax], 4; jumptable 000000010055BCC0 default case, case 4 ; +0x37, 0x10055bcd7\nmov     word ptr [rax+1], 4C58h                                        ; +0x3a, 0x10055bcda\nmov     ecx, 3                                                         ; +0x40, 0x10055bce0\nmov     byte ptr [rax+rcx], 0                                          ; +0x45, 0x10055bce5\npop     rbp                                                            ; +0x49, 0x10055bce9\nretn                                                                   ; +0x4a, 0x10055bcea\nmov     byte ptr [rax], 8; jumptable 000000010055BCC0 case 3           ; +0x4b, 0x10055bceb\nmov     dword ptr [rax+1], 676E6F4Ch                                   ; +0x4e, 0x10055bcee\nmov     ecx, 5                                                         ; +0x55, 0x10055bcf5\nmov     byte ptr [rax+rcx], 0                                          ; +0x5a, 0x10055bcfa\npop     rbp                                                            ; +0x5e, 0x10055bcfe\nretn                                                                   ; +0x5f, 0x10055bcff\nmov     byte ptr [rax], 0Ah; jumptable 000000010055BCC0 case 1         ; +0x60, 0x10055bd00\nmov     byte ptr [rcx+4], 74h ; 't'                                    ; +0x63, 0x10055bd03\nmov     dword ptr [rcx], 726F6853h                                     ; +0x67, 0x10055bd07\nmov     ecx, 6                                                         ; +0x6d, 0x10055bd0d\nmov     byte ptr [rax+rcx], 0                                          ; +0x72, 0x10055bd12\npop     rbp                                                            ; +0x76, 0x10055bd16\nretn                                                                   ; +0x77, 0x10055bd17\nmov     byte ptr [rax], 0Ch; jumptable 000000010055BCC0 case 2         ; +0x78, 0x10055bd18\nmov     word ptr [rcx+4], 6D75h                                        ; +0x7b, 0x10055bd1b\nmov     dword ptr [rcx], 6964654Dh                                     ; +0x81, 0x10055bd21\nmov     ecx, 7                                                         ; +0x87, 0x10055bd27\nmov     byte ptr [rax+rcx], 0                                          ; +0x8c, 0x10055bd2c\npop     rbp                                                            ; +0x90, 0x10055bd30\nretn                                                                   ; +0x91, 0x10055bd31\nmov     byte ptr [rax], 0Ah; jumptable 000000010055BCC0 case 5         ; +0x92, 0x10055bd32\nmov     byte ptr [rcx+4], 2Eh ; '.'                                    ; +0x95, 0x10055bd35\nmov     dword ptr [rcx], 74616C50h                                     ; +0x99, 0x10055bd39\nmov     ecx, 6                                                         ; +0x9f, 0x10055bd3f\nmov     byte ptr [rax+rcx], 0                                          ; +0xa4, 0x10055bd44\npop     rbp                                                            ; +0xa8, 0x10055bd48\nretn                                                                   ; +0xa9, 0x10055bd49", "xrefs": ["EditLevelLayer::setupLevelInfo @ 0x1001fc4a7", "LevelCell::loadLocalLevelCell @ 0x10024f057", "LevelCell::loadCustomLevelCell @ 0x10025107a", "EditorPauseLayer::init @ 0x100291696", "LevelInfoLayer::updateLabelValues @ 0x1002c2e89", "LevelSearchLayer::init @ 0x1006299b6"], "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"}