//
// sub_8123E4 from 0x8123e4 to 0x81245a (118 bytes)
//
// 2 xrefs:
// > sub_816440 @ 0x8164b6
// > sub_816440 @ 0x816510
//
// 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:38 +0000
//
void (*__fastcall sub_8123E4(pugi::xml_node *a1, int a2, int a3))()
{
_BYTE *v3; // r6
int v4; // r1
void (*i)(); // [sp+8h] [bp-Ch] BYREF
if ( *(_DWORD *)a1 )
{
for ( i = (void (*)())pugi::xml_node::first_attribute(a1, a2);
pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(&i);
i = (void (*)())pugi::xml_attribute::next_attribute((pugi::xml_attribute *)&i, v4) )
{
v3 = pugi::xml_attribute::name((pugi::xml_attribute *)&i);
if ( sub_80F798((int)v3, (int)"xmlns") )
{
v4 = a2;
if ( a2 )
{
if ( v3[5] == 58 && sub_80F552((int)(v3 + 6), a2, a3) )
return i;
}
else if ( !v3[5] )
{
return i;
}
}
}
}
pugi::xml_attribute::xml_attribute(&i);
return i;
}