{"type": "func", "start": 5370203088, "end": 5370203428, "name": "GJGameLevel::lengthKeyToString", "pseudocode": "// \n// GJGameLevel::lengthKeyToString from 0x14016cbd0 to 0x14016cd24 (340 bytes)\n// \n// 7 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x1400b01d6\n// > LevelCell::loadLocalLevelCell @ 0x1400b1181\n// > EditLevelLayer::setupLevelInfo @ 0x1400d6d74\n// > EditorPauseLayer::init @ 0x1400da30b\n// > LevelInfoLayer::updateLabelValues @ 0x1402ff5e6\n// > LevelSearchLayer::init @ 0x14030d957\n// > <???> @ 0x1406cadac\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 __fastcall GJGameLevel::lengthKeyToString(__int64 a1, int a2)\n{\n  __int64 result; // rax\n\n  switch ( a2 )\n  {\n    case 0:\n      *(_OWORD *)a1 = 0;\n      *(_QWORD *)(a1 + 16) = 4;\n      *(_QWORD *)(a1 + 24) = 15;\n      strcpy((char *)a1, \"Tiny\");\n      result = a1;\n      break;\n    case 1:\n      *(_OWORD *)a1 = 0;\n      *(_QWORD *)(a1 + 16) = 5;\n      *(_QWORD *)(a1 + 24) = 15;\n      *(_DWORD *)a1 = 1919903827;\n      *(_BYTE *)(a1 + 4) = 116;\n      *(_BYTE *)(a1 + 5) = 0;\n      result = a1;\n      break;\n    case 2:\n      *(_OWORD *)a1 = 0;\n      *(_QWORD *)(a1 + 16) = 6;\n      *(_QWORD *)(a1 + 24) = 15;\n      strcpy((char *)a1, \"Medium\");\n      result = a1;\n      break;\n    case 3:\n      *(_OWORD *)a1 = 0;\n      *(_QWORD *)(a1 + 16) = 4;\n      *(_QWORD *)(a1 + 24) = 15;\n      strcpy((char *)a1, \"Long\");\n      result = a1;\n      break;\n    case 5:\n      *(_OWORD *)a1 = 0;\n      *(_QWORD *)(a1 + 16) = 5;\n      *(_QWORD *)(a1 + 24) = 15;\n      *(_DWORD *)a1 = 1952541776;\n      *(_BYTE *)(a1 + 4) = 46;\n      *(_BYTE *)(a1 + 5) = 0;\n      result = a1;\n      break;\n    default:\n      *(_OWORD *)a1 = 0;\n      *(_QWORD *)(a1 + 16) = 2;\n      *(_QWORD *)(a1 + 24) = 15;\n      strcpy((char *)a1, \"XL\");\n      result = a1;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJGameLevel::lengthKeyToString from 0x14016cbd0 to 0x14016cd24 (340 bytes)\n; \n; 7 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x1400b01d6\n; > LevelCell::loadLocalLevelCell @ 0x1400b1181\n; > EditLevelLayer::setupLevelInfo @ 0x1400d6d74\n; > EditorPauseLayer::init @ 0x1400da30b\n; > LevelInfoLayer::updateLabelValues @ 0x1402ff5e6\n; > LevelSearchLayer::init @ 0x14030d957\n; > <???> @ 0x1406cadac\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\nsub     rsp, 18h                                                       ; +0x0, 0x14016cbd0\nxor     r9d, r9d                                                       ; +0x4, 0x14016cbd4\ncmp     edx, 5; switch 6 cases                                         ; +0x7, 0x14016cbd7\nja      def_14016CBF5; jumptable 000000014016CBF5 default case, case 4 ; +0xa, 0x14016cbda\nmovsxd  rax, edx                                                       ; +0x10, 0x14016cbe0\nlea     r8, cs:140000000h                                              ; +0x13, 0x14016cbe3\nmov     edx, ds:(jpt_14016CBF5 - 140000000h)[r8+rax*4]                 ; +0x1a, 0x14016cbea\nadd     rdx, r8                                                        ; +0x22, 0x14016cbf2\njmp     rdx; switch jump                                               ; +0x25, 0x14016cbf5\nxorps   xmm0, xmm0; jumptable 000000014016CBF5 case 0                  ; +0x27, 0x14016cbf7\nmov     rax, rcx                                                       ; +0x2a, 0x14016cbfa\nmovups  xmmword ptr [rcx], xmm0                                        ; +0x2d, 0x14016cbfd\nmov     qword ptr [rcx+10h], 4                                         ; +0x30, 0x14016cc00\nmov     qword ptr [rcx+18h], 0Fh                                       ; +0x38, 0x14016cc08\nmov     dword ptr [rcx], 796E6954h                                     ; +0x40, 0x14016cc10\nmov     [rcx+4], r9b                                                   ; +0x46, 0x14016cc16\nadd     rsp, 18h                                                       ; +0x4a, 0x14016cc1a\nretn                                                                   ; +0x4e, 0x14016cc1e\nxorps   xmm0, xmm0; jumptable 000000014016CBF5 case 1                  ; +0x4f, 0x14016cc1f\nmovups  xmmword ptr [rcx], xmm0                                        ; +0x52, 0x14016cc22\nmov     qword ptr [rcx+10h], 5                                         ; +0x55, 0x14016cc25\nmov     qword ptr [rcx+18h], 0Fh                                       ; +0x5d, 0x14016cc2d\nmov     eax, cs:dword_14055A694                                        ; +0x65, 0x14016cc35\nmov     [rcx], eax                                                     ; +0x6b, 0x14016cc3b\nmovzx   eax, cs:byte_14055A698                                         ; +0x6d, 0x14016cc3d\nmov     [rcx+4], al                                                    ; +0x74, 0x14016cc44\nmov     rax, rcx                                                       ; +0x77, 0x14016cc47\nmov     [rcx+5], r9b                                                   ; +0x7a, 0x14016cc4a\nadd     rsp, 18h                                                       ; +0x7e, 0x14016cc4e\nretn                                                                   ; +0x82, 0x14016cc52\nxorps   xmm0, xmm0; jumptable 000000014016CBF5 case 2                  ; +0x83, 0x14016cc53\nmovups  xmmword ptr [rcx], xmm0                                        ; +0x86, 0x14016cc56\nmov     qword ptr [rcx+10h], 6                                         ; +0x89, 0x14016cc59\nmov     qword ptr [rcx+18h], 0Fh                                       ; +0x91, 0x14016cc61\nmov     eax, cs:dword_14055A68C                                        ; +0x99, 0x14016cc69\nmov     [rcx], eax                                                     ; +0x9f, 0x14016cc6f\nmovzx   eax, cs:word_14055A690                                         ; +0xa1, 0x14016cc71\nmov     [rcx+4], ax                                                    ; +0xa8, 0x14016cc78\nmov     rax, rcx                                                       ; +0xac, 0x14016cc7c\nmov     [rcx+6], r9b                                                   ; +0xaf, 0x14016cc7f\nadd     rsp, 18h                                                       ; +0xb3, 0x14016cc83\nretn                                                                   ; +0xb7, 0x14016cc87\nxorps   xmm0, xmm0; jumptable 000000014016CBF5 case 3                  ; +0xb8, 0x14016cc88\nmov     rax, rcx                                                       ; +0xbb, 0x14016cc8b\nmovups  xmmword ptr [rcx], xmm0                                        ; +0xbe, 0x14016cc8e\nmov     qword ptr [rcx+10h], 4                                         ; +0xc1, 0x14016cc91\nmov     qword ptr [rcx+18h], 0Fh                                       ; +0xc9, 0x14016cc99\nmov     dword ptr [rcx], 676E6F4Ch                                     ; +0xd1, 0x14016cca1\nmov     [rcx+4], r9b                                                   ; +0xd7, 0x14016cca7\nadd     rsp, 18h                                                       ; +0xdb, 0x14016ccab\nretn                                                                   ; +0xdf, 0x14016ccaf\nxorps   xmm0, xmm0; jumptable 000000014016CBF5 case 5                  ; +0xe0, 0x14016ccb0\nmovups  xmmword ptr [rcx], xmm0                                        ; +0xe3, 0x14016ccb3\nmov     qword ptr [rcx+10h], 5                                         ; +0xe6, 0x14016ccb6\nmov     qword ptr [rcx+18h], 0Fh                                       ; +0xee, 0x14016ccbe\nmov     eax, cs:dword_14055A6B0                                        ; +0xf6, 0x14016ccc6\nmov     [rcx], eax                                                     ; +0xfc, 0x14016cccc\nmovzx   eax, cs:byte_14055A6B4                                         ; +0xfe, 0x14016ccce\nmov     [rcx+4], al                                                    ; +0x105, 0x14016ccd5\nmov     rax, rcx                                                       ; +0x108, 0x14016ccd8\nmov     [rcx+5], r9b                                                   ; +0x10b, 0x14016ccdb\nadd     rsp, 18h                                                       ; +0x10f, 0x14016ccdf\nretn                                                                   ; +0x113, 0x14016cce3\nxorps   xmm0, xmm0; jumptable 000000014016CBF5 default case, case 4    ; +0x114, 0x14016cce4\nmov     rax, rcx                                                       ; +0x117, 0x14016cce7\nmovups  xmmword ptr [rcx], xmm0                                        ; +0x11a, 0x14016ccea\nmov     qword ptr [rcx+10h], 2                                         ; +0x11d, 0x14016cced\nmov     qword ptr [rcx+18h], 0Fh                                       ; +0x125, 0x14016ccf5\nmov     word ptr [rcx], 4C58h                                          ; +0x12d, 0x14016ccfd\nmov     [rcx+2], r9b                                                   ; +0x132, 0x14016cd02\nadd     rsp, 18h                                                       ; +0x136, 0x14016cd06\nretn                                                                   ; +0x13a, 0x14016cd0a\nalign 4                                                                ; +0x13b, 0x14016cd0b\ndd offset loc_14016CBF7 - 140000000h; jump table for switch statement  ; +0x13c, 0x14016cd0c", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x1400b01d6", "LevelCell::loadLocalLevelCell @ 0x1400b1181", "EditLevelLayer::setupLevelInfo @ 0x1400d6d74", "EditorPauseLayer::init @ 0x1400da30b", "LevelInfoLayer::updateLabelValues @ 0x1402ff5e6", "LevelSearchLayer::init @ 0x14030d957", "<???> @ 0x1406cadac"], "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"}