//
// unknown_libname_74 from 0x180140704 to 0x1801407a2 (158 bytes)
//
// 3 xrefs:
// > strpbrk @ 0x1801409a0
// > strpbrk @ 0x1801409bf
// > ??> @ 0x180203c2c
//
// 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 10:55:04 +0000
//
// Microsoft VisualC 64bit universal runtime
_BYTE *__fastcall unknown_libname_74(_BYTE *a1, unsigned __int8 *a2)
{
__int64 v2; // rax
unsigned __int8 *v3; // r9
bool v4; // cf
unsigned __int8 i; // al
_BYTE v8[32]; // [rsp+20h] [rbp-38h]
v2 = 0;
v3 = a2;
v4 = 1;
do
{
if ( !v4 )
_report_rangecheckfailure();
v8[v2++] = 0;
v4 = (unsigned __int64)v2 < 0x20;
}
while ( v2 < 32 );
for ( i = *a2; i; i = *v3 )
{
++v3;
v8[(unsigned __int64)i >> 3] |= 1 << (i & 7);
}
while ( 1 )
{
if ( !*a1 )
return nullptr;
if ( ((unsigned __int8)(1 << (*a1 & 7)) & v8[(unsigned __int64)(unsigned __int8)*a1 >> 3]) != 0 )
break;
++a1;
}
return a1;
}