// // sub_6067EC from 0x6067ec to 0x6068ac (192 bytes) // // 2 xrefs: // > sub_607BBC @ 0x608206 // > sub_607BBC @ 0x608264 // // 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 // void (*__fastcall sub_6067EC(int a1, pugi::xml_attribute_struct *a2, void (*a3)(), void (*a4)()))() { pugi::xml_node_struct *v8; // r1 void (*result)(); // r0 pugi::xml_node_struct *v10; // r1 pugi::xml_node_struct *v11; // r1 pugi::xml_node_struct *v12; // r0 pugi::xml_node_struct *v13; // r1 pugi::xml_node_struct *v14; // r1 pugi::xml_node v15; // [sp+4h] [bp-4h] BYREF void (*v16[2])(); // [sp+8h] [bp+0h] BYREF v16[0] = a3; v16[1] = a4; sub_6065F8(a1, a2, (pugi::xml_attribute_struct *)a3, (pugi::xml_attribute_struct *)a4); v15._root = pugi::xml_node::first_child((pugi::xml_node *)a3, v8); while ( 1 ) { result = pugi::xml_node::operator void (*)(pugi::xml_node***)((void (**)())&v15); if ( !result ) return result; result = (void (*)())pugi::xml_node::operator!=(&v15, a3); if ( !result ) return result; sub_6065F8(a1, a2, (pugi::xml_attribute_struct *)&v15, (pugi::xml_attribute_struct *)a4); v16[0] = (void (*)())pugi::xml_node::first_child(&v15, v10); if ( pugi::xml_node::operator void (*)(pugi::xml_node***)(v16) ) { v12 = pugi::xml_node::first_child(&v15, v11); goto LABEL_8; } v16[0] = (void (*)())pugi::xml_node::next_sibling(&v15, v11); if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(v16) ) { while ( 1 ) { v16[0] = (void (*)())pugi::xml_node::next_sibling(&v15, v13); if ( !pugi::xml_node::operator!(v16) || !pugi::xml_node::operator!=(&v15, a3) ) break; v15._root = pugi::xml_node::parent(&v15, v14); } if ( !pugi::xml_node::operator!=(&v15, a3) ) continue; } v12 = pugi::xml_node::next_sibling(&v15, v13); LABEL_8: v15._root = v12; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source