//
// pugi::xpath_node_set::_assign from 0x816aac to 0x816b0c (96 bytes)
//
// 3 xrefs:
// > pugi::xpath_node_set::xpath_node_set @ 0x816b4c
// > pugi::xpath_node_set::xpath_node_set @ 0x816b72
// > pugi::xpath_node_set::operator= @ 0x816b8c
//
// 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
//
void __fastcall pugi::xpath_node_set::_assign(
pugi::xpath_node_set *this,
const pugi::xpath_node *a2,
const pugi::xpath_node *a3)
{
size_t v3; // r5
pugi::xpath_node_set *v7; // r0
_DWORD *v8; // r6
int v9; // r1
_DWORD *v10; // r0
pugi::xpath_node_set *v11; // r0
v3 = a3 - a2;
if ( (unsigned int)(a3 - a2) > 0xF )
{
v10 = (_DWORD *)off_D2006C(a3 - a2);
v8 = v10;
if ( !v10 )
return;
memcpy(v10, a2, v3);
v11 = *((pugi::xpath_node_set **)this + 3);
if ( v11 != (pugi::xpath_node_set *)((char *)this + 4) )
off_D20070(v11);
}
else
{
v7 = *((pugi::xpath_node_set **)this + 3);
v8 = (_DWORD *)((char *)this + 4);
if ( v7 != (pugi::xpath_node_set *)((char *)this + 4) )
off_D20070(v7);
if ( a2 != a3 )
{
v9 = *((_DWORD *)a2 + 1);
*v8 = *(_DWORD *)a2;
*((_DWORD *)this + 2) = v9;
}
}
*((_DWORD *)this + 3) = v8;
*((_DWORD *)this + 4) = (char *)v8 + v3;
}