{"type": "func", "start": 4300750608, "end": 4300750778, "name": "GJGameLevel::lengthKeyToString", "pseudocode": "// \n// GJGameLevel::lengthKeyToString from 0x100583f10 to 0x100583fba (170 bytes)\n// \n// 6 xrefs:\n// > EditLevelLayer::setupLevelInfo @ 0x1001ded67\n// > LevelCell::loadLocalLevelCell @ 0x100236f56\n// > LevelCell::loadCustomLevelCell @ 0x10023960a\n// > EditorPauseLayer::init @ 0x10027cf86\n// > LevelInfoLayer::updateLabelValues @ 0x1002af955\n// > LevelSearchLayer::init @ 0x1007063d6\n// \n// This function is hookable on this platform (idp: pc, 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 12:32:21 +0000\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 0x100583f10 to 0x100583fba (170 bytes)\n; \n; 6 xrefs:\n; > EditLevelLayer::setupLevelInfo @ 0x1001ded67\n; > LevelCell::loadLocalLevelCell @ 0x100236f56\n; > LevelCell::loadCustomLevelCell @ 0x10023960a\n; > EditorPauseLayer::init @ 0x10027cf86\n; > LevelInfoLayer::updateLabelValues @ 0x1002af955\n; > LevelSearchLayer::init @ 0x1007063d6\n; \n; This function is hookable on this platform (idp: pc, 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 12:32:21 +0000\n; \npush    rbp                                                            ; +0x0, 0x100583f10\nmov     rbp, rsp                                                       ; +0x1, 0x100583f11\nmov     rax, rdi                                                       ; +0x4, 0x100583f14\ncmp     esi, 5; switch 6 cases                                         ; +0x7, 0x100583f17\nja      short def_100583F30; jumptable 0000000100583F30 default case, case 4 ; +0xa, 0x100583f1a\nlea     rcx, [rax+1]                                                   ; +0xc, 0x100583f1c\nmov     edx, esi                                                       ; +0x10, 0x100583f20\nlea     rsi, jpt_100583F30                                             ; +0x12, 0x100583f22\nmovsxd  rdx, (jpt_100583F30 - 100583FBCh)[rsi+rdx*4]                   ; +0x19, 0x100583f29\nadd     rdx, rsi                                                       ; +0x1d, 0x100583f2d\njmp     rdx; switch jump                                               ; +0x20, 0x100583f30\nmov     byte ptr [rax], 8; jumptable 0000000100583F30 case 0           ; +0x22, 0x100583f32\nmov     dword ptr [rax+1], 796E6954h                                   ; +0x25, 0x100583f35\nmov     ecx, 5                                                         ; +0x2c, 0x100583f3c\nmov     byte ptr [rax+rcx], 0                                          ; +0x31, 0x100583f41\npop     rbp                                                            ; +0x35, 0x100583f45\nretn                                                                   ; +0x36, 0x100583f46\nmov     byte ptr [rax], 4; jumptable 0000000100583F30 default case, case 4 ; +0x37, 0x100583f47\nmov     word ptr [rax+1], 4C58h                                        ; +0x3a, 0x100583f4a\nmov     ecx, 3                                                         ; +0x40, 0x100583f50\nmov     byte ptr [rax+rcx], 0                                          ; +0x45, 0x100583f55\npop     rbp                                                            ; +0x49, 0x100583f59\nretn                                                                   ; +0x4a, 0x100583f5a\nmov     byte ptr [rax], 8; jumptable 0000000100583F30 case 3           ; +0x4b, 0x100583f5b\nmov     dword ptr [rax+1], 676E6F4Ch                                   ; +0x4e, 0x100583f5e\nmov     ecx, 5                                                         ; +0x55, 0x100583f65\nmov     byte ptr [rax+rcx], 0                                          ; +0x5a, 0x100583f6a\npop     rbp                                                            ; +0x5e, 0x100583f6e\nretn                                                                   ; +0x5f, 0x100583f6f\nmov     byte ptr [rax], 0Ah; jumptable 0000000100583F30 case 1         ; +0x60, 0x100583f70\nmov     byte ptr [rcx+4], 74h ; 't'                                    ; +0x63, 0x100583f73\nmov     dword ptr [rcx], 726F6853h                                     ; +0x67, 0x100583f77\nmov     ecx, 6                                                         ; +0x6d, 0x100583f7d\nmov     byte ptr [rax+rcx], 0                                          ; +0x72, 0x100583f82\npop     rbp                                                            ; +0x76, 0x100583f86\nretn                                                                   ; +0x77, 0x100583f87\nmov     byte ptr [rax], 0Ch; jumptable 0000000100583F30 case 2         ; +0x78, 0x100583f88\nmov     word ptr [rcx+4], 6D75h                                        ; +0x7b, 0x100583f8b\nmov     dword ptr [rcx], 6964654Dh                                     ; +0x81, 0x100583f91\nmov     ecx, 7                                                         ; +0x87, 0x100583f97\nmov     byte ptr [rax+rcx], 0                                          ; +0x8c, 0x100583f9c\npop     rbp                                                            ; +0x90, 0x100583fa0\nretn                                                                   ; +0x91, 0x100583fa1\nmov     byte ptr [rax], 0Ah; jumptable 0000000100583F30 case 5         ; +0x92, 0x100583fa2\nmov     byte ptr [rcx+4], 2Eh ; '.'                                    ; +0x95, 0x100583fa5\nmov     dword ptr [rcx], 74616C50h                                     ; +0x99, 0x100583fa9\nmov     ecx, 6                                                         ; +0x9f, 0x100583faf\nmov     byte ptr [rax+rcx], 0                                          ; +0xa4, 0x100583fb4\npop     rbp                                                            ; +0xa8, 0x100583fb8\nretn                                                                   ; +0xa9, 0x100583fb9", "xrefs": ["EditLevelLayer::setupLevelInfo @ 0x1001ded67", "LevelCell::loadLocalLevelCell @ 0x100236f56", "LevelCell::loadCustomLevelCell @ 0x10023960a", "EditorPauseLayer::init @ 0x10027cf86", "LevelInfoLayer::updateLabelValues @ 0x1002af955", "LevelSearchLayer::init @ 0x1007063d6"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}