// File: /workspace/github_cpp_makefile_star2_O3/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 0x18778(%rip), %rsi     # 0x366f2
leaq 0x18772(%rip), %rdx     # 0x366f3
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 0x1dfb9
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x1a0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18722(%rip), %rsi     # 0x366ed
leaq 0x1871e(%rip), %rdx     # 0x366f0
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 0x1e00a
movq -0x1a0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x180(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18781(%rip), %rsi     # 0x3679d
leaq 0x1877d(%rip), %rdx     # 0x367a0
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 0x1e05e
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x40(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x18678(%rip), %rsi     # 0x366e5
leaq 0x1867c(%rip), %rdx     # 0x366f0
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 0x1e0ca
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x160(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x186c1(%rip), %rsi     # 0x3679d
leaq 0x186bd(%rip), %rdx     # 0x367a0
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 0x180ee(%rip), %rcx     # 0x36209
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 0x1e14a
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x1e150
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 0x1857f(%rip), %rsi     # 0x366f1
callq 0x7910
leaq -0x120(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e1a5
movq %rdx, -0x130(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x120(%rbp)
jmp 0x1e1ad
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 0x1e1fb
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1e210
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x1e225
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x170(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e240
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 0x18446(%rip), %rsi     # 0x366f4
leaq 0x1844f(%rip), %rdx     # 0x36704
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 0x1e2f9
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x150(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e314
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x7510
leaq 0x183ea(%rip), %rsi     # 0x36705
leaq -0x1f0(%rbp), %rdi
movq %r15, %rdx
callq 0x7480
leaq 0x17d3c(%rip), %rsi     # 0x3606d
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 0x1e36b
movq %rdx, -0xf0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe0(%rbp)
jmp 0x1e373
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 0x1e717
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 0x1e3e1
movq %rdx, -0xb0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa0(%rbp)
jmp 0x1e3e7
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 0x17c64(%rip), %rsi     # 0x36070
callq 0x7910
leaq -0x80(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e438
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x1e43e
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 0x1e729
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 0x1e4b8
movq %rdx, -0xd0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xc0(%rbp)
jmp 0x1e4be
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 0x17b8d(%rip), %rsi     # 0x36070
callq 0x7910
leaq -0x100(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e515
movq %rdx, -0x110(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x100(%rbp)
jmp 0x1e51d
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 0x1e73c
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 0x1e582
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x1e588
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 0x18166(%rip), %rsi     # 0x36710
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 0x1e5d9
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x1e5e0
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 0x1e61c
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
leaq -0x238(%rbp), %r14
je 0x1e63c
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x110(%rbp), %rdi
cmpq %r13, %rdi
je 0x1e657
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x1e679
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x1e695
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x1e6b7
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xf0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1e6d2
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x1e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e6f1
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 0x181bb(%rip), %rdi     # 0x368d9
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x7720
leaq 0x181a9(%rip), %rdi     # 0x368d9
movl $0x1, %esi
xorl %eax, %eax
callq 0x7720
leaq 0x18196(%rip), %rdi     # 0x368d9
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 0x1e901
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1e901
movq %rax, -0x30(%rbp)
jmp 0x1e91c
movq %rax, -0x30(%rbp)
jmp 0x1e960
movq %rax, -0x30(%rbp)
jmp 0x1e9a3
jmp 0x1e855
movq %rax, -0x30(%rbp)
movq -0x150(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e9c2
movq -0x140(%rbp), %rsi
jmp 0x1e9ba
jmp 0x1e855
movq %rax, -0x30(%rbp)
movq %r13, %rdi
callq 0x73a0
jmp 0x1e7cb
movq %rax, -0x30(%rbp)
movq %r12, %rdi
callq 0x73a0
jmp 0x1e9c2
jmp 0x1e855
movq %rax, -0x30(%rbp)
movq -0x130(%rbp), %rdi
cmpq %r12, %rdi
je 0x1e7ff
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1e7ff
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1e81a
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1e81a
movq %rax, -0x30(%rbp)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x1e839
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1e839
movq %rax, -0x30(%rbp)
movq -0x170(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e9c2
movq -0x160(%rbp), %rsi
jmp 0x1e9ba
movq %rax, -0x30(%rbp)
jmp 0x1e9c2
movq %rax, -0x30(%rbp)
leaq -0x208(%rbp), %rdi
callq 0x73a0
jmp 0x1e874
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1e9e0
movq -0x40(%rbp), %rsi
jmp 0x1e8eb
jmp 0x1e9dc
movq %rax, -0x30(%rbp)
movq -0x190(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e9e0
movq -0x180(%rbp), %rsi
jmp 0x1e8eb
jmp 0x1e9dc
movq %rax, -0x30(%rbp)
movq -0x1b0(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e9e0
movq -0x1a0(%rbp), %rsi
jmp 0x1e8eb
jmp 0x1e9dc
movq %rax, -0x30(%rbp)
movq -0x1d0(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e9e0
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1e9e0
jmp 0x1e9dc
movq %rax, -0x30(%rbp)
movq -0x110(%rbp), %rdi
cmpq %r13, %rdi
je 0x1e91c
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x1e944
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1e944
movq %rax, -0x30(%rbp)
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x1e960
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x7510
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x1e988
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x7510
jmp 0x1e988
movq %rax, -0x30(%rbp)
movq -0xf0(%rbp), %rdi
cmpq %r12, %rdi
je 0x1e9a3
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x1e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e9c2
movq -0x1e0(%rbp), %rsi
incq %rsi
callq 0x7510
leaq -0x220(%rbp), %rdi
callq 0x73a0
leaq -0x238(%rbp), %rdi
callq 0x73a0
jmp 0x1e9e0
movq %rax, -0x30(%rbp)
movq %r15, %rdi
callq 0x7160
movq -0x30(%rbp), %rdi
callq 0x7870
nop