//
// sub_6CA1A0 from 0x6ca1a0 to 0x6ca1d8 (56 bytes)
//
// 5 xrefs:
// > tk::spline::operator= @ 0x6ca1de
// > tk::spline::operator= @ 0x6ca1ea
// > tk::spline::operator= @ 0x6ca1f6
// > tk::spline::operator= @ 0x6ca202
// > tk::spline::operator= @ 0x6ca20e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:56:58 +0000
//
void __fastcall sub_6CA1A0(char **a1, char **a2)
{
char *v3; // r0
char *v5; // r3
v3 = *a1;
if ( v3 )
{
while ( 1 )
{
v5 = a1[1];
if ( v3 == v5 )
break;
a1[1] = v5 - 8;
}
operator delete(v3);
a1[2] = nullptr;
a1[1] = nullptr;
*a1 = nullptr;
}
*a1 = *a2;
a1[1] = a2[1];
a1[2] = a2[2];
a2[2] = nullptr;
a2[1] = nullptr;
*a2 = nullptr;
}