//
// internal::solve_linear from 0x59557c to 0x5955e2 (102 bytes)
//
// 1 xrefs:
// > internal::solve_quadratic @ 0x59561a
//
// 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
//
internal *__fastcall internal::solve_linear(internal *this, double a2, double a3)
{
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
if ( a3 == 0.0 )
{
if ( a2 == 0.0 )
{
std::vector::resize((const void **)this, 1u);
*(_QWORD *)*(_DWORD *)this = 0;
}
}
else
{
std::vector::resize((const void **)this, 1u);
*(double *)*(_DWORD *)this = -a2 / a3;
}
return this;
}