{"type": "func", "start": 3971248, "end": 3971342, "name": "GJGameLevel::getUnpackedLevelDescription", "pseudocode": "// \n// GJGameLevel::getUnpackedLevelDescription from 0x3c98b0 to 0x3c990e (94 bytes)\n// \n// 4 xrefs:\n// > EditLevelLayer::init @ 0x3b7082\n// > ShareLevelLayer::init @ 0x3b8f1e\n// > InfoLayer::onLevelInfo @ 0x42f10a\n// > InfoLayer::init @ 0x43076c\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::getUnpackedLevelDescription(\n        GJGameLevel *this,\n        stl::StringData<char>::Internal *a2)\n{\n  std::string v4[2]; // [sp+0h] [bp-8h] BYREF\n\n  v4[0].m_data.m_data = (stl::StringData<char>::Internal *)this;\n  v4[1].m_data.m_data = a2;\n  if ( *(_DWORD *)(*((_DWORD *)a2 + 71) - 12) )\n  {\n    sub_775C20(v4, (char *)a2 + 284);\n    LevelTools::base64DecodeString((cocos2d::ZipUtils *)this, v4);\n    sub_774008(v4);\n  }\n  else\n  {\n    sub_776584((int)this, (char *)&unk_939830);\n  }\n  return this;\n}", "assembly": "; \n; GJGameLevel::getUnpackedLevelDescription from 0x3c98b0 to 0x3c990e (94 bytes)\n; \n; 4 xrefs:\n; > EditLevelLayer::init @ 0x3b7082\n; > ShareLevelLayer::init @ 0x3b8f1e\n; > InfoLayer::onLevelInfo @ 0x42f10a\n; > InfoLayer::init @ 0x43076c\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 - 0x3C98B8)                ; +0x0, 0x3c98b0\nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x2, 0x3c98b2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3c98b4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3c98b6\nMOV             R6, R0                                                 ; +0x8, 0x3c98b8\nMOV             R5, SP                                                 ; +0xa, 0x3c98ba\nLDR             R2, [R3]                                               ; +0xc, 0x3c98bc\nMOV             R4, R3                                                 ; +0xe, 0x3c98be\nSTR             R2, [SP,#8+var_4]                                      ; +0x10, 0x3c98c0\nLDR.W           R2, [R1,#0x11C]                                        ; +0x12, 0x3c98c2\nLDR.W           R2, [R2,#-0xC]                                         ; +0x16, 0x3c98c6\nCBNZ            R2, loc_3C98D8                                         ; +0x1a, 0x3c98ca\nLDR             R1, =(unk_939830 - 0x3C98D4)                           ; +0x1c, 0x3c98cc\nMOV             R2, SP                                                 ; +0x1e, 0x3c98ce\nADD             R1, PC; unk_939830 ; char *                            ; +0x20, 0x3c98d0\nBL              sub_776584                                             ; +0x22, 0x3c98d2\nB               loc_3C98FC                                             ; +0x26, 0x3c98d6\nADD.W           R1, R1, #0x11C                                         ; +0x28, 0x3c98d8\nMOV             R0, SP                                                 ; +0x2c, 0x3c98dc\nBL              sub_775C20                                             ; +0x2e, 0x3c98de\nMOV             R0, R6                                                 ; +0x32, 0x3c98e2\nMOV             R1, SP                                                 ; +0x34, 0x3c98e4\nBL              _ZN10LevelTools18base64DecodeStringESs; LevelTools::base64DecodeString(std::string) ; +0x36, 0x3c98e6\nMOV             R0, SP                                                 ; +0x3a, 0x3c98ea\nBL              sub_774008                                             ; +0x3c, 0x3c98ec\nB               loc_3C98FC                                             ; +0x40, 0x3c98f0\nMOV             R0, R5                                                 ; +0x42, 0x3c98f2\nBL              sub_774008                                             ; +0x44, 0x3c98f4\nBL              __cxa_end_cleanup                                      ; +0x48, 0x3c98f8\nLDR             R2, [SP,#8+var_4]                                      ; +0x4c, 0x3c98fc\nMOV             R0, R6                                                 ; +0x4e, 0x3c98fe\nLDR             R3, [R4]                                               ; +0x50, 0x3c9900\nCMP             R2, R3                                                 ; +0x52, 0x3c9902\nBEQ             loc_3C990A                                             ; +0x54, 0x3c9904\nBLX             __stack_chk_fail                                       ; +0x56, 0x3c9906\nADD             SP, SP, #8                                             ; +0x5a, 0x3c990a\nPOP             {R4-R6,PC}                                             ; +0x5c, 0x3c990c", "xrefs": ["EditLevelLayer::init @ 0x3b7082", "ShareLevelLayer::init @ 0x3b8f1e", "InfoLayer::onLevelInfo @ 0x42f10a", "InfoLayer::init @ 0x43076c"], "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"}