//
// pugi::xml_node::last_child from 0x8124d8 to 0x81250e (54 bytes)
//
// 5 xrefs:
// > sub_812514 @ 0x812672
// > pugi::xml_node_iterator::operator-- @ 0x813dc0
// > pugi::xml_named_node_iterator::operator-- @ 0x81401c
// > sub_815B5C @ 0x815bbe
// > sub_815B5C @ 0x815bd0
//
// 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
//
int __fastcall pugi::xml_node::last_child(pugi::xml_node *this, int a2)
{
int v2; // r3
_DWORD v4[2]; // [sp+0h] [bp-8h] BYREF
v4[0] = this;
v4[1] = a2;
if ( *(_DWORD *)this && (v2 = *(_DWORD *)(*(_DWORD *)this + 16)) != 0 )
pugi::xml_node::xml_node(v4, *(_DWORD *)(v2 + 20));
else
pugi::xml_node::xml_node(v4);
return v4[0];
}