//
// sub_815CB4 from 0x815cb4 to 0x815d4a (150 bytes)
//
// 7 xrefs:
// > sub_815D54 @ 0x815d7a
// > sub_816CF0 @ 0x8170b8
// > sub_816CF0 @ 0x817116
// > sub_816CF0 @ 0x817362
// > sub_816CF0 @ 0x8173c2
// > sub_816CF0 @ 0x81789c
// > sub_816CF0 @ 0x8178d4
//
// 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:42 +0000
//
int __fastcall sub_815CB4(int a1, _DWORD *a2, pugi::xml_attribute *a3, const pugi::xml_node *a4, int a5)
{
int result; // r0
const char *v10; // r10
int v11[3]; // [sp+4h] [bp-Ch] BYREF
v11[0] = (int)a2;
v11[1] = (int)a3;
v11[2] = (int)a4;
result = pugi::xml_attribute::operator!(a3);
if ( !result )
{
v10 = (const char *)pugi::xml_attribute::name(a3);
result = sub_80F798((int)v10, (int)"xmlns");
if ( !result || v10[5] && v10[5] != 58 )
{
switch ( *(_BYTE *)(a1 + 3) )
{
case 1:
result = sub_80FCB4(v10, *(const char **)(a1 + 16));
goto LABEL_8;
case 2:
case 7:
goto LABEL_9;
case 8:
result = sub_80F798((int)v10, *(_DWORD *)(a1 + 16));
LABEL_8:
if ( result )
{
LABEL_9:
pugi::xpath_node::xpath_node((pugi::xpath_node *)v11, (void (**)())a3, a4);
result = sub_81114C(a2, v11, a5);
}
break;
default:
return result;
}
}
}
return result;
}