// // sub_1800DB010 from 0x1800db010 to 0x1800db189 (377 bytes) // // 4 xrefs: // > sub_1800DB2E0 @ 0x1800db5a2 // > @ 0x18018c924 // > @ 0x18018c97c // > @ 0x1801ff348 // // 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_1800DB010(__int64 a1, _QWORD *a2, _BYTE *a3, _BYTE *a4) { __int64 result; // rax int v9; // eax int *v10; // rdi int v11; // eax __int64 v12; // rcx __int64 v13; // rax __int64 v14; // rbp int v15; // ecx signed int v16; // eax __m128i v17; // xmm0 int v18; // eax __int64 v19; // rdx __int64 v20; // rcx __int128 v21; // [rsp+20h] [rbp-28h] if ( !a4 ) return 28; *a4 = 0; result = sub_1800DAEB0(a1); if ( (_DWORD)result ) return result; v9 = *(_DWORD *)(a1 + 8); if ( !v9 ) return 28; v10 = (int *)(*(_QWORD *)a1 + 4LL * (int)((v9 - 1) & (*a2 ^ HIDWORD(*a2)))); v11 = *v10; if ( *v10 == -1 ) { LABEL_8: v14 = *(int *)(a1 + 32); if ( (_DWORD)v14 == -1 ) { LODWORD(v14) = *(_DWORD *)(a1 + 24); BYTE12(v21) = *a3; v15 = v14 + 1; *(_QWORD *)&v21 = *a2; DWORD2(v21) = -1; v16 = abs32(*(_DWORD *)(a1 + 28)); if ( (int)v14 + 1 > v16 ) { v17 = _mm_cvtsi32_si128(v16); v18 = *(_DWORD *)(a1 + 24) + 1; v19 = (unsigned int)(int)(float)(_mm_cvtepi32_ps(v17).m128_f32[0] * 1.5); if ( v15 <= (int)v19 ) v18 = v19; if ( v18 >= 4 ) { if ( v15 > (int)v19 ) v19 = (unsigned int)v15; } else { v19 = 4; } result = sub_1800DBB90(a1 + 16, v19); if ( (_DWORD)result ) return result; } *(_OWORD *)(*(_QWORD *)(a1 + 16) + 16LL * (int)(*(_DWORD *)(a1 + 24))++) = v21; } else { v20 = *(_QWORD *)(a1 + 16) + 16 * v14; *(_DWORD *)(a1 + 32) = *(_DWORD *)(v20 + 8); *(_DWORD *)(v20 + 8) = -1; *(_QWORD *)v20 = *a2; *(_BYTE *)(v20 + 12) = *a3; } *v10 = v14; ++*(_DWORD *)(a1 + 36); return 0; } v12 = *(_QWORD *)(a1 + 16); while ( 1 ) { v13 = 2LL * v11; if ( *(_QWORD *)(v12 + 8 * v13) == *a2 ) break; v10 = (int *)(v12 + 8 + 8 * v13); v11 = *v10; if ( *v10 == -1 ) goto LABEL_8; } *a4 = *(_BYTE *)(v12 + 8 * v13 + 12); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source