//
// SFXInfoObject::init from 0x1006669c0 to 0x100666a83 (195 bytes)
//
// 0 xrefs:
//
// 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 12:34:58 +0000
//
char __fastcall SFXInfoObject::init(__int64 a1, int a2, const std::string *a3, int a4, int a5, int a6)
{
_BYTE *v9; // r14
unsigned int v10; // r15d
__int64 v11; // r15
__int64 i; // r13
__int64 v13; // rax
char v14; // al
__int64 v15; // rcx
*(_DWORD *)(a1 + 56) = a2;
std::string::operator=((std::string *)(a1 + 80), a3);
*(_DWORD *)(a1 + 60) = a4;
*(_DWORD *)(a1 + 64) = a5;
*(_DWORD *)(a1 + 68) = a6;
*(_BYTE *)(a1 + 72) = 0;
v9 = (_BYTE *)(a1 + 104);
std::string::operator=((std::string *)(a1 + 104), (const std::string *)(a1 + 80));
v10 = *(unsigned __int8 *)(a1 + 104);
if ( (v10 & 1) != 0 )
{
v11 = *(_QWORD *)(a1 + 112);
if ( !v11 )
return 1;
}
else
{
v11 = v10 >> 1;
if ( !v11 )
return 1;
}
for ( i = 0; i != v11; ++i )
{
v13 = a1 + 105;
if ( (*v9 & 1) != 0 )
v13 = *(_QWORD *)(a1 + 120);
v14 = __tolower(*(unsigned __int8 *)(v13 + i));
v15 = a1 + 105;
if ( (*v9 & 1) != 0 )
v15 = *(_QWORD *)(a1 + 120);
*(_BYTE *)(v15 + i) = v14;
}
return 1;
}