// // GJLevelList::create from 0x140175e80 to 0x14017676b (2283 bytes) // // 2 xrefs: // > GameLevelManager::createAndGetLevelLists @ 0x140146e25 // > @ 0x1406caf5c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=2 GJLevelList *GJLevelList::create(cocos2d::CCDictionary *a1) { GJLevelList *v2; // rdi cocos2d::CCString *v3; // rax void *v4; // rcx cocos2d::CCString *v5; // rax const char *CString; // rax size_t v7; // rbx size_t v8; // r8 void **v9; // rdx void *v10; // rcx cocos2d::CCString *v11; // rax const char *v12; // rax size_t v13; // r8 void **v14; // rdx void *v15; // rcx cocos2d::CCString *v16; // rax void *v17; // rcx cocos2d::CCString *v18; // rax void *v19; // rcx cocos2d::CCString *v20; // rax const char *v21; // rax size_t v22; // r8 void **v23; // rdx void *v24; // rcx cocos2d::CCString *v25; // rax void *v26; // rcx cocos2d::CCString *v27; // rax void *v28; // rcx cocos2d::CCString *v29; // rax void *v30; // rcx cocos2d::CCString *v31; // rax void *v32; // rcx cocos2d::CCString *v33; // rax void *v34; // rcx cocos2d::CCString *v35; // rax void *v36; // rcx cocos2d::CCString *v37; // rax void *v38; // rcx cocos2d::CCString *v39; // rax void *v40; // rcx cocos2d::CCString *v41; // rax const char *v42; // rax void *v43; // rcx void *Src[2]; // [rsp+28h] [rbp-61h] BYREF size_t Size; // [rsp+38h] [rbp-51h] unsigned __int64 v47; // [rsp+40h] [rbp-49h] void *v48[2]; // [rsp+48h] [rbp-41h] BYREF size_t v49; // [rsp+58h] [rbp-31h] unsigned __int64 v50; // [rsp+60h] [rbp-29h] void *v51[2]; // [rsp+68h] [rbp-21h] BYREF size_t v52; // [rsp+78h] [rbp-11h] unsigned __int64 v53; // [rsp+80h] [rbp-9h] __int128 v54; // [rsp+88h] [rbp-1h] BYREF __int64 v55; // [rsp+98h] [rbp+Fh] __int64 v56; // [rsp+A0h] [rbp+17h] void *Block[2]; // [rsp+A8h] [rbp+1Fh] BYREF __int64 v58; // [rsp+B8h] [rbp+2Fh] unsigned __int64 v59; // [rsp+C0h] [rbp+37h] v2 = GJLevelList::create_1(); *(_OWORD *)Block = 0; v58 = 1; v59 = 15; LOWORD(Block[0]) = 49; v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_listID = cocos2d::CCString::intValue(v3); if ( v59 > 0xF ) { v4 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v4 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v4); } *(_OWORD *)Block = 0; v58 = 1; v59 = 15; LOWORD(Block[0]) = 50; v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); CString = cocos2d::CCString::getCString(v5); *(_OWORD *)Src = 0; Size = 0; v47 = 0; v7 = -1; v8 = -1; do ++v8; while ( CString[v8] ); sub_14003A930(Src, CString, v8); if ( &v2->m_listName != (std::string *)Src ) { v9 = Src; if ( v47 > 0xF ) v9 = (void **)Src[0]; sub_14003CCE0((void **)&v2->m_listName, v9, Size); } sub_14003A830((__int64)Src); if ( v59 > 0xF ) { v10 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v10); } *(_OWORD *)Block = 0; v58 = 1; v59 = 15; LOWORD(Block[0]) = 51; v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v12 = cocos2d::CCString::getCString(v11); *(_OWORD *)v48 = 0; v49 = 0; v50 = 0; v13 = -1; do ++v13; while ( v12[v13] ); sub_14003A930(v48, v12, v13); if ( &v2->m_listDesc != (std::string *)v48 ) { v14 = v48; if ( v50 > 0xF ) v14 = (void **)v48[0]; sub_14003CCE0((void **)&v2->m_listDesc, v14, v49); } sub_14003A830((__int64)v48); if ( v59 > 0xF ) { v15 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v15 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v15); } *(_OWORD *)Block = 0; v58 = 1; v59 = 15; LOWORD(Block[0]) = 53; v16 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_listVersion = cocos2d::CCString::intValue(v16); if ( v59 > 0xF ) { v17 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v17 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v17 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v17); } *(_OWORD *)Block = 0; v58 = 2; v59 = 15; strcpy((char *)Block, "49"); v18 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_accountID = cocos2d::CCString::intValue(v18); if ( v59 > 0xF ) { v19 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v19 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v19); } *(_OWORD *)Block = 0; v58 = 2; v59 = 15; strcpy((char *)Block, "50"); v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v21 = cocos2d::CCString::getCString(v20); *(_OWORD *)v51 = 0; v52 = 0; v53 = 0; v22 = -1; do ++v22; while ( v21[v22] ); sub_14003A930(v51, v21, v22); if ( &v2->m_creatorName != (std::string *)v51 ) { v23 = v51; if ( v53 > 0xF ) v23 = (void **)v51[0]; sub_14003CCE0((void **)&v2->m_creatorName, v23, v52); } sub_14003A830((__int64)v51); if ( v59 > 0xF ) { v24 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v24 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v24 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v24); } *(_OWORD *)Block = 0; v58 = 2; v59 = 15; strcpy((char *)Block, "10"); v25 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_downloads = cocos2d::CCString::intValue(v25); if ( v59 > 0xF ) { v26 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v26 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v26 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v26); } *(_OWORD *)Block = 0; v58 = 2; v59 = 15; strcpy((char *)Block, "14"); v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_likes = cocos2d::CCString::intValue(v27); if ( v59 > 0xF ) { v28 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v28 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v28 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v28); } *(_OWORD *)Block = 0; v58 = 1; v59 = 15; LOWORD(Block[0]) = 55; v29 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_difficulty = cocos2d::CCString::intValue(v29); if ( v59 > 0xF ) { v30 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v30 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v30 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v30); } *(_OWORD *)Block = 0; v58 = 2; v59 = 15; strcpy((char *)Block, "28"); v31 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_uploadDate = cocos2d::CCString::intValue(v31); if ( v59 > 0xF ) { v32 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v32 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v32 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v32); } *(_OWORD *)Block = 0; v58 = 2; v59 = 15; strcpy((char *)Block, "29"); v33 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_updateDate = cocos2d::CCString::intValue(v33); if ( v59 > 0xF ) { v34 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v34 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v34 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v34); } *(_OWORD *)Block = 0; v58 = 2; v59 = 15; strcpy((char *)Block, "55"); v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_diamonds = cocos2d::CCString::intValue(v35); if ( v59 > 0xF ) { v36 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v36 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v36 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v36); } *(_OWORD *)Block = 0; v58 = 2; v59 = 15; strcpy((char *)Block, "56"); v37 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_levelsToClaim = cocos2d::CCString::intValue(v37); if ( v59 > 0xF ) { v38 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v38 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v38 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v38); } *(_OWORD *)Block = 0; v58 = 2; v59 = 15; strcpy((char *)Block, "19"); v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2->m_featured = cocos2d::CCString::boolValue(v39); if ( v59 > 0xF ) { v40 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v40 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v40 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v40); } *(_OWORD *)Block = 0; v58 = 2; v59 = 15; strcpy((char *)Block, "51"); v41 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v42 = cocos2d::CCString::getCString(v41); v54 = 0; v55 = 0; v56 = 0; do ++v7; while ( v42[v7] ); sub_14003A930(&v54, v42, v7); GJLevelList::parseListLevels(v2, &v54); if ( v59 > 0xF ) { v43 = Block[0]; if ( v59 + 1 >= 0x1000 ) { v43 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v43 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v43); } return v2; }