// File: tap3edit[P]tap3xml/global.cpp
// Function: remove_xml_rules(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string remove_xml_rules(string str)
{
    int pos, i;


    string repl_items[][2]={
         { "&lt;",      "<" }
        ,{ "&gt;",      ">" }
        ,{ "&amp;",     "&" }
        ,{ "&apos;",    "'" }
        ,{ "&quot;",    "\"" }
    };

    for (i=0;i<5;i++)
    {
        while ((pos=str.find(repl_items[i][0])) != (int)string::npos)
        {
            str.replace(str.find(repl_items[i][0]),repl_items[i][0].size(),repl_items[i][1]);
        }
    }

    return str;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x320, %rsp            # imm = 0x320
movq %rsi, -0x1f0(%rbp)
movq %rdi, -0x1e8(%rbp)
movq %rdi, %rax
movq %rax, -0x1e0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x1, -0x1c4(%rbp)
leaq -0x160(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq %rax, -0x168(%rbp)
movb $0x1, -0x186(%rbp)
movq %rax, -0x170(%rbp)
leaq -0x171(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x46e0
movq -0x1d8(%rbp), %rdi
movq -0x1d0(%rbp), %rdx
leaq 0xfc36(%rip), %rsi      # 0x25b63
callq 0x7670
jmp 0x15f34
leaq -0x140(%rbp), %rax
movq %rax, -0x200(%rbp)
movq %rax, -0x170(%rbp)
leaq -0x185(%rbp), %rdi
movq %rdi, -0x1f8(%rbp)
callq 0x46e0
movq -0x200(%rbp), %rdi
movq -0x1f8(%rbp), %rdx
leaq 0xfb7e(%rip), %rsi      # 0x25aef
callq 0x7670
jmp 0x15f78
movb $0x0, -0x186(%rbp)
leaq -0x120(%rbp), %rax
movq %rax, -0x210(%rbp)
movq %rax, -0x168(%rbp)
movb $0x1, -0x193(%rbp)
movq %rax, -0x190(%rbp)
leaq -0x191(%rbp), %rdi
movq %rdi, -0x208(%rbp)
callq 0x46e0
movq -0x210(%rbp), %rdi
movq -0x208(%rbp), %rdx
leaq 0xfb9e(%rip), %rsi      # 0x25b68
callq 0x7670
jmp 0x15fd1
movq -0x210(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x220(%rbp)
movq %rax, -0x190(%rbp)
leaq -0x192(%rbp), %rdi
movq %rdi, -0x218(%rbp)
callq 0x46e0
movq -0x220(%rbp), %rdi
movq -0x218(%rbp), %rdx
leaq 0xffda(%rip), %rsi      # 0x25fec
callq 0x7670
jmp 0x16019
movb $0x0, -0x193(%rbp)
leaq -0xe0(%rbp), %rax
movq %rax, -0x230(%rbp)
movq %rax, -0x168(%rbp)
movb $0x1, -0x1a3(%rbp)
movq %rax, -0x1a0(%rbp)
leaq -0x1a1(%rbp), %rdi
movq %rdi, -0x228(%rbp)
callq 0x46e0
movq -0x230(%rbp), %rdi
movq -0x228(%rbp), %rdx
leaq 0xfb02(%rip), %rsi      # 0x25b6d
callq 0x7670
jmp 0x16072
movq -0x230(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x240(%rbp)
movq %rax, -0x1a0(%rbp)
leaq -0x1a2(%rbp), %rdi
movq %rdi, -0x238(%rbp)
callq 0x46e0
movq -0x240(%rbp), %rdi
movq -0x238(%rbp), %rdx
leaq 0xfa8c(%rip), %rsi      # 0x25b3f
callq 0x7670
jmp 0x160ba
movb $0x0, -0x1a3(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0x250(%rbp)
movq %rax, -0x168(%rbp)
movb $0x1, -0x1b3(%rbp)
movq %rax, -0x1b0(%rbp)
leaq -0x1b1(%rbp), %rdi
movq %rdi, -0x248(%rbp)
callq 0x46e0
movq -0x250(%rbp), %rdi
movq -0x248(%rbp), %rdx
leaq 0xfa67(%rip), %rsi      # 0x25b73
callq 0x7670
jmp 0x16113
movq -0x250(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x260(%rbp)
movq %rax, -0x1b0(%rbp)
leaq -0x1b2(%rbp), %rdi
movq %rdi, -0x258(%rbp)
callq 0x46e0
movq -0x260(%rbp), %rdi
movq -0x258(%rbp), %rdx
leaq 0xf9c1(%rip), %rsi      # 0x25b15
callq 0x7670
jmp 0x1615b
movb $0x0, -0x1b3(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x270(%rbp)
movq %rax, -0x168(%rbp)
movb $0x1, -0x1c3(%rbp)
movq %rax, -0x1c0(%rbp)
leaq -0x1c1(%rbp), %rdi
movq %rdi, -0x268(%rbp)
callq 0x46e0
movq -0x270(%rbp), %rdi
movq -0x268(%rbp), %rdx
leaq 0xf9d0(%rip), %rsi      # 0x25b7a
callq 0x7670
jmp 0x161b1
movq -0x270(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x280(%rbp)
movq %rax, -0x1c0(%rbp)
leaq -0x1c2(%rbp), %rdi
movq %rdi, -0x278(%rbp)
callq 0x46e0
movq -0x280(%rbp), %rdi
movq -0x278(%rbp), %rdx
leaq 0xfd01(%rip), %rsi      # 0x25ef3
callq 0x7670
jmp 0x161f9
movb $0x0, -0x1c3(%rbp)
movb $0x0, -0x1c4(%rbp)
leaq -0x1c2(%rbp), %rdi
callq 0x43d0
leaq -0x1c1(%rbp), %rdi
callq 0x43d0
leaq -0x1b2(%rbp), %rdi
callq 0x43d0
leaq -0x1b1(%rbp), %rdi
callq 0x43d0
leaq -0x1a2(%rbp), %rdi
callq 0x43d0
leaq -0x1a1(%rbp), %rdi
callq 0x43d0
leaq -0x192(%rbp), %rdi
callq 0x43d0
leaq -0x191(%rbp), %rdi
callq 0x43d0
leaq -0x185(%rbp), %rdi
callq 0x43d0
leaq -0x171(%rbp), %rdi
callq 0x43d0
movl $0x0, -0x18(%rbp)
cmpl $0x5, -0x18(%rbp)
jge 0x166e2
jmp 0x16292
movq -0x1f0(%rbp), %rdi
movslq -0x18(%rbp), %rax
leaq -0x160(%rbp), %rsi
shlq $0x6, %rax
addq %rax, %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x47c0
movl %eax, -0x14(%rbp)
cmpl $-0x1, %eax
je 0x166d2
movq -0x1f0(%rbp), %rdi
movslq -0x18(%rbp), %rax
shlq $0x6, %rax
leaq -0x160(%rbp,%rax), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x47c0
movq %rax, -0x288(%rbp)
movslq -0x18(%rbp), %rax
shlq $0x6, %rax
leaq -0x160(%rbp,%rax), %rdi
callq 0x4250
movq -0x1f0(%rbp), %rdi
movq -0x288(%rbp), %rsi
movq %rax, %rdx
movslq -0x18(%rbp), %rax
shlq $0x6, %rax
leaq -0x140(%rbp,%rax), %rcx
callq 0x4130
jmp 0x16324
jmp 0x16292
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
jmp 0x165db
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
jmp 0x165cf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
jmp 0x16569
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
jmp 0x1655d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
jmp 0x164f7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
jmp 0x164eb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
jmp 0x16485
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
jmp 0x16479
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
jmp 0x16413
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
leaq -0x1c2(%rbp), %rdi
callq 0x43d0
leaq -0x1c1(%rbp), %rdi
callq 0x43d0
testb $0x1, -0x1c3(%rbp)
jne 0x1642a
jmp 0x16477
movq -0x270(%rbp), %rcx
movq -0x1c0(%rbp), %rax
cmpq %rax, %rcx
movq %rax, -0x290(%rbp)
je 0x16475
movq -0x290(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x298(%rbp)
callq 0x41e0
movq -0x270(%rbp), %rcx
movq -0x298(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x290(%rbp)
jne 0x16444
jmp 0x16477
jmp 0x16479
leaq -0x1b2(%rbp), %rdi
callq 0x43d0
leaq -0x1b1(%rbp), %rdi
callq 0x43d0
testb $0x1, -0x1b3(%rbp)
jne 0x1649c
jmp 0x164e9
movq -0x250(%rbp), %rcx
movq -0x1b0(%rbp), %rax
cmpq %rax, %rcx
movq %rax, -0x2a0(%rbp)
je 0x164e7
movq -0x2a0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2a8(%rbp)
callq 0x41e0
movq -0x250(%rbp), %rcx
movq -0x2a8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2a0(%rbp)
jne 0x164b6
jmp 0x164e9
jmp 0x164eb
leaq -0x1a2(%rbp), %rdi
callq 0x43d0
leaq -0x1a1(%rbp), %rdi
callq 0x43d0
testb $0x1, -0x1a3(%rbp)
jne 0x1650e
jmp 0x1655b
movq -0x230(%rbp), %rcx
movq -0x1a0(%rbp), %rax
cmpq %rax, %rcx
movq %rax, -0x2b0(%rbp)
je 0x16559
movq -0x2b0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2b8(%rbp)
callq 0x41e0
movq -0x230(%rbp), %rcx
movq -0x2b8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2b0(%rbp)
jne 0x16528
jmp 0x1655b
jmp 0x1655d
leaq -0x192(%rbp), %rdi
callq 0x43d0
leaq -0x191(%rbp), %rdi
callq 0x43d0
testb $0x1, -0x193(%rbp)
jne 0x16580
jmp 0x165cd
movq -0x210(%rbp), %rcx
movq -0x190(%rbp), %rax
cmpq %rax, %rcx
movq %rax, -0x2c0(%rbp)
je 0x165cb
movq -0x2c0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2c8(%rbp)
callq 0x41e0
movq -0x210(%rbp), %rcx
movq -0x2c8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2c0(%rbp)
jne 0x1659a
jmp 0x165cd
jmp 0x165cf
leaq -0x185(%rbp), %rdi
callq 0x43d0
leaq -0x171(%rbp), %rdi
callq 0x43d0
testb $0x1, -0x186(%rbp)
jne 0x165f2
jmp 0x1663f
movq -0x170(%rbp), %rax
leaq -0x160(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x2d0(%rbp)
je 0x1663d
movq -0x2d0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2d8(%rbp)
callq 0x41e0
movq -0x2d8(%rbp), %rax
leaq -0x160(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x2d0(%rbp)
jne 0x1660c
jmp 0x1663f
testb $0x1, -0x1c4(%rbp)
jne 0x1664a
jmp 0x1669e
movq -0x168(%rbp), %rax
leaq -0x160(%rbp), %rcx
movq %rcx, -0x2e8(%rbp)
cmpq %rax, %rcx
movq %rax, -0x2e0(%rbp)
je 0x1669c
movq -0x2e0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2f0(%rbp)
callq 0x41e0
movq -0x2e8(%rbp), %rcx
movq -0x2f0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2e0(%rbp)
jne 0x1666b
jmp 0x1669e
jmp 0x16784
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x180(%rbp)
movl %eax, -0x184(%rbp)
leaq -0x160(%rbp), %rax
movq %rax, -0x300(%rbp)
addq $0x140, %rax            # imm = 0x140
movq %rax, -0x2f8(%rbp)
jmp 0x16751
jmp 0x166d4
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x16286
movq -0x1f0(%rbp), %rsi
movq -0x1e8(%rbp), %rdi
callq 0x41d0
leaq -0x160(%rbp), %rax
movq %rax, -0x310(%rbp)
addq $0x140, %rax            # imm = 0x140
movq %rax, -0x308(%rbp)
movq -0x308(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x318(%rbp)
callq 0x41e0
movq -0x310(%rbp), %rcx
movq -0x318(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x308(%rbp)
jne 0x16710
movq -0x1e0(%rbp), %rax
addq $0x320, %rsp            # imm = 0x320
popq %rbp
retq
movq -0x2f8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x320(%rbp)
callq 0x41e0
movq -0x300(%rbp), %rcx
movq -0x320(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2f8(%rbp)
jne 0x16751
jmp 0x16784
movq -0x180(%rbp), %rdi
callq 0x46d0