//
// internal::solve_linear from 0xbb5130 to 0xbb520c (220 bytes)
//
// 2 xrefs:
// > internal::solve_quadratic @ 0xbb53bc
// > ??> @ 0x77b48
//
// This function is hookable on this platform (idp: arm, 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 13:02:57 +0000
//
_QWORD *__usercall internal::solve_linear@(double a1@, double a2@, _QWORD *a3@)
{
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
if ( a2 == 0.0 )
{
if ( a1 == 0.0 )
{
std::vector::__append(a3, 1u);
*(_QWORD *)*a3 = 0;
return a3;
}
else
{
return a3;
}
}
else
{
std::vector::__append(a3, 1u);
*(double *)*a3 = -a1 / a2;
return a3;
}
}