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

    this->generate = "NOR_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 %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0xa690
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa410
leaq 0x80(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xa810
leaq 0x98(%rbx), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0xa3e0
movl $0x4, 0x60(%rbx)
leaq -0x40(%rbp), %rdi
pushq $0x2
popq %rsi
callq 0xa9a0
leaq 0x10c04(%rip), %rsi     # 0x1f3ac
leaq -0x60(%rbp), %rdi
leaq -0x40(%rbp), %rdx
callq 0xac40
leaq 0x10c2f(%rip), %rdx     # 0x1f3eb
leaq -0x120(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0xa150
leaq 0x20(%rbx), %rdi
leaq -0x120(%rbp), %r12
movq %r12, %rsi
callq 0xa920
movq %r12, %rdi
callq 0xa370
leaq -0x60(%rbp), %rdi
callq 0xa370
leaq -0x40(%rbp), %rdi
callq 0xa370
leaq 0x10c05(%rip), %rsi     # 0x1f405
leaq -0x80(%rbp), %rdi
movq %rbx, %rdx
callq 0xa6c0
leaq 0x1085a(%rip), %rdx     # 0x1f06d
leaq -0xa0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xa150
movq %r15, %rdi
xorl %esi, %esi
callq 0xa200
leaq -0xc0(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movq %rax, %rdx
callq 0xaaf0
leaq 0x10826(%rip), %rdx     # 0x1f070
leaq -0xe0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0xa150
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0xa200
leaq -0x100(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
movq %rax, %rdx
callq 0xaaf0
leaq 0x107eb(%rip), %rdx     # 0x1f070
leaq -0x40(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xa150
movq %r14, %rdi
xorl %esi, %esi
callq 0xa200
leaq -0x60(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movq %rax, %rdx
callq 0xaaf0
leaq 0x10e5b(%rip), %rdx     # 0x1f711
leaq -0x120(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0xa150
addq $0x40, %rbx
leaq -0x120(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa920
movq %r14, %rdi
callq 0xa370
leaq -0x60(%rbp), %rdi
callq 0xa370
leaq -0x40(%rbp), %rdi
callq 0xa370
leaq -0x100(%rbp), %rdi
callq 0xa370
leaq -0xe0(%rbp), %rdi
callq 0xa370
leaq -0xc0(%rbp), %rdi
callq 0xa370
leaq -0xa0(%rbp), %rdi
callq 0xa370
leaq -0x80(%rbp), %rdi
callq 0xa370
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x60(%rbp), %rdi
callq 0xa370
jmp 0xe97a
movq %rax, %r14
jmp 0xe983
movq %rax, %r14
jmp 0xe9a0
movq %rax, %r14
jmp 0xe9bd
jmp 0xe9c8
movq %rax, %r14
leaq -0x60(%rbp), %rdi
callq 0xa370
jmp 0xe96f
movq %rax, %r14
leaq -0x40(%rbp), %rdi
jmp 0xe9c1
jmp 0xe9c8
movq %rax, %r14
leaq -0x40(%rbp), %rdi
callq 0xa370
leaq -0x100(%rbp), %rdi
callq 0xa370
jmp 0xe994
movq %rax, %r14
leaq -0xe0(%rbp), %rdi
callq 0xa370
leaq -0xc0(%rbp), %rdi
callq 0xa370
jmp 0xe9b1
movq %rax, %r14
leaq -0xa0(%rbp), %rdi
callq 0xa370
leaq -0x80(%rbp), %rdi
callq 0xa370
jmp 0xe9cb
movq %rax, %r14
movq %rbx, %rdi
callq 0xa230
movq %r14, %rdi
callq 0xad00
nop