// File: /workspace/github_cpp_makefile_star2_O1/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 0x2c254(%rip), %rcx     # 0x371cc
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 0xafac
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xafb4
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 0x2c235(%rip), %rsi     # 0x3720b
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 0xb00c
movq %rdx, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0xb014
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 0xb051
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xb066
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xb07b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
leaq 0x2c30e(%rip), %rsi     # 0x37390
leaq -0x128(%rbp), %rdi
movq %rbx, %rdx
callq 0x7480
leaq 0x2bfd5(%rip), %rsi     # 0x3706d
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 0xb0cb
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xb0d1
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 0xb446
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 0xb13c
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0xb142
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 0x2bf09(%rip), %rsi     # 0x37070
callq 0x7910
leaq -0x98(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb199
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0xb19f
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 0xb458
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 0xb219
movq %rdx, -0x108(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xf8(%rbp)
jmp 0xb220
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 0x2be2b(%rip), %rsi     # 0x37070
callq 0x7910
leaq -0x38(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb26e
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xb274
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 0xb46b
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 0xb2cf
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xb2d7
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 0x2c418(%rip), %rsi     # 0x37711
callq 0x7910
addq $0x40, %rbx
movq %r13, -0xe8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb32b
movq %rdx, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0xb333
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 0xb36c
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xb381
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xb39a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xb3b5
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 0xb3e2
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xc8(%rbp), %rdi
cmpq %r14, %rdi
je 0xb3fd
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0xb415
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb434
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 0x2c48c(%rip), %rdi     # 0x378d9
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x7720
leaq 0x2c47a(%rip), %rdi     # 0x378d9
movl $0x1, %esi
xorl %eax, %eax
callq 0x7720
leaq 0x2c467(%rip), %rdi     # 0x378d9
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x7720
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xb4f0
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xb4f0
movq %rax, %r14
jmp 0xb509
movq %rax, %r14
jmp 0xb54b
movq %rax, %r14
jmp 0xb58e
jmp 0xb5af
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xb4ce
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xb4ce
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xb5b2
movq -0x38(%rbp), %rsi
jmp 0xb5a5
jmp 0xb5af
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xb509
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xb529
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xb529
movq %rax, %r14
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0xb54b
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0xb572
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xb572
movq %rax, %r14
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0xb58e
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb5b2
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xb5b2
movq %rax, %r14
movq %rbx, %rdi
callq 0x7160
movq %r14, %rdi
callq 0x7870