// File: /workspace/github_cpp_makefile_star2_O1/SMT-COMP[P]scrambler/scrambler.cpp
// Function: get_named_annot(scrambler::node*)
std::string get_named_annot(scrambler::node *root)
{
    std::vector<scrambler::node *> to_process;
    std::unordered_set<scrambler::node *> seen;

    to_process.push_back(root);
    while (!to_process.empty()) {
        scrambler::node *cur = to_process.back();
        to_process.pop_back();

        if (!seen.insert(cur).second) {
            continue;
        }
        if (cur->symbol == "!") {
            if (cur->children.size() >= 1) {
                to_process.push_back(cur->children[0]);
            }
            if (cur->children.size() >= 2) {
                for (size_t j = 1; j < cur->children.size(); ++j) {
                    scrambler::node *attr = cur->children[j];
                    if (attr->symbol == ":named" &&
                        !attr->children.empty()) {
                        return attr->children[0]->symbol;
                    }
                }
            }
        } else {
            for (size_t j = 0; j < cur->children.size(); ++j) {
                to_process.push_back(cur->children[j]);
            }
        }
    }

    return "";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %r13
movq %rsi, 0x38(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x5562
movq %rsi, (%rax)
addq $0x8, 0x18(%rsp)
jmp 0x5574
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rdx
movq %rax, %rsi
callq 0x6f62
movq 0x18(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x5735
leaq 0x40(%rsp), %r14
movq %rsp, %rbp
leaq 0x10(%rsp), %rbx
movq %r13, 0x30(%rsp)
movq -0x8(%rax), %rcx
addq $-0x8, %rax
movq %rcx, (%rsp)
movq %rax, 0x18(%rsp)
movq %r14, 0x28(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
leaq 0x28(%rsp), %rdx
callq 0x7ddc
movl $0x2, %r15d
testb $0x1, %dl
je 0x571f
movq (%rsp), %rdi
leaq 0x6cf0(%rip), %rsi      # 0xc2c6
callq 0x30a0
movq (%rsp), %rcx
movq 0x10(%rcx), %rdx
movq 0x18(%rcx), %rcx
testl %eax, %eax
je 0x5643
cmpq %rdx, %rcx
je 0x571c
xorl %r15d, %r15d
xorl %r12d, %r12d
addq %r15, %rdx
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x5617
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, 0x18(%rsp)
jmp 0x561f
movq %rbx, %rdi
callq 0x6f62
incq %r12
movq (%rsp), %rax
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rax
subq %rdx, %rax
sarq $0x3, %rax
addq $0x8, %r15
cmpq %rax, %r12
jb 0x55fa
jmp 0x571c
cmpq %rdx, %rcx
je 0x566a
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x5662
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, 0x18(%rsp)
jmp 0x566a
movq %rbx, %rdi
callq 0x6f62
movq (%rsp), %rax
movq 0x18(%rax), %rcx
subq 0x10(%rax), %rcx
cmpq $0x9, %rcx
jb 0x571c
movq (%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x18(%rcx), %rcx
subq %rax, %rcx
movl $0x4, %r15d
cmpq $0x9, %rcx
setae %r12b
jb 0x5716
movl $0x1, %ebp
movq (%rax,%rbp,8), %r13
movq %r13, %rdi
leaq 0x6d09(%rip), %rsi      # 0xc3bb
callq 0x30a0
testl %eax, %eax
jne 0x56c5
movq 0x10(%r13), %rax
cmpq 0x18(%r13), %rax
jne 0x56eb
incq %rbp
movq (%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x18(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %rbp
setb %r12b
jb 0x56a4
movq 0x30(%rsp), %r13
jmp 0x5713
movq (%rax), %rax
movq (%rax), %rdi
addq $-0x18, %rdi
leaq 0x28(%rsp), %rsi
leaq 0xf(%rsp), %rdx
callq 0x3140
movq 0x30(%rsp), %r13
movq %rax, (%r13)
movl $0x1, %r15d
movq %rsp, %rbp
testb $0x1, %r12b
jne 0x571f
xorl %r15d, %r15d
testb $0x5, %r15b
jne 0x574d
movq 0x18(%rsp), %rax
cmpq %rax, 0x10(%rsp)
jne 0x5596
leaq 0x723a(%rip), %rdi      # 0xc976
leaq 0x28(%rsp), %rdx
movq %rdi, %rsi
callq 0x6876
movq %rax, (%r13)
leaq 0x40(%rsp), %rdi
callq 0x6774
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5766
callq 0x3230
movq %r13, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5782
jmp 0x5782
jmp 0x5782
jmp 0x5782
jmp 0x5782
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x6774
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x579e
callq 0x3230
movq %rbx, %rdi
callq 0x3400