// File: /workspace/github_cpp_makefile_star2_O3/Sooryakiran[P]dotV/src/verilog.cpp
// Function: AND::AND(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
AND::AND(string name, vector<wire> input_wires, wire output_wire){
    this->name = name;
    this->inputs = input_wires;
    this->outputs.push_back(output_wire);
    this->transistors = AND_TRANSISTORS;
    this->definition = "module AND_GATE(a, b, c);\n"
                       "\t input a, b;\n"
                       "\t output c;\n"
                       "\t assign #" + to_string(AND_DELAY) + " c = a & b;\n"
                       "endmodule";
    this->generate = "AND_GATE " + this->name + " (" + this->inputs.at(0) + ", " + this->inputs.at(1) + ", " + this->outputs.at(0) + ");";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
xorl %r13d, %r13d
movq %r13, 0x8(%rdi)
movb %r13b, 0x10(%rdi)
leaq 0x30(%rdi), %rax
movq %rax, 0x20(%rdi)
movq %r13, 0x28(%rdi)
movb %r13b, 0x30(%rdi)
leaq 0x50(%rdi), %rax
movq %rax, 0x40(%rdi)
movq %r13, 0x48(%rdi)
movb %r13b, 0x50(%rdi)
movl %r13d, 0x60(%rdi)
addq $0x68, %rdi
movq %r13, 0x108(%rbx)
movl %r13d, 0x110(%rbx)
movq %r13, 0x148(%rbx)
movl %r13d, 0x150(%rbx)
movl $0x9c, %edx
xorl %esi, %esi
callq 0x72e0
xorps %xmm0, %xmm0
movups %xmm0, 0x118(%rbx)
movups %xmm0, 0x128(%rbx)
movups %xmm0, 0x134(%rbx)
movups %xmm0, 0x158(%rbx)
movups %xmm0, 0x168(%rbx)
movups %xmm0, 0x178(%rbx)
movq %r13, 0x188(%rbx)
movl $0x1, 0x190(%rbx)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x72d0
leaq 0x80(%rbx), %rdi
movq %r15, %rsi
callq 0x7570
leaq 0x98(%rbx), %rdi
movq %r14, %rsi
callq 0x72a0
movl $0x6, 0x60(%rbx)
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq -0x48(%rbp), %rdi
movl $0x1, %esi
movl $0x2d, %edx
callq 0x75e0
leaq -0x48(%rbp), %rdi
movq (%rdi), %rax
movb $0x32, (%rax)
leaq 0x2b3ec(%rip), %rcx     # 0x361cc
movl $0x3e, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x75b0
leaq -0x58(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xae14
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xae1c
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2b3cd(%rip), %rsi     # 0x3620b
callq 0x7910
leaq 0x20(%rbx), %rdi
leaq -0xd8(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xae74
movq %rdx, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0xae7c
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq -0xe8(%rbp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r14, %rsi
callq 0x7610
movq (%r14), %rdi
cmpq %r13, %rdi
je 0xaeb9
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xaece
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xaee3
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
leaq 0x2b4a6(%rip), %rsi     # 0x36390
leaq -0x128(%rbp), %rdi
movq %rbx, %rdx
callq 0x7480
leaq 0x2b16d(%rip), %rsi     # 0x3606d
leaq -0x128(%rbp), %rdi
callq 0x7910
leaq -0x78(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xaf33
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xaf39
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%rbx), %rax
cmpq %rax, 0x88(%rbx)
je 0xb2ae
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq -0x88(%rbp), %rdi
callq 0x7140
leaq -0xb8(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xafa4
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0xafaa
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0xc8(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2b0a1(%rip), %rsi     # 0x36070
callq 0x7910
leaq -0x98(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb001
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0xb007
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xa0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%rbx), %rax
movq 0x88(%rbx), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x1, %rdx
jbe 0xb2c0
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x7140
leaq -0xf8(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb081
movq %rdx, -0x108(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xf8(%rbp)
jmp 0xb088
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x108(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2afc3(%rip), %rsi     # 0x36070
callq 0x7910
leaq -0x38(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb0d6
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xb0dc
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x98(%rbx), %rax
cmpq %rax, 0xa0(%rbx)
je 0xb2d3
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq -0x48(%rbp), %rdi
callq 0x7140
movq %r12, -0x68(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb137
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xb13f
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2b5b0(%rip), %rsi     # 0x36711
callq 0x7910
addq $0x40, %rbx
movq %r13, -0xe8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb193
movq %rdx, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0xb19b
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7610
movq (%r14), %rdi
cmpq %r13, %rdi
je 0xb1d4
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xb1e9
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xb202
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xb21d
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
leaq -0x78(%rbp), %rbx
leaq -0xb8(%rbp), %r14
je 0xb24a
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xc8(%rbp), %rdi
cmpq %r14, %rdi
je 0xb265
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0xb27d
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb29c
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x7510
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2b624(%rip), %rdi     # 0x368d9
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x7720
leaq 0x2b612(%rip), %rdi     # 0x368d9
movl $0x1, %esi
xorl %eax, %eax
callq 0x7720
leaq 0x2b5ff(%rip), %rdi     # 0x368d9
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x7720
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xb358
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xb358
movq %rax, %r14
jmp 0xb371
movq %rax, %r14
jmp 0xb3b3
movq %rax, %r14
jmp 0xb3f6
jmp 0xb417
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xb336
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xb336
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xb41a
movq -0x38(%rbp), %rsi
jmp 0xb40d
jmp 0xb417
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xb371
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xb391
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xb391
movq %rax, %r14
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0xb3b3
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0xb3da
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xb3da
movq %rax, %r14
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0xb3f6
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb41a
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xb41a
movq %rax, %r14
movq %rbx, %rdi
callq 0x7160
movq %r14, %rdi
callq 0x7870