{"type": "func", "start": 3953884, "end": 3953978, "name": "GJGameLevel::lengthKeyToString", "pseudocode": "// \n// GJGameLevel::lengthKeyToString from 0x3c54dc to 0x3c553a (94 bytes)\n// \n// 6 xrefs:\n// > LevelCell::loadLocalLevelCell @ 0x331816\n// > LevelCell::loadCustomLevelCell @ 0x332c82\n// > LevelSearchLayer::init @ 0x3aed92\n// > LevelInfoLayer::updateLabelValues @ 0x3b2d1e\n// > EditLevelLayer::setupLevelInfo @ 0x3b633c\n// > EditorPauseLayer::init @ 0x3ff920\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\nGJGameLevel *__fastcall GJGameLevel::lengthKeyToString(GJGameLevel *this, int a2)\n{\n  char *v3; // r1\n\n  switch ( a2 )\n  {\n    case 0:\n      v3 = \"Tiny\";\n      break;\n    case 1:\n      v3 = \"Short\";\n      break;\n    case 2:\n      v3 = \"Medium\";\n      break;\n    case 3:\n      v3 = \"Long\";\n      break;\n    case 4:\n      v3 = \"XL\";\n      break;\n    case 5:\n      v3 = \"Plat.\";\n      break;\n    default:\n      v3 = \"XL\";\n      break;\n  }\n  sub_776584((int)this, v3);\n  return this;\n}", "assembly": "; \n; GJGameLevel::lengthKeyToString from 0x3c54dc to 0x3c553a (94 bytes)\n; \n; 6 xrefs:\n; > LevelCell::loadLocalLevelCell @ 0x331816\n; > LevelCell::loadCustomLevelCell @ 0x332c82\n; > LevelSearchLayer::init @ 0x3aed92\n; > LevelInfoLayer::updateLabelValues @ 0x3b2d1e\n; > EditLevelLayer::setupLevelInfo @ 0x3b633c\n; > EditorPauseLayer::init @ 0x3ff920\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x3C54E4)                ; +0x0, 0x3c54dc\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x2, 0x3c54de\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3c54e0\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3c54e2\nMOV             R4, R0                                                 ; +0x8, 0x3c54e4\nLDR             R2, [R3]                                               ; +0xa, 0x3c54e6\nMOV             R5, R3                                                 ; +0xc, 0x3c54e8\nSTR             R2, [SP,#0xC+var_8]                                    ; +0xe, 0x3c54ea\nMOV             R2, SP                                                 ; +0x10, 0x3c54ec\nCMP             R1, #5; switch 6 cases                                 ; +0x12, 0x3c54ee\nBHI             def_3C54F2; jumptable 003C54F2 default case            ; +0x14, 0x3c54f0\nTBB.W           [PC,R1]; switch jump                                   ; +0x16, 0x3c54f2\nDCB 3; jump table for switch statement                                 ; +0x1a, 0x3c54f6\nDCB 6                                                                  ; +0x1b, 0x3c54f7\nDCB 9                                                                  ; +0x1c, 0x3c54f8\nDCB 0xC                                                                ; +0x1d, 0x3c54f9\nDCB 0xF                                                                ; +0x1e, 0x3c54fa\nDCB 0x12                                                               ; +0x1f, 0x3c54fb\nLDR             R1, =(aTiny - 0x3C5502); jumptable 003C54F2 case 0     ; +0x20, 0x3c54fc\nADD             R1, PC; \"Tiny\"                                         ; +0x22, 0x3c54fe\nB               loc_3C5524                                             ; +0x24, 0x3c5500\nLDR             R1, =(aShort - 0x3C5508); jumptable 003C54F2 case 1    ; +0x26, 0x3c5502\nADD             R1, PC; \"Short\"                                        ; +0x28, 0x3c5504\nB               loc_3C5524                                             ; +0x2a, 0x3c5506\nLDR             R1, =(aMedium - 0x3C550E); jumptable 003C54F2 case 2   ; +0x2c, 0x3c5508\nADD             R1, PC; \"Medium\"                                       ; +0x2e, 0x3c550a\nB               loc_3C5524                                             ; +0x30, 0x3c550c\nLDR             R1, =(aLong - 0x3C5514); jumptable 003C54F2 case 3     ; +0x32, 0x3c550e\nADD             R1, PC; \"Long\"                                         ; +0x34, 0x3c5510\nB               loc_3C5524                                             ; +0x36, 0x3c5512\nLDR             R1, =(aXl - 0x3C551A); jumptable 003C54F2 case 4       ; +0x38, 0x3c5514\nADD             R1, PC; \"XL\"                                           ; +0x3a, 0x3c5516\nB               loc_3C5524                                             ; +0x3c, 0x3c5518\nLDR             R1, =(aPlat - 0x3C5520); jumptable 003C54F2 case 5     ; +0x3e, 0x3c551a\nADD             R1, PC; \"Plat.\"                                        ; +0x40, 0x3c551c\nB               loc_3C5524                                             ; +0x42, 0x3c551e\nLDR             R1, =(aXl - 0x3C5526); jumptable 003C54F2 default case ; +0x44, 0x3c5520\nADD             R1, PC; \"XL\"                                           ; +0x46, 0x3c5522\nBL              sub_776584                                             ; +0x48, 0x3c5524\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x4c, 0x3c5528\nLDR             R3, [R5]                                               ; +0x4e, 0x3c552a\nMOV             R0, R4                                                 ; +0x50, 0x3c552c\nCMP             R2, R3                                                 ; +0x52, 0x3c552e\nBEQ             loc_3C5536                                             ; +0x54, 0x3c5530\nBLX             __stack_chk_fail                                       ; +0x56, 0x3c5532\nADD             SP, SP, #0xC                                           ; +0x5a, 0x3c5536\nPOP             {R4,R5,PC}                                             ; +0x5c, 0x3c5538", "xrefs": ["LevelCell::loadLocalLevelCell @ 0x331816", "LevelCell::loadCustomLevelCell @ 0x332c82", "LevelSearchLayer::init @ 0x3aed92", "LevelInfoLayer::updateLabelValues @ 0x3b2d1e", "EditLevelLayer::setupLevelInfo @ 0x3b633c", "EditorPauseLayer::init @ 0x3ff920"], "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"}