// // sub_1401795B0 from 0x1401795b0 to 0x1401797f5 (581 bytes) // // 41 xrefs: // > GameLevelManager::getStarLevelsString @ 0x140147d82 // > GameLevelManager::getStarLevelsString @ 0x140147e8e // > GameLevelManager::getStarLevelsString @ 0x140147f91 // > GameLevelManager::getStarLevelsString @ 0x140147fce // > GameLevelManager::getStarLevelsString @ 0x14014802a // > GameLevelManager::getStarLevelsString @ 0x14014807f // > GameLevelManager::getStarLevelsString @ 0x1401480dc // > GameLevelManager::getStarLevelsString @ 0x1401480f1 // > GameLevelManager::getStarLevelsString @ 0x140148151 // > GameLevelManager::getStarLevelsString @ 0x140148166 // > GameLevelManager::getStarLevelsString @ 0x1401481c6 // > GameLevelManager::getStarLevelsString @ 0x1401481db // > GameLevelManager::getStarLevelsString @ 0x140148233 // > GameLevelManager::getStarLevelsString @ 0x140148288 // > GameLevelManager::getStarLevelsString @ 0x1401482dd // > GameLevelManager::getStarLevelsString @ 0x14014833a // > GameLevelManager::getStarLevelsString @ 0x14014834f // > GameLevelManager::getStarLevelsString @ 0x1401483af // > GameLevelManager::getStarLevelsString @ 0x1401483c4 // > GameLevelManager::getStarLevelsString @ 0x140148424 // > GameLevelManager::getStarLevelsString @ 0x140148439 // > sub_140178290 @ 0x14017829c // > GameManager::recountUserStats @ 0x14018518f // > GJBaseGameLayer::applyRemap @ 0x14021b361 // > GJBaseGameLayer::applyRemap @ 0x14021b478 // > GJBaseGameLayer::applyRemap @ 0x14021b595 // > GJBaseGameLayer::applyRemap @ 0x14021b6b5 // > GJBaseGameLayer::applyRemap @ 0x14021b7d8 // > GJBaseGameLayer::applyRemap @ 0x14021b8f5 // > GJBaseGameLayer::applyRemap @ 0x14021bf9b // > GJBaseGameLayer::applyRemap @ 0x14021c0b9 // > GJBaseGameLayer::applyRemap @ 0x14021c1d3 // > GJBaseGameLayer::applyRemap @ 0x14021c2eb // > GJBaseGameLayer::applyRemap @ 0x14021c403 // > GJBaseGameLayer::generateTargetGroups @ 0x1402255a8 // > GJBaseGameLayer::generateTargetGroups @ 0x140225967 // > GJBaseGameLayer::generateTargetGroups @ 0x140225ab6 // > GJBaseGameLayer::generateTargetGroups @ 0x140225c8d // > LevelEditorLayer::addSpecial @ 0x1402d82ab // > LevelEditorLayer::removeSpecial @ 0x1402d8734 // > @ 0x1406cb160 // // 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 sub_1401795B0(float *a1, __int64 a2, unsigned __int8 *a3) { unsigned __int64 v6; // r13 __int64 v7; // rcx __int64 v8; // rax __int64 *v9; // rbx __int64 *v10; // r15 __int64 *v11; // rbp __int64 *v12; // rcx _DWORD *v14; // rdi __int64 v15; // rdx float v16; // xmm0_4 __int64 v17; // rcx float v18; // xmm1_4 __int64 v19; // rax unsigned __int64 v20; // rax __int64 v21; // rcx __int64 *v22; // rax __int64 *v23; // rdx int v24; // ecx _QWORD *v25; // rdx __int64 v26; // rcx __int64 v27; // rax __int64 *v28; // r8 __int64 *v29; // [rsp+20h] [rbp-38h] v6 = 0x100000001B3LL * (a3[3] ^ (0x100000001B3LL * (a3[2] ^ (0x100000001B3LL * (a3[1] ^ (0x100000001B3LL * (*a3 ^ 0xCBF29CE484222325uLL))))))); v7 = 2 * (v6 & *((_QWORD *)a1 + 6)); v8 = *((_QWORD *)a1 + 3); v9 = *(__int64 **)(v8 + 8 * v7 + 8); v10 = *((__int64 **)a1 + 1); if ( v9 == v10 ) { v9 = *((__int64 **)a1 + 1); v11 = v9; goto LABEL_9; } v12 = *(__int64 **)(v8 + 8 * v7); if ( *(_DWORD *)a3 != *((_DWORD *)v9 + 4) ) { while ( v9 != v12 ) { v9 = (__int64 *)v9[1]; if ( *(_DWORD *)a3 == *((_DWORD *)v9 + 4) ) goto LABEL_6; } v10 = v9; v11 = v9; LABEL_9: if ( *((_QWORD *)a1 + 2) == 0xAAAAAAAAAAAAAAALL ) std::_Xlength_error("unordered_map/set too long"); v14 = operator new(0x18u); v14[4] = *(_DWORD *)a3; v14[5] = 0; v15 = *((_QWORD *)a1 + 2) + 1LL; if ( v15 < 0 ) v16 = (float)(v15 & 1 | (unsigned int)((unsigned __int64)v15 >> 1)) + (float)(v15 & 1 | (unsigned int)((unsigned __int64)v15 >> 1)); else v16 = (float)(int)v15; v17 = *((_QWORD *)a1 + 7); if ( v17 < 0 ) { v19 = *((_QWORD *)a1 + 7) & 1LL | ((unsigned __int64)v17 >> 1); v18 = (float)(int)v19 + (float)(int)v19; } else { v18 = (float)(int)v17; } if ( (float)(v16 / v18) <= *a1 ) { LABEL_25: v25 = (_QWORD *)v9[1]; ++*((_QWORD *)a1 + 2); *(_QWORD *)v14 = v10; *((_QWORD *)v14 + 1) = v25; *v25 = v14; v9[1] = (__int64)v14; v26 = *((_QWORD *)a1 + 3); v27 = 2 * (v6 & *((_QWORD *)a1 + 6)); v28 = *(__int64 **)(v26 + 16 * (v6 & *((_QWORD *)a1 + 6))); if ( v28 == *((__int64 **)a1 + 1) ) { *(_QWORD *)(v26 + 16 * (v6 & *((_QWORD *)a1 + 6))) = v14; LABEL_31: *(_QWORD *)(v26 + 8 * v27 + 8) = v14; goto LABEL_32; } if ( v28 == v11 ) { *(_QWORD *)(v26 + 16 * (v6 & *((_QWORD *)a1 + 6))) = v14; } else if ( *(_QWORD **)(v26 + 16 * (v6 & *((_QWORD *)a1 + 6)) + 8) == v25 ) { goto LABEL_31; } LABEL_32: *(_QWORD *)a2 = v14; *(_BYTE *)(a2 + 8) = 1; return a2; } v20 = sub_14005F0F0((__int64)a1, v15); sub_14005EF40(a1, v20); v21 = *((_QWORD *)a1 + 3); v22 = *(__int64 **)(v21 + 16 * (*((_QWORD *)a1 + 6) & v6) + 8); v9 = *((__int64 **)a1 + 1); if ( v22 != v9 ) { v23 = *(__int64 **)(v21 + 16 * (*((_QWORD *)a1 + 6) & v6)); v24 = v14[4]; if ( v24 != *((_DWORD *)v22 + 4) ) { while ( 1 ) { v9 = v22; if ( v22 == v23 ) break; v22 = (__int64 *)v22[1]; if ( v24 == *((_DWORD *)v22 + 4) ) goto LABEL_22; } v29 = v22; goto LABEL_24; } LABEL_22: v9 = (__int64 *)*v22; } v29 = v9; LABEL_24: v11 = v9; v10 = v29; goto LABEL_25; } LABEL_6: *(_QWORD *)a2 = v9; *(_BYTE *)(a2 + 8) = 0; return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source