// File: gprateek93[P]LaTeX_to_HTML/converter.cpp
// Function: converter::traverseAnchor[abi:cxx11](ast_node*, int)
string converter :: traverseAnchor(ast_node * root, int type){
    string s = "";
    if(type == 9){
        //label
        s += "<a name=\"" + root->data + "\"/>";
    }
    else{
        //ref
        s += "<a href=\"#" + root->data + "\">" + root->data + "</a>";
    }
    s += traverseChildren(root);
    return s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x120(%rbp)
movq %rdi, %rax
movq %rax, -0x130(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x128(%rbp)
movb $0x0, -0x1d(%rbp)
leaq -0x1e(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x34a0
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rdx
leaq 0x5777(%rip), %rsi      # 0x12566
callq 0x7b80
jmp 0xcdf6
leaq -0x1e(%rbp), %rdi
callq 0x32e0
cmpl $0x9, -0x1c(%rbp)
jne 0xcebe
movq -0x18(%rbp), %rdx
addq $0x8, %rdx
leaq 0x5d0e(%rip), %rsi      # 0x12b26
leaq -0x70(%rbp), %rdi
callq 0xe2d0
jmp 0xce23
leaq 0x5d06(%rip), %rdx      # 0x12b30
leaq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xe110
jmp 0xce39
movq -0x120(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x3360
jmp 0xce4b
leaq -0x50(%rbp), %rdi
callq 0x3528
leaq -0x70(%rbp), %rdi
callq 0x3528
jmp 0xcfdf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x1e(%rbp), %rdi
callq 0x32e0
jmp 0xd067
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xd05b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xceb0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x3528
leaq -0x70(%rbp), %rdi
callq 0x3528
jmp 0xd05b
movq -0x18(%rbp), %rdx
addq $0x8, %rdx
leaq 0x5c67(%rip), %rsi      # 0x12b34
leaq -0xf0(%rbp), %rdi
callq 0xe2d0
jmp 0xcedb
leaq 0x5c5d(%rip), %rdx      # 0x12b3f
leaq -0xd0(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0xe110
jmp 0xcef7
movq -0x18(%rbp), %rdx
addq $0x8, %rdx
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0xe1b0
jmp 0xcf14
leaq 0x5c27(%rip), %rdx      # 0x12b42
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xe110
jmp 0xcf30
movq -0x120(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3360
jmp 0xcf45
leaq -0x90(%rbp), %rdi
callq 0x3528
leaq -0xb0(%rbp), %rdi
callq 0x3528
leaq -0xd0(%rbp), %rdi
callq 0x3528
leaq -0xf0(%rbp), %rdi
callq 0x3528
jmp 0xcfdf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xcfd1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xcfc5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xcfb9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x3528
leaq -0xb0(%rbp), %rdi
callq 0x3528
leaq -0xd0(%rbp), %rdi
callq 0x3528
leaq -0xf0(%rbp), %rdi
callq 0x3528
jmp 0xd05b
movq -0x128(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x110(%rbp), %rdi
callq 0xc270
jmp 0xcff8
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x3360
jmp 0xd00d
leaq -0x110(%rbp), %rdi
callq 0x3528
movb $0x1, -0x1d(%rbp)
testb $0x1, -0x1d(%rbp)
jne 0xd04b
jmp 0xd03f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x3528
jmp 0xd05b
movq -0x120(%rbp), %rdi
callq 0x3528
movq -0x130(%rbp), %rax
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
movq -0x120(%rbp), %rdi
callq 0x3528
movq -0x28(%rbp), %rdi
callq 0x3490