// File: /workspace/github_cpp_makefile_star2_O3/Sooryakiran[P]dotV/src/verilog.cpp
// Function: OR::OR(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>>)
OR::OR(string name, vector<wire> input_wires, wire output_wire){
    this->name = name;
    this->inputs = input_wires;
    this->outputs.push_back(output_wire);
    this->transistors = OR_TRANSISTORS;
    this->definition = "module OR_GATE(a, b, c);\n"
                    "\t input a, b;\n"
                    "\t output c;\n"
                    "\t assign #" + to_string(OR_DELAY) + "  c = a | b;\n"
                    "endmodule";

    this->generate =  "OR_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 0x28336(%rip), %rcx     # 0x362d0
movl $0x3d, %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 0xdfce
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xdfd6
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 0x28316(%rip), %rsi     # 0x3630e
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 0xe02e
movq %rdx, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0xe036
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 0xe073
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xe088
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xe09d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
leaq 0x28362(%rip), %rsi     # 0x36406
leaq -0x128(%rbp), %rdi
movq %rbx, %rdx
callq 0x7480
leaq 0x27fb3(%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 0xe0ed
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xe0f3
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 0xe468
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 0xe15e
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0xe164
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 0x27ee7(%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 0xe1bb
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0xe1c1
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 0xe47a
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 0xe23b
movq %rdx, -0x108(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xf8(%rbp)
jmp 0xe242
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 0x27e09(%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 0xe290
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xe296
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 0xe48d
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 0xe2f1
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xe2f9
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 0x283f6(%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 0xe34d
movq %rdx, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0xe355
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 0xe38e
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xe3a3
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xe3bc
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xe3d7
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 0xe404
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xc8(%rbp), %rdi
cmpq %r14, %rdi
je 0xe41f
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0xe437
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe456
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 0x2846a(%rip), %rdi     # 0x368d9
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x7720
leaq 0x28458(%rip), %rdi     # 0x368d9
movl $0x1, %esi
xorl %eax, %eax
callq 0x7720
leaq 0x28445(%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 0xe512
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xe512
movq %rax, %r14
jmp 0xe52b
movq %rax, %r14
jmp 0xe56d
movq %rax, %r14
jmp 0xe5b0
jmp 0xe5d1
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xe4f0
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xe4f0
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xe5d4
movq -0x38(%rbp), %rsi
jmp 0xe5c7
jmp 0xe5d1
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xe52b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xe54b
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xe54b
movq %rax, %r14
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0xe56d
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0xe594
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xe594
movq %rax, %r14
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0xe5b0
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe5d4
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xe5d4
movq %rax, %r14
movq %rbx, %rdi
callq 0x7160
movq %r14, %rdi
callq 0x7870