{"type": "func", "start": 4295617548, "end": 4295618036, "name": "GameLevelManager::getLevelLists", "pseudocode": "// \n// GameLevelManager::getLevelLists from 0x10009ec0c to 0x10009edf4 (488 bytes)\n// \n// 2 xrefs:\n// > LevelListLayer::onRefreshLevelList @ 0x100244bdc\n// > LevelBrowserLayer::loadPage @ 0x100417204\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\nvoid __fastcall GameLevelManager::getLevelLists(GameLevelManager *a1, GJSearchObject *a2)\n{\n  char *Key; // x20\n  std::string *p_dst; // x22\n  SearchType m_searchType; // w23\n  int m_page; // w24\n  cocos2d::CCString *v8; // x0\n  const char *CString; // x0\n  cocos2d::CCString *v10; // x0\n  const char *v11; // x0\n  std::string *capacitym1; // x1\n  std::string *v13; // x1\n  void *__p[2]; // [xsp+38h] [xbp-A8h] BYREF\n  char v15; // [xsp+4Fh] [xbp-91h]\n  void *v16[2]; // [xsp+50h] [xbp-90h] BYREF\n  char v17; // [xsp+67h] [xbp-79h]\n  std::string v18; // [xsp+68h] [xbp-78h] BYREF\n  std::string __dst; // [xsp+80h] [xbp-60h] BYREF\n  std::string v20; // [xsp+98h] [xbp-48h] BYREF\n\n  Key = (char *)GJSearchObject::getKey(a2);\n  if ( !GameLevelManager::isDLActive(a1, Key) )\n  {\n    GameLevelManager::addDLToActive(a1, Key);\n    GameLevelManager::getBasePostString(&v20);\n    if ( a2->m_searchQuery.m_data.m_short.shortStorage.__elems_[22] < 0 )\n      sub_1000097D0(&__dst, (void *)a2->m_searchQuery.m_data.m_long.capacitym1, a2->m_searchQuery.m_data.m_long.size);\n    else\n      __dst = a2->m_searchQuery;\n    if ( __dst.m_data.m_short.shortStorage.__elems_[22] >= 0 )\n      p_dst = &__dst;\n    else\n      p_dst = (std::string *)__dst.m_data.m_long.capacitym1;\n    m_searchType = a2->m_searchType;\n    m_page = a2->m_page;\n    v8 = (cocos2d::CCString *)sub_100268F4C(\"%c%s%s%c%c%s\", 87, \"mfd\", \"2893\", 103, 98, \"7\");\n    CString = cocos2d::CCString::getCString(v8);\n    v10 = (cocos2d::CCString *)sub_100268F4C(\n                                 \"&str=%s&type=%i&page=%i&secret=%s\",\n                                 (const char *)p_dst,\n                                 m_searchType,\n                                 m_page,\n                                 CString);\n    v11 = cocos2d::CCString::getCString(v10);\n    std::string::append(&v20, v11);\n    if ( __dst.m_data.m_short.shortStorage.__elems_[22] < 0 )\n      operator delete((void *)__dst.m_data.m_long.capacitym1);\n    GameLevelManager::writeSpecialFilters((__int64)a2, (std::string *)&__dst);\n    if ( __dst.m_data.m_short.shortStorage.__elems_[22] >= 0 )\n      capacitym1 = &__dst;\n    else\n      capacitym1 = (std::string *)__dst.m_data.m_long.capacitym1;\n    std::string::append(&v20, (const std::string::value_type *)capacitym1);\n    if ( __dst.m_data.m_short.shortStorage.__elems_[22] < 0 )\n      operator delete((void *)__dst.m_data.m_long.capacitym1);\n    sub_100009900(&v18, \"https://www.boomlings.com/database/getGJLevelLists.php\");\n    if ( (v20.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )\n      v13 = &v20;\n    else\n      v13 = (std::string *)v20.__r_.__value_.__r.__words[0];\n    sub_100009900(v16, (char *)v13);\n    sub_100009900(__p, Key);\n    GameLevelManager::ProcessHttpRequest(a1, &v18, (char *)v16, (const std::string::value_type *)__p, 60);\n    if ( v15 < 0 )\n      operator delete(__p[0]);\n    if ( v17 < 0 )\n      operator delete(v16[0]);\n    if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(v18.__r_.__value_.__l.__data_);\n    if ( SHIBYTE(v20.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(v20.__r_.__value_.__l.__data_);\n  }\n}", "assembly": "; \n; GameLevelManager::getLevelLists from 0x10009ec0c to 0x10009edf4 (488 bytes)\n; \n; 2 xrefs:\n; > LevelListLayer::onRefreshLevelList @ 0x100244bdc\n; > LevelBrowserLayer::loadPage @ 0x100417204\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             SP, SP, #0xF0                                          ; +0x0, 0x10009ec0c\nSTP             X24, X23, [SP,#0xE0+var_30]                            ; +0x4, 0x10009ec10\nSTP             X22, X21, [SP,#0xE0+var_20]                            ; +0x8, 0x10009ec14\nSTP             X20, X19, [SP,#0xE0+var_10]                            ; +0xc, 0x10009ec18\nSTP             X29, X30, [SP,#0xE0+var_s0]                            ; +0x10, 0x10009ec1c\nADD             X29, SP, #0xE0                                         ; +0x14, 0x10009ec20\nMOV             X21, X1                                                ; +0x18, 0x10009ec24\nMOV             X19, X0                                                ; +0x1c, 0x10009ec28\nMOV             X0, X1                                                 ; +0x20, 0x10009ec2c\nBL              GJSearchObject__getKey                                 ; +0x24, 0x10009ec30\nMOV             X20, X0                                                ; +0x28, 0x10009ec34\nMOV             X0, X19                                                ; +0x2c, 0x10009ec38\nMOV             X1, X20                                                ; +0x30, 0x10009ec3c\nBL              GameLevelManager__isDLActive                           ; +0x34, 0x10009ec40\nTBNZ            W0, #0, loc_10009EDDC                                  ; +0x38, 0x10009ec44\nMOV             X0, X19                                                ; +0x3c, 0x10009ec48\nMOV             X1, X20                                                ; +0x40, 0x10009ec4c\nBL              GameLevelManager__addDLToActive                        ; +0x44, 0x10009ec50\nSUB             X8, X29, #-var_48                                      ; +0x48, 0x10009ec54\nBL              GameLevelManager__getBasePostString                    ; +0x4c, 0x10009ec58\nLDRSB           W8, [X21,#0x157]                                       ; +0x50, 0x10009ec5c\nTBNZ            W8, #0x1F, loc_10009EC78                               ; +0x54, 0x10009ec60\nLDR             Q0, [X21,#0x140]                                       ; +0x58, 0x10009ec64\nSTUR            Q0, [X29,#__dst]                                       ; +0x5c, 0x10009ec68\nLDR             X8, [X21,#0x150]                                       ; +0x60, 0x10009ec6c\nSTUR            X8, [X29,#var_50]                                      ; +0x64, 0x10009ec70\nB               loc_10009EC84                                          ; +0x68, 0x10009ec74\nLDP             X1, X2, [X21,#0x140]; __src                            ; +0x6c, 0x10009ec78\nSUB             X0, X29, #-__dst; __dst                                ; +0x70, 0x10009ec7c\nBL              sub_1000097D0                                          ; +0x74, 0x10009ec80\nLDURSB          W8, [X29,#var_50+7]                                    ; +0x78, 0x10009ec84\nLDUR            X9, [X29,#__dst]                                       ; +0x7c, 0x10009ec88\nCMP             W8, #0                                                 ; +0x80, 0x10009ec8c\nSUB             X8, X29, #-__dst                                       ; +0x84, 0x10009ec90\nCSEL            X22, X9, X8, LT                                        ; +0x88, 0x10009ec94\nLDR             W23, [X21,#0x13C]                                      ; +0x8c, 0x10009ec98\nLDR             W24, [X21,#0x188]                                      ; +0x90, 0x10009ec9c\nADRL            X8, a7; \"7\"                                            ; +0x94, 0x10009eca0\nMOV             W9, #0x62 ; 'b'                                        ; +0x9c, 0x10009eca8\nSTP             X9, X8, [SP,#0xE0+var_C0]                              ; +0xa0, 0x10009ecac\nMOV             W8, #0x67 ; 'g'                                        ; +0xa4, 0x10009ecb0\nADRL            X9, a2893; \"2893\"                                      ; +0xa8, 0x10009ecb4\nSTP             X9, X8, [SP,#0xE0+var_D0]                              ; +0xb0, 0x10009ecbc\nADRL            X8, aMfd; \"mfd\"                                        ; +0xb4, 0x10009ecc0\nMOV             W9, #0x57 ; 'W'                                        ; +0xbc, 0x10009ecc8\nSTP             X9, X8, [SP,#0xE0+var_E0]                              ; +0xc0, 0x10009eccc\nADRL            X0, aCSSCCS; \"%c%s%s%c%c%s\"                            ; +0xc4, 0x10009ecd0\nBL              sub_100268F4C                                          ; +0xcc, 0x10009ecd8\nBL              cocos2d__CCString__getCString                          ; +0xd0, 0x10009ecdc\nSTP             X24, X0, [SP,#0xE0+var_D0]                             ; +0xd4, 0x10009ece0\nSTP             X22, X23, [SP,#0xE0+var_E0]                            ; +0xd8, 0x10009ece4\nADRL            X0, aStrSTypeIPageI; \"&str=%s&type=%i&page=%i&secret=%s\" ; +0xdc, 0x10009ece8\nBL              sub_100268F4C                                          ; +0xe4, 0x10009ecf0\nBL              cocos2d__CCString__getCString                          ; +0xe8, 0x10009ecf4\nMOV             X1, X0; __s                                            ; +0xec, 0x10009ecf8\nSUB             X0, X29, #-var_48; this                                ; +0xf0, 0x10009ecfc\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xf4, 0x10009ed00\nLDURSB          W8, [X29,#var_50+7]                                    ; +0xf8, 0x10009ed04\nTBZ             W8, #0x1F, loc_10009ED14                               ; +0xfc, 0x10009ed08\nLDUR            X0, [X29,#__dst]; __p                                  ; +0x100, 0x10009ed0c\nBL              __ZdlPv; operator delete(void *)                       ; +0x104, 0x10009ed10\nSUB             X22, X29, #-__dst                                      ; +0x108, 0x10009ed14\nSUB             X8, X29, #-__dst                                       ; +0x10c, 0x10009ed18\nMOV             X1, X21                                                ; +0x110, 0x10009ed1c\nBL              GameLevelManager__writeSpecialFilters                  ; +0x114, 0x10009ed20\nLDURSB          W8, [X29,#var_50+7]                                    ; +0x118, 0x10009ed24\nLDUR            X9, [X29,#__dst]                                       ; +0x11c, 0x10009ed28\nCMP             W8, #0                                                 ; +0x120, 0x10009ed2c\nCSEL            X1, X9, X22, LT; __s                                   ; +0x124, 0x10009ed30\nSUB             X0, X29, #-var_48; this                                ; +0x128, 0x10009ed34\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x12c, 0x10009ed38\nLDURSB          W8, [X29,#var_50+7]                                    ; +0x130, 0x10009ed3c\nTBZ             W8, #0x1F, loc_10009ED4C                               ; +0x134, 0x10009ed40\nLDUR            X0, [X29,#__dst]; __p                                  ; +0x138, 0x10009ed44\nBL              __ZdlPv; operator delete(void *)                       ; +0x13c, 0x10009ed48\nADRL            X1, aHttpsWwwBoomli_8; \"https://www.boomlings.com/database/getG\"... ; +0x140, 0x10009ed4c\nADD             X0, SP, #0xE0+var_78; int                              ; +0x148, 0x10009ed54\nBL              sub_100009900                                          ; +0x14c, 0x10009ed58\nLDURSB          W8, [X29,#var_48.__r_.__value_+0x17]                   ; +0x150, 0x10009ed5c\nLDUR            X9, [X29,#var_48]                                      ; +0x154, 0x10009ed60\nCMP             W8, #0                                                 ; +0x158, 0x10009ed64\nSUB             X8, X29, #-var_48                                      ; +0x15c, 0x10009ed68\nCSEL            X1, X9, X8, LT; __s                                    ; +0x160, 0x10009ed6c\nADD             X0, SP, #0xE0+var_90; int                              ; +0x164, 0x10009ed70\nBL              sub_100009900                                          ; +0x168, 0x10009ed74\nADD             X0, SP, #0xE0+__p; int                                 ; +0x16c, 0x10009ed78\nMOV             X1, X20; __s                                           ; +0x170, 0x10009ed7c\nBL              sub_100009900                                          ; +0x174, 0x10009ed80\nADD             X1, SP, #0xE0+var_78                                   ; +0x178, 0x10009ed84\nADD             X2, SP, #0xE0+var_90                                   ; +0x17c, 0x10009ed88\nADD             X3, SP, #0xE0+__p                                      ; +0x180, 0x10009ed8c\nMOV             X0, X19                                                ; +0x184, 0x10009ed90\nMOV             W4, #0x3C ; '<'                                        ; +0x188, 0x10009ed94\nBL              GameLevelManager__ProcessHttpRequest                   ; +0x18c, 0x10009ed98\nLDRSB           W8, [SP,#0xE0+var_91]                                  ; +0x190, 0x10009ed9c\nTBZ             W8, #0x1F, loc_10009EDAC                               ; +0x194, 0x10009eda0\nLDR             X0, [SP,#0xE0+__p]; __p                                ; +0x198, 0x10009eda4\nBL              __ZdlPv; operator delete(void *)                       ; +0x19c, 0x10009eda8\nLDRSB           W8, [SP,#0xE0+var_79]                                  ; +0x1a0, 0x10009edac\nTBZ             W8, #0x1F, loc_10009EDBC                               ; +0x1a4, 0x10009edb0\nLDR             X0, [SP,#0xE0+var_90]; __p                             ; +0x1a8, 0x10009edb4\nBL              __ZdlPv; operator delete(void *)                       ; +0x1ac, 0x10009edb8\nLDRSB           W8, [SP,#0xE0+var_61]                                  ; +0x1b0, 0x10009edbc\nTBZ             W8, #0x1F, loc_10009EDCC                               ; +0x1b4, 0x10009edc0\nLDR             X0, [SP,#0xE0+var_78]; __p                             ; +0x1b8, 0x10009edc4\nBL              __ZdlPv; operator delete(void *)                       ; +0x1bc, 0x10009edc8\nLDURSB          W8, [X29,#var_48.__r_.__value_+0x17]                   ; +0x1c0, 0x10009edcc\nTBZ             W8, #0x1F, loc_10009EDDC                               ; +0x1c4, 0x10009edd0\nLDUR            X0, [X29,#var_48]; __p                                 ; +0x1c8, 0x10009edd4\nBL              __ZdlPv; operator delete(void *)                       ; +0x1cc, 0x10009edd8\nLDP             X29, X30, [SP,#0xE0+var_s0]                            ; +0x1d0, 0x10009eddc\nLDP             X20, X19, [SP,#0xE0+var_10]                            ; +0x1d4, 0x10009ede0\nLDP             X22, X21, [SP,#0xE0+var_20]                            ; +0x1d8, 0x10009ede4\nLDP             X24, X23, [SP,#0xE0+var_30]                            ; +0x1dc, 0x10009ede8\nADD             SP, SP, #0xF0                                          ; +0x1e0, 0x10009edec\nRET                                                                    ; +0x1e4, 0x10009edf0", "xrefs": ["LevelListLayer::onRefreshLevelList @ 0x100244bdc", "LevelBrowserLayer::loadPage @ 0x100417204"], "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"}