// File: /workspace/github_cpp_makefile_star2_O1/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 0x29196(%rip), %rcx     # 0x372d0
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 0xe16e
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xe176
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 0x29176(%rip), %rsi     # 0x3730e
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 0xe1ce
movq %rdx, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0xe1d6
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 0xe213
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xe228
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xe23d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
leaq 0x291c2(%rip), %rsi     # 0x37406
leaq -0x128(%rbp), %rdi
movq %rbx, %rdx
callq 0x7480
leaq 0x28e13(%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 0xe28d
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xe293
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 0xe608
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 0xe2fe
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0xe304
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 0x28d47(%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 0xe35b
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0xe361
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 0xe61a
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 0xe3db
movq %rdx, -0x108(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xf8(%rbp)
jmp 0xe3e2
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 0x28c69(%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 0xe430
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xe436
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 0xe62d
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 0xe491
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xe499
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 0x29256(%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 0xe4ed
movq %rdx, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0xe4f5
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 0xe52e
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xe543
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xe55c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xe577
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 0xe5a4
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xc8(%rbp), %rdi
cmpq %r14, %rdi
je 0xe5bf
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0xe5d7
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe5f6
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 0x292ca(%rip), %rdi     # 0x378d9
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x7720
leaq 0x292b8(%rip), %rdi     # 0x378d9
movl $0x1, %esi
xorl %eax, %eax
callq 0x7720
leaq 0x292a5(%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 0xe6b2
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xe6b2
movq %rax, %r14
jmp 0xe6cb
movq %rax, %r14
jmp 0xe70d
movq %rax, %r14
jmp 0xe750
jmp 0xe771
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0xe690
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xe690
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xe774
movq -0x38(%rbp), %rsi
jmp 0xe767
jmp 0xe771
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xe6cb
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xe6eb
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xe6eb
movq %rax, %r14
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0xe70d
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0xe734
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xe734
movq %rax, %r14
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0xe750
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe774
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0xe774
movq %rax, %r14
movq %rbx, %rdi
callq 0x7160
movq %r14, %rdi
callq 0x7870