// File: /workspace/github_cpp_makefile_star2_O1/Sooryakiran[P]dotV/src/verilog.cpp
// Function: FLIP_FLOP::FLIP_FLOP(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>>)
FLIP_FLOP::FLIP_FLOP(string name, vector<wire> input_wires, wire output_wire){
    this->name = name;
    this->inputs = input_wires;
    this->outputs.push_back(output_wire);

    this->declare("A", CHIP_INPUTS);
    this->declare("CLK", CHIP_INPUTS);
    this->declare("OUT", CHIP_OUTPUTS_REG);

    BehaviourModel flipflop({"posedge CLK"});
    flipflop.add("OUT", "#" + to_string(FLIP_FLOP_DELAY) + " A", N_BLOCK);
    flipflop.num_transistors = FLIP_FLOP_TRANSISTORS; 

    this->add_submodule(flipflop);

    this->definition = this->auto_gen("module FLIP_FLOP");
    this->generate = "FLIP_FLOP " + 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 $0x258, %rsp            # imm = 0x258
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
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(%r15)
movl %r13d, 0x110(%r15)
movq %r13, 0x148(%r15)
movl %r13d, 0x150(%r15)
movl $0x9c, %edx
xorl %esi, %esi
callq 0x72e0
xorps %xmm0, %xmm0
movups %xmm0, 0x118(%r15)
movups %xmm0, 0x128(%r15)
movups %xmm0, 0x134(%r15)
movups %xmm0, 0x158(%r15)
movups %xmm0, 0x168(%r15)
movups %xmm0, 0x178(%r15)
movq %r13, 0x188(%r15)
movl $0x1, 0x190(%r15)
movq %r15, %rdi
movq %r12, %rsi
callq 0x72d0
leaq 0x80(%r15), %rdi
movq %rbx, %rsi
callq 0x7570
leaq 0x98(%r15), %rdi
movq %r14, %rsi
callq 0x72a0
leaq -0x1c0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x192a2(%rip), %rsi     # 0x376f2
leaq 0x1929c(%rip), %rdx     # 0x376f3
leaq -0x1d0(%rbp), %rdi
callq 0x7200
leaq -0x1d0(%rbp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x7190
movq -0x1d0(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e48f
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x1a0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x1924c(%rip), %rsi     # 0x376ed
leaq 0x19248(%rip), %rdx     # 0x376f0
leaq -0x1b0(%rbp), %rdi
callq 0x7200
leaq -0x1b0(%rbp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x7190
movq -0x1b0(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e4e0
movq -0x1a0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x180(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x192ab(%rip), %rsi     # 0x3779d
leaq 0x192a7(%rip), %rdx     # 0x377a0
leaq -0x190(%rbp), %rdi
callq 0x7200
leaq -0x190(%rbp), %rsi
movq %r15, %rdi
movl $0x3, %edx
callq 0x7190
movq -0x190(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e534
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x40(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x191a2(%rip), %rsi     # 0x376e5
leaq 0x191a6(%rip), %rdx     # 0x376f0
leaq -0x50(%rbp), %rdi
callq 0x7200
leaq -0x208(%rbp), %rdi
leaq -0x50(%rbp), %rsi
leaq -0x70(%rbp), %rcx
movl $0x1, %edx
callq 0x70f0
leaq -0x240(%rbp), %rdi
leaq -0x208(%rbp), %rsi
callq 0x75f0
leaq -0x208(%rbp), %rdi
callq 0x73a0
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1e5a0
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x160(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x191eb(%rip), %rsi     # 0x3779d
leaq 0x191e7(%rip), %rdx     # 0x377a0
leaq -0x170(%rbp), %rdi
callq 0x7200
leaq -0x60(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0x70(%rbp), %rdi
movl $0x1, %esi
movl $0x2d, %edx
callq 0x75e0
leaq -0x70(%rbp), %rdi
movq (%rdi), %rax
movb $0x36, (%rax)
leaq 0x18c18(%rip), %rcx     # 0x37209
movl $0x1, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x75b0
movq %rbx, -0x50(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e620
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x1e626
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x50(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x190a9(%rip), %rsi     # 0x376f1
callq 0x7910
leaq -0x120(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e67b
movq %rdx, -0x130(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x120(%rbp)
jmp 0x1e683
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rsi
leaq -0x130(%rbp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x240(%rbp), %rdi
leaq -0x170(%rbp), %rsi
xorl %ecx, %ecx
callq 0x75c0
movq -0x130(%rbp), %rdi
cmpq %r12, %rdi
je 0x1e6d1
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1e6e6
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x1e6fb
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x170(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e716
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x7510
movl $0x12, %eax
leaq -0x238(%rbp), %rsi
movl %eax, -0x8(%rsi)
leaq -0x270(%rbp), %r12
movl %eax, -0x8(%r12)
movq %r12, %rdi
callq 0x76c0
leaq -0x258(%rbp), %r13
leaq -0x220(%rbp), %rsi
movq %r13, %rdi
callq 0x76c0
leaq 0x178(%r15), %rdi
leaq -0x278(%rbp), %rsi
callq 0x70d0
movq %r13, %rdi
callq 0x73a0
movq %r12, %rdi
callq 0x73a0
leaq -0x140(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18f70(%rip), %rsi     # 0x376f4
leaq 0x18f79(%rip), %rdx     # 0x37704
leaq -0x150(%rbp), %rdi
callq 0x7200
leaq -0x50(%rbp), %rdi
leaq -0x150(%rbp), %rdx
movq %r15, %rsi
callq 0x72b0
leaq 0x20(%r15), %rdi
leaq -0x50(%rbp), %r12
movq %r12, %rsi
callq 0x7610
movq (%r12), %rdi
cmpq %rbx, %rdi
je 0x1e7cf
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x150(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e7ea
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x7510
leaq 0x18f14(%rip), %rsi     # 0x37705
leaq -0x1f0(%rbp), %rdi
movq %r15, %rdx
callq 0x7480
leaq 0x18866(%rip), %rsi     # 0x3706d
leaq -0x1f0(%rbp), %rdi
callq 0x7910
leaq -0xe0(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e841
movq %rdx, -0xf0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe0(%rbp)
jmp 0x1e849
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0xe8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%r15), %rax
cmpq %rax, 0x88(%r15)
je 0x1ebed
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq -0xf0(%rbp), %rdi
callq 0x7140
leaq -0xa0(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e8b7
movq %rdx, -0xb0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa0(%rbp)
jmp 0x1e8bd
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0xb0(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1878e(%rip), %rsi     # 0x37070
callq 0x7910
leaq -0x80(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e90e
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x1e914
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x88(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%r15), %rax
movq 0x88(%r15), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x1, %rdx
jbe 0x1ebff
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
leaq -0x90(%rbp), %rdi
callq 0x7140
leaq -0xc0(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e98e
movq %rdx, -0xd0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xc0(%rbp)
jmp 0x1e994
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0xd0(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x186b7(%rip), %rsi     # 0x37070
callq 0x7910
leaq -0x100(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e9eb
movq %rdx, -0x110(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x100(%rbp)
jmp 0x1e9f3
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, -0x108(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x98(%r15), %rax
cmpq %rax, 0xa0(%r15)
je 0x1ec12
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq -0x110(%rbp), %rdi
callq 0x7140
leaq -0x60(%rbp), %rsi
movq %rsi, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1ea58
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x1ea5e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x70(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x18c90(%rip), %rsi     # 0x37710
callq 0x7910
addq $0x40, %r15
movq %rbx, -0x50(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq %rbx, %r14
movq %r12, %rbx
je 0x1eaaf
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x1eab6
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq -0x50(%rbp), %r12
movq %rdx, 0x8(%r12)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
movq %r12, %rsi
callq 0x7610
movq (%r12), %rdi
cmpq %r14, %rdi
je 0x1eaf2
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
leaq -0x238(%rbp), %r14
je 0x1eb12
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x110(%rbp), %rdi
cmpq %r13, %rdi
je 0x1eb2d
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x1eb4f
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x1eb6b
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x1eb8d
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xf0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1eba8
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x1e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ebc7
movq -0x1e0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x220(%rbp), %rdi
callq 0x73a0
movq %r14, %rdi
callq 0x73a0
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x18ce5(%rip), %rdi     # 0x378d9
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x7720
leaq 0x18cd3(%rip), %rdi     # 0x378d9
movl $0x1, %esi
xorl %eax, %eax
callq 0x7720
leaq 0x18cc0(%rip), %rdi     # 0x378d9
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x7720
movq %rax, -0x30(%rbp)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x1edd7
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1edd7
movq %rax, -0x30(%rbp)
jmp 0x1edf2
movq %rax, -0x30(%rbp)
jmp 0x1ee36
movq %rax, -0x30(%rbp)
jmp 0x1ee79
jmp 0x1ed2b
movq %rax, -0x30(%rbp)
movq -0x150(%rbp), %rdi
cmpq %r14, %rdi
je 0x1ee98
movq -0x140(%rbp), %rsi
jmp 0x1ee90
jmp 0x1ed2b
movq %rax, -0x30(%rbp)
movq %r13, %rdi
callq 0x73a0
jmp 0x1eca1
movq %rax, -0x30(%rbp)
movq %r12, %rdi
callq 0x73a0
jmp 0x1ee98
jmp 0x1ed2b
movq %rax, -0x30(%rbp)
movq -0x130(%rbp), %rdi
cmpq %r12, %rdi
je 0x1ecd5
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1ecd5
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1ecf0
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1ecf0
movq %rax, -0x30(%rbp)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x1ed0f
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1ed0f
movq %rax, -0x30(%rbp)
movq -0x170(%rbp), %rdi
cmpq %r14, %rdi
je 0x1ee98
movq -0x160(%rbp), %rsi
jmp 0x1ee90
movq %rax, -0x30(%rbp)
jmp 0x1ee98
movq %rax, -0x30(%rbp)
leaq -0x208(%rbp), %rdi
callq 0x73a0
jmp 0x1ed4a
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1eeb6
movq -0x40(%rbp), %rsi
jmp 0x1edc1
jmp 0x1eeb2
movq %rax, -0x30(%rbp)
movq -0x190(%rbp), %rdi
cmpq %r14, %rdi
je 0x1eeb6
movq -0x180(%rbp), %rsi
jmp 0x1edc1
jmp 0x1eeb2
movq %rax, -0x30(%rbp)
movq -0x1b0(%rbp), %rdi
cmpq %r14, %rdi
je 0x1eeb6
movq -0x1a0(%rbp), %rsi
jmp 0x1edc1
jmp 0x1eeb2
movq %rax, -0x30(%rbp)
movq -0x1d0(%rbp), %rdi
cmpq %r14, %rdi
je 0x1eeb6
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1eeb6
jmp 0x1eeb2
movq %rax, -0x30(%rbp)
movq -0x110(%rbp), %rdi
cmpq %r13, %rdi
je 0x1edf2
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x1ee1a
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1ee1a
movq %rax, -0x30(%rbp)
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x1ee36
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x1ee5e
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1ee5e
movq %rax, -0x30(%rbp)
movq -0xf0(%rbp), %rdi
cmpq %r12, %rdi
je 0x1ee79
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x1e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ee98
movq -0x1e0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x220(%rbp), %rdi
callq 0x73a0
leaq -0x238(%rbp), %rdi
callq 0x73a0
jmp 0x1eeb6
movq %rax, -0x30(%rbp)
movq %r15, %rdi
callq 0x7160
movq -0x30(%rbp), %rdi
callq 0x7870
nop