// // pugi::xml_node::prepend_attribute from 0x603340 to 0x6033bc (124 bytes) // // 1 xrefs: // > pugi::xml_node::prepend_copy @ 0x60358e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // pugi::xml_attribute_struct *__fastcall pugi::xml_node::prepend_attribute(pugi::xml_node *this, char *a2) { unsigned int v4; // r1 unsigned int v5; // r2 _DWORD *v6; // r0 pugi::xml_node_struct *root; // r2 pugi::xml_attribute_struct *result; // r0 int v9; // r3 pugi::xml_attribute v10; // [sp+4h] [bp-10h] BYREF pugi::xml_attribute v11; // [sp+8h] [bp-Ch] BYREF if ( (pugi::xml_node::type(this) == (pugi::xml_node_struct *)((char *)&dword_0 + 2) || pugi::xml_node::type(this) == (pugi::xml_node_struct *)&byte_7) && (v6 = sub_600CE4(*(unsigned int **)(*(_DWORD *)this->_root & 0xFFFFFFE0), v4, v5), pugi::xml_attribute::xml_attribute(&v10, (int)v6), !pugi::xml_attribute::operator!(&v10)) ) { pugi::xml_attribute::set_name(&v10, a2); root = this->_root; result = v10._attr; v9 = *((_DWORD *)this->_root + 7); if ( v9 ) { *((_DWORD *)v10._attr + 3) = *(_DWORD *)(v9 + 12); *(_DWORD *)(v9 + 12) = result; } else { *((pugi::xml_attribute *)v10._attr + 3) = v10; } *((_DWORD *)result + 4) = v9; *((_DWORD *)root + 7) = result; } else { pugi::xml_attribute::xml_attribute(&v11); return v11._attr; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source