//
// sub_8101D8 from 0x8101d8 to 0x810224 (76 bytes)
//
// 1 xrefs:
// > sub_819400 @ 0x819ad0
//
// 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:36 +0000
//
int *__fastcall sub_8101D8(int **a1, char a2, char a3, int a4, int *a5)
{
int *result; // r0
int v9; // r2
if ( a4 == 1 && *(_BYTE *)(*a5 + 1) != 1 )
sub_810198((int)a1, (int)"Function has to be applied to node set");
result = sub_8101B8(a1);
if ( result )
{
v9 = *a5;
if ( a4 )
a2 = a3;
*(_BYTE *)result = a2;
*((_BYTE *)result + 1) = 3;
result[1] = v9;
*((_BYTE *)result + 2) = 0;
*((_BYTE *)result + 3) = 0;
result[2] = 0;
result[3] = 0;
}
return result;
}