// // GameLevelManager::getLocalLevelByName from 0x10052c3e0 to 0x10052c51e (318 bytes) // // 1 xrefs: // > MapSelectLayer::init @ 0x100268466 // // 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 // __int64 __fastcall GameLevelManager::getLocalLevelByName(__m128 a1, __int64 a2, unsigned __int8 *a3) { unsigned __int8 *v3; // r14 cocos2d::CCArray *m_localLevels; // rbx unsigned int v5; // r12d __int64 v6; // rax __int64 v7; // r13 unsigned int v8; // eax __int8 v9; // bl __int8 *v10; // rdi size_t v11; // rdx size_t v12; // rax const void *v13; // rsi bool v14; // zf bool v15; // r14 bool v16; // r15 __int8 *__p; // [rsp+0h] [rbp-60h] cocos2d::CCArray *v20; // [rsp+10h] [rbp-50h] const void *v21; // [rsp+18h] [rbp-48h] __m128 __s1; // [rsp+20h] [rbp-40h] BYREF __int8 *v23; // [rsp+30h] [rbp-30h] v3 = a3; m_localLevels = LocalLevelManager::sharedState()->m_localLevels; if ( (unsigned int)sub_100720070(m_localLevels) ) { v21 = a3 + 1; v5 = 0; v20 = m_localLevels; do { v6 = sub_1007200C0(m_localLevels, v5); v7 = v6; if ( (*(_BYTE *)(v6 + 344) & 1) != 0 ) { sub_100006B70(&__s1, *(const void **)(v6 + 360), *(_QWORD *)(v6 + 352), *(double *)a1.i64); } else { v23 = *(__int8 **)(v6 + 360); a1 = *(__m128 *)(v6 + 344); __s1 = a1; } v8 = *v3; v9 = __s1.i8[0]; v10 = v23; __p = v23; if ( (__s1.i8[0] & 1) != 0 ) { v11 = __s1.u64[1]; if ( (v8 & 1) == 0 ) goto LABEL_8; } else { v11 = __s1.u8[0] >> 1; v10 = &__s1.i8[1]; if ( (v8 & 1) == 0 ) { LABEL_8: v12 = v8 >> 1; v13 = v21; goto LABEL_11; } } v12 = *((_QWORD *)v3 + 1); v13 = *((const void **)v3 + 2); LABEL_11: v14 = v12 == v11; if ( v12 < v11 ) v11 = v12; v15 = v14; v16 = memcmp(v10, v13, v11) == 0; if ( (v9 & 1) != 0 ) operator delete(__p); if ( v15 && v16 ) return v7; ++v5; m_localLevels = v20; v3 = a3; } while ( v5 < (unsigned int)sub_100720070(v20) ); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source