//
// pugi::xml_node::select_single_node from 0xddb1f4 to 0xddb29c (168 bytes)
//
// 2 xrefs:
// > pugi::xml_node::select_single_node @ 0xddb2d4
// > ??> @ 0x95a40
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:09:06 +0000
//
__int64 __fastcall pugi::xml_node::select_single_node(pugi::xml_node *this, __int64 **a2)
{
__int64 v3; // x1
_QWORD v5[2]; // [xsp+30h] [xbp+30h] BYREF
_BYTE v6[40]; // [xsp+40h] [xbp+40h] BYREF
pugi::xpath_node::xpath_node((pugi::xpath_node *)v5, this);
pugi::xpath_query::evaluate_node_set(a2, (const pugi::xpath_node *)v5, (pugi::xpath_node_set *)v6);
if ( pugi::xpath_node_set::empty((pugi::xpath_node_set *)v6) )
{
pugi::xpath_node::xpath_node((pugi::xpath_node *)v5);
}
else
{
v5[0] = pugi::xpath_node_set::first((pugi::xpath_node_set *)v6);
v5[1] = v3;
}
pugi::xpath_node_set::~xpath_node_set((pugi::xpath_node_set *)v6);
return v5[0];
}