{"type": "func", "start": 7443132, "end": 7443412, "name": "GJLevelList::getUnpackedDescription", "pseudocode": "// \n// GJLevelList::getUnpackedDescription from 0x7192bc to 0x7193d4 (280 bytes)\n// \n// 5 xrefs:\n// > GJLevelList::showListInfo @ 0x7194f8\n// > InfoLayer::init @ 0x7e4b74\n// > LevelListLayer::onDescription @ 0xa72ed0\n// > ShareListLayer::init @ 0xa7985c\n// > <???> @ 0xa8078\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_QWORD *__usercall GJLevelList::getUnpackedDescription@<X0>(GJLevelList *this@<X0>, _QWORD *a2@<X8>)\n{\n  void *v3; // x0\n  unsigned int *v5; // x2\n  int v6; // w1\n  __int64 v7; // [xsp+40h] [xbp+40h] BYREF\n\n  if ( *((_QWORD *)this->m_listDesc.m_data.m_data - 3) )\n  {\n    sub_D18D28(&v7);\n    LevelTools::base64DecodeString((cocos2d::ZipUtils *)&v7, a2);\n    v3 = (void *)(v7 - 24);\n    if ( (__int64 *)(v7 - 24) != &qword_124B6B0 )\n    {\n      if ( &pthread_create )\n      {\n        v5 = (unsigned int *)(v7 - 8);\n        do\n          v6 = __ldaxr(v5);\n        while ( __stlxr(v6 - 1, v5) );\n      }\n      else\n      {\n        v6 = *(_DWORD *)(v7 - 8);\n        *(_DWORD *)(v7 - 8) = v6 - 1;\n      }\n      if ( v6 <= 0 )\n        operator delete(v3);\n    }\n  }\n  else\n  {\n    sub_D153B8((int)a2, &byte_F288A0);\n  }\n  return a2;\n}", "assembly": "; \n; GJLevelList::getUnpackedDescription from 0x7192bc to 0x7193d4 (280 bytes)\n; \n; 5 xrefs:\n; > GJLevelList::showListInfo @ 0x7194f8\n; > InfoLayer::init @ 0x7e4b74\n; > LevelListLayer::onDescription @ 0xa72ed0\n; > ShareListLayer::init @ 0xa7985c\n; > <???> @ 0xa8078\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x7192bc\nADD             X1, X0, #0x1B0                                         ; +0x4, 0x7192c0\nMOV             X29, SP                                                ; +0x8, 0x7192c4\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x7192c8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x7192cc\nLDR             X0, [X0,#0x1B0]                                        ; +0x14, 0x7192d0\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x18, 0x7192d4\nMOV             X21, X8                                                ; +0x1c, 0x7192d8\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x7192dc\nLDUR            X0, [X0,#-0x18]                                        ; +0x24, 0x7192e0\nLDR             X2, [X2]                                               ; +0x28, 0x7192e4\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x2c, 0x7192e8\nCBZ             X0, loc_719348                                         ; +0x30, 0x7192ec\nADD             X20, X29, #0x50+var_10                                 ; +0x34, 0x7192f0\nMOV             X0, X20                                                ; +0x38, 0x7192f4\nBL              sub_D18D28                                             ; +0x3c, 0x7192f8\nMOV             X8, X21                                                ; +0x40, 0x7192fc\nMOV             X0, X20                                                ; +0x44, 0x719300\nBL              _ZN10LevelTools18base64DecodeStringESs; LevelTools::base64DecodeString(std::string) ; +0x48, 0x719304\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x4c, 0x719308\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x50, 0x71930c\nSUB             X0, X2, #0x18; p                                       ; +0x54, 0x719310\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x58, 0x719314\nCMP             X0, X1                                                 ; +0x5c, 0x719318\nB.NE            loc_719360                                             ; +0x60, 0x71931c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x64, 0x719320\nMOV             X0, X21                                                ; +0x68, 0x719324\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x6c, 0x719328\nLDR             X1, [X19]                                              ; +0x70, 0x71932c\nCMP             X2, X1                                                 ; +0x74, 0x719330\nB.NE            loc_7193A4                                             ; +0x78, 0x719334\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x7c, 0x719338\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x80, 0x71933c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x84, 0x719340\nRET                                                                    ; +0x88, 0x719344\nADRP            X1, #byte_F288A0@PAGE                                  ; +0x8c, 0x719348\nMOV             X0, X8; int                                            ; +0x90, 0x71934c\nADD             X1, X1, #byte_F288A0@PAGEOFF; char *                   ; +0x94, 0x719350\nADD             X2, X29, #0x50+var_10                                  ; +0x98, 0x719354\nBL              sub_D153B8                                             ; +0x9c, 0x719358\nB               loc_719320                                             ; +0xa0, 0x71935c\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xa4, 0x719360\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xa8, 0x719364\nCBZ             X1, loc_719394                                         ; +0xac, 0x719368\nSUB             X2, X2, #8                                             ; +0xb0, 0x71936c\nLDAXR           W1, [X2]                                               ; +0xb4, 0x719370\nSUB             W3, W1, #1                                             ; +0xb8, 0x719374\nSTLXR           W4, W3, [X2]                                           ; +0xbc, 0x719378\nCBNZ            W4, loc_719370                                         ; +0xc0, 0x71937c\nCMP             W1, WZR                                                ; +0xc4, 0x719380\nB.GT            loc_719320                                             ; +0xc8, 0x719384\nADD             X1, X29, #0x50+var_18                                  ; +0xcc, 0x719388\nBL              j__ZdlPv; operator delete(void *)                      ; +0xd0, 0x71938c\nB               loc_719320                                             ; +0xd4, 0x719390\nLDUR            W1, [X2,#-8]                                           ; +0xd8, 0x719394\nSUB             W3, W1, #1                                             ; +0xdc, 0x719398\nSTUR            W3, [X2,#-8]                                           ; +0xe0, 0x71939c\nB               loc_719380                                             ; +0xe4, 0x7193a0\nBL              .__stack_chk_fail                                      ; +0xe8, 0x7193a4\nADRP            X1, #off_122EFE8@PAGE                                  ; +0xec, 0x7193a8\nMOV             X19, X0                                                ; +0xf0, 0x7193ac\nLDR             X0, [X29,#0x50+var_10]                                 ; +0xf4, 0x7193b0\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xf8, 0x7193b4\nSUB             X0, X0, #0x18                                          ; +0xfc, 0x7193b8\nCMP             X0, X1                                                 ; +0x100, 0x7193bc\nB.EQ            loc_7193CC                                             ; +0x104, 0x7193c0\nADD             X1, X29, #0x50+var_18                                  ; +0x108, 0x7193c4\nBL              sub_6EE220                                             ; +0x10c, 0x7193c8\nMOV             X0, X19                                                ; +0x110, 0x7193cc\nBL              _Unwind_Resume                                         ; +0x114, 0x7193d0", "xrefs": ["GJLevelList::showListInfo @ 0x7194f8", "InfoLayer::init @ 0x7e4b74", "LevelListLayer::onDescription @ 0xa72ed0", "ShareListLayer::init @ 0xa7985c", "<???> @ 0xa8078"], "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"}