//
// sub_1800DD2C0 from 0x1800dd2c0 to 0x1800dd34a (138 bytes)
//
// 3 xrefs:
// > sub_1800DCD70 @ 0x1800dce93
// > sub_1800DD350 @ 0x1800dd360
// > ??> @ 0x1801c4e84
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:35 +0000
//
char *__fastcall sub_1800DD2C0(__int64 a1)
{
int v1; // r9d
char *v3; // r11
unsigned __int8 *v4; // rax
int v5; // ecx
int v6; // edx
v1 = 0;
if ( dword_1801B5200 <= 0 )
return nullptr;
while ( 1 )
{
v3 = (char *)qword_1801B51F8 + 245 * v1;
v4 = (unsigned __int8 *)(v3 + 128);
do
{
v5 = v4[a1 - (_QWORD)(v3 + 128)];
v6 = *v4 - v5;
if ( v6 )
break;
++v4;
}
while ( v5 );
if ( !v6 )
break;
if ( ++v1 >= dword_1801B5200 )
return nullptr;
}
return (char *)qword_1801B51F8 + 245 * v1;
}