//
// sub_812344 from 0x812344 to 0x8123dc (152 bytes)
//
// 2 xrefs:
// > sub_812514 @ 0x8125d4
// > sub_812514 @ 0x812816
//
// 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_812344(void *a1, pugi::xml_node *this, char a3))()
{
void (*result)(); // r0
char *v6; // r1
char *v7; // r1
int v8; // r1
void (*v9[2])(); // [sp+0h] [bp-8h] BYREF
v9[1] = (void (*)())this;
for ( v9[0] = (void (*)())pugi::xml_node::first_attribute(this, (int)this);
;
v9[0] = (void (*)())pugi::xml_attribute::next_attribute((pugi::xml_attribute *)v9, v8) )
{
result = pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(v9);
if ( !result )
break;
sub_811014((int)a1, 32);
if ( *(_BYTE *)pugi::xml_attribute::name((pugi::xml_attribute *)v9) )
v6 = (char *)pugi::xml_attribute::name((pugi::xml_attribute *)v9);
else
v6 = ":anonymous";
sub_8113FE((int)a1, v6);
sub_810F72((int)a1, 61, 34);
v7 = (char *)pugi::xml_attribute::value((pugi::xml_attribute *)v9);
if ( (a3 & 0x10) != 0 )
sub_8113FE((int)a1, v7);
else
sub_811294(a1, (unsigned __int8 *)v7, 2u);
sub_811014((int)a1, 34);
}
return result;
}