//
// ForceBlockGameObject::customObjectSetup from 0x100396c28 to 0x100396d98 (368 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008068f0
//
// 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
//
void __fastcall ForceBlockGameObject::customObjectSetup(
ForceBlockGameObject *a1,
std::vector *a2,
std::vector *a3)
{
std::__vector_base::pointer begin; // x21
float v7; // s8
float v8; // s0
std::__vector_base::pointer capacitym1; // x0
std::__vector_base::pointer v10; // x0
std::__vector_base::pointer v11; // x0
float v12; // s0
void *v13; // x8
std::__vector_base::pointer v14; // x0
void *v15; // x8
std::__vector_base::pointer v16; // x0
std::__vector_base::pointer v17; // x0
int v18; // w0
EffectGameObject::customObjectSetup(a1, a2, a3);
begin = a3->__begin_;
v7 = 0.0;
v8 = 0.0;
if ( begin[149] )
{
capacitym1 = a2->__begin_ + 149;
if ( a2->__begin_[149].m_data.m_short.shortStorage.__elems_[22] < 0 )
capacitym1 = (std::__vector_base::pointer)capacitym1->m_data.m_long.capacitym1;
v8 = atof((const char *)capacitym1);
}
a1->m_force = v8;
if ( begin[526] )
{
v10 = a2->__begin_ + 526;
if ( a2->__begin_[526].m_data.m_short.shortStorage.__elems_[22] < 0 )
v10 = (std::__vector_base::pointer)v10->m_data.m_long.capacitym1;
v7 = atof((const char *)v10);
}
a1->m_minForce = v7;
if ( begin[527] )
{
v11 = a2->__begin_ + 527;
if ( a2->__begin_[527].m_data.m_short.shortStorage.__elems_[22] < 0 )
v11 = (std::__vector_base::pointer)v11->m_data.m_long.capacitym1;
v12 = atof((const char *)v11);
}
else
{
v12 = 0.0;
}
a1->m_maxForce = v12;
v13 = begin[528];
if ( v13 )
{
v14 = a2->__begin_ + 528;
if ( a2->__begin_[528].m_data.m_short.shortStorage.__elems_[22] < 0 )
v14 = (std::__vector_base::pointer)v14->m_data.m_long.capacitym1;
LOBYTE(v13) = atoi((const char *)v14) != 0;
}
a1->m_relativeForce = (char)v13;
v15 = begin[529];
if ( v15 )
{
v16 = a2->__begin_ + 529;
if ( a2->__begin_[529].m_data.m_short.shortStorage.__elems_[22] < 0 )
v16 = (std::__vector_base::pointer)v16->m_data.m_long.capacitym1;
LOBYTE(v15) = atoi((const char *)v16) != 0;
}
a1->m_forceRange = (char)v15;
if ( begin[530] )
{
v17 = a2->__begin_ + 530;
if ( a2->__begin_[530].m_data.m_short.shortStorage.__elems_[22] < 0 )
v17 = (std::__vector_base::pointer)v17->m_data.m_long.capacitym1;
v18 = atoi((const char *)v17);
}
else
{
v18 = 0;
}
a1->m_forceID = v18;
}