//
// DS_Dictionary::splitWithForm from 0x80c1dc to 0x80c2be (226 bytes)
//
// 3 xrefs:
// > DS_Dictionary::rectFromString @ 0x80c468
// > DS_Dictionary::rectFromString @ 0x80c488
// > DS_Dictionary::vec2FromString @ 0x80c77c
//
// 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 12:01:31 +0000
//
int __fastcall DS_Dictionary::splitWithForm(int a1, unsigned __int8 *a2, unsigned __int8 **a3)
{
int v4; // r4
int v7; // r4
int v8; // r4
int v9; // r0
int v10; // r4
int v11; // r0
unsigned __int8 *v12; // r3
int v13; // r4
int v14; // r4
int v15; // r4
int v17[3]; // [sp+8h] [bp-14h] BYREF
v4 = *a2;
if ( (v4 & 1) != 0 )
v7 = *((_DWORD *)a2 + 1);
else
v7 = v4 >> 1;
if ( v7 )
{
v8 = std::string::find(a2, 123, 0);
v9 = std::string::find(a2, 125, 0);
if ( v8 == -1 || v9 == -1 || v8 > v9 )
{
return 0;
}
else
{
std::string::basic_string(v17, a2, v8 + 1, v9 - v8 - 1);
if ( (v17[0] & 1) != 0 )
v7 = v17[1];
else
v7 = (int)LOBYTE(v17[0]) >> 1;
if ( v7 )
{
v10 = std::string::find((unsigned __int8 *)v17, 123, 0);
v11 = std::string::find((unsigned __int8 *)v17, 125, 0);
if ( v10 == -1
&& v11 == -1
&& (DS_Dictionary::split(a1, (unsigned __int8 *)v17, ",", (int)a3),
v12 = *a3,
-1431655765 * ((a3[1] - *a3) >> 2) == 2) )
{
v13 = *v12;
if ( (v13 & 1) != 0 )
v7 = *((_DWORD *)v12 + 1);
else
v7 = v13 >> 1;
if ( v7 )
{
v14 = v12[12];
if ( (v14 & 1) != 0 )
v15 = *((_DWORD *)v12 + 4);
else
v15 = v14 >> 1;
v7 = v15 != 0;
}
}
else
{
v7 = 0;
}
}
std::string::~string((int)v17);
}
}
return v7;
}