// // GJLevelList::hasMatchingLevels from 0x1000b0f98 to 0x1000b1098 (256 bytes) // // 2 xrefs: // > LocalLevelManager::dataLoaded @ 0x1001c98a8 // > LocalLevelManager::dataLoaded @ 0x1001c9914 // // 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 // bool __fastcall GJLevelList::hasMatchingLevels(GJLevelList *a1) { __int64 v1; // x1 std::__vector_base::pointer end; // x20 std::__vector_base::pointer begin; // x21 char *v4; // x8 char *v5; // x9 __int64 v6; // x19 _QWORD *v7; // x1 bool v8; // w19 int v9; // w10 _QWORD *v10; // x11 int v11; // w12 int v13; // [xsp+4h] [xbp-3Ch] BYREF _QWORD *v14; // [xsp+8h] [xbp-38h] BYREF _QWORD v15[2]; // [xsp+10h] [xbp-30h] BYREF begin = a1->m_levels.__begin_; end = a1->m_levels.__end_; v4 = *(char **)(v1 + 320); v5 = *(char **)(v1 + 328); if ( (char *)end - (char *)begin == v5 - v4 ) { v15[0] = 0; v15[1] = 0; v14 = v15; if ( begin == end ) { v7 = nullptr; } else { v6 = v1; do { v13 = *begin; sub_1000B4D20(&v14, &v13, &v13); ++begin; } while ( begin != end ); v4 = *(char **)(v6 + 320); v5 = *(char **)(v6 + 328); v7 = (_QWORD *)v15[0]; } if ( v4 == v5 ) { v8 = 1; goto LABEL_21; } v8 = v7 != nullptr; while ( 1 ) { if ( !v7 ) { LABEL_19: v8 = 0; goto LABEL_21; } v9 = *(_DWORD *)v4; v10 = v7; while ( 1 ) { v11 = *((_DWORD *)v10 + 7); if ( v9 >= v11 ) break; LABEL_15: v10 = (_QWORD *)*v10; if ( !v10 ) goto LABEL_19; } if ( v11 < v9 ) break; v4 += 4; if ( v4 == v5 ) { LABEL_21: sub_100017D70((__int64)&v14, v7); return v8; } } ++v10; goto LABEL_15; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source