//
// pugi::xml_node::previous_sibling from 0x8121f8 to 0x81222e (54 bytes)
//
// 9 xrefs:
// > pugi::xml_node_iterator::operator-- @ 0x813db8
// > sub_815B5C @ 0x815b8e
// > sub_815B5C @ 0x815b98
// > sub_815B5C @ 0x815bb4
// > sub_815B5C @ 0x815be4
// > sub_815B5C @ 0x815c1e
// > sub_815B5C @ 0x815c40
// > sub_816CF0 @ 0x817798
// > sub_816CF0 @ 0x8177f0
//
// 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::previous_sibling(pugi::xml_node *this, int a2)
{
int v2; // r1
_DWORD v4[2]; // [sp+0h] [bp-8h] BYREF
v4[0] = this;
v4[1] = a2;
if ( *(_DWORD *)this && (v2 = *(_DWORD *)(*(_DWORD *)this + 20), *(_DWORD *)(v2 + 24)) )
pugi::xml_node::xml_node(v4, v2);
else
pugi::xml_node::xml_node(v4);
return v4[0];
}