// File: /workspace/github_cpp_makefile_star2_O3/ys1998[P]spsim/src/writer.cpp
// Function: Writer::tock()
void Writer::tock(void){
	Instruction i1 = std::get<0>(t1), i2 = std::get<0>(t2), i3 = std::get<0>(t3);
	if(i1.is_valid()){
		i1.WB = CLOCK;
		a->graduate(i1);
		Instruction reset; t1 = std::make_tuple(reset, 0);
	}
	if(i2.is_valid()){
		i2.WB = CLOCK;
		a->graduate(i2);
		Instruction reset; t2 = std::make_tuple(reset, 0, 0);
	}
	if(i3.is_valid()){
		i3.WB = CLOCK;
		a->graduate(i3);
		Instruction reset; t3 = std::make_tuple(reset, 0);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
leaq 0x1f0(%rsp), %rdi
movl $0xa, %ecx
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x60(%rbx), %rsi
movq 0x68(%rbx), %rdx
addq %rsi, %rdx
callq 0x5274
movq 0x80(%rbx), %rax
movq %rax, 0x10(%rbp)
leaq 0x110(%rbx), %r15
leaq 0x178(%rsp), %rdi
movl $0xa, %ecx
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x1c8(%rsp), %rdi
leaq 0x1d8(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x160(%rbx), %rsi
movq 0x168(%rbx), %rdx
addq %rsi, %rdx
callq 0x5274
movq 0x180(%rbx), %rax
movq %rax, 0x1e8(%rsp)
leaq 0x90(%rbx), %rsi
leaq 0x100(%rsp), %rdi
movl $0xa, %ecx
movq %rsi, (%rsp)
rep  movsq (%rsi), %es:(%rdi)
leaq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xe0(%rbx), %rsi
movq 0xe8(%rbx), %rdx
addq %rsi, %rdx
callq 0x5274
movq 0x100(%rbx), %rax
movq %rax, 0x170(%rsp)
cmpl $-0x1, 0x1f4(%rsp)
je 0x15495
cmpl $-0x1, 0x1f0(%rsp)
je 0x15495
leaq 0x6e5c(%rip), %rax      # 0x1c204
movl (%rax), %eax
leaq 0x1f0(%rsp), %rsi
movl %eax, 0x4c(%rsi)
movq 0x1a0(%rbx), %rdi
callq 0xcac8
leaq 0x88(%rsp), %rdi
callq 0x7a5a
leaq 0x10(%rsp), %r13
movl $0x0, -0x8(%r13)
leaq 0x88(%rsp), %rax
movl $0xa, %ecx
movq %r13, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x60(%rsp), %rbp
leaq 0x70(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x50(%rax), %rsi
movq 0x58(%rax), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x5274
leaq 0x60(%rbx), %rax
movq 0xf8(%rsp), %rcx
movq %rcx, 0x80(%rsp)
movl $0xa, %ecx
movq %r12, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, %rdi
movq %rbp, %rsi
callq 0x3270
movq 0x80(%rsp), %rax
movq %rax, 0x80(%rbx)
movl 0x8(%rsp), %eax
movl %eax, 0x8(%rbx)
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x1546c
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x250(%rsp), %rbp
je 0x15495
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3200
cmpl $-0x1, 0x17c(%rsp)
je 0x155a6
cmpl $-0x1, 0x178(%rsp)
je 0x155a6
leaq 0x6d4c(%rip), %rax      # 0x1c204
movl (%rax), %eax
leaq 0x178(%rsp), %rsi
movl %eax, 0x4c(%rsi)
movq 0x1a0(%rbx), %rdi
callq 0xcac8
leaq 0x88(%rsp), %rdi
callq 0x7a5a
leaq 0x10(%rsp), %r12
movq $0x0, -0x8(%r12)
leaq 0x88(%rsp), %rax
movl $0xa, %ecx
movq %r12, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x60(%rsp), %r13
leaq 0x70(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x50(%rax), %rsi
movq 0x58(%rax), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x5274
leaq 0x160(%rbx), %rax
movq 0xf8(%rsp), %rcx
movq %rcx, 0x80(%rsp)
movl $0xa, %ecx
movq %r15, %rdi
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, %rdi
movq %r13, %rsi
callq 0x3270
movq 0x80(%rsp), %rax
movq %rax, 0x180(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0x108(%rbx)
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x15585
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x155a6
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3200
cmpl $-0x1, 0x104(%rsp)
je 0x156b5
cmpl $-0x1, 0x100(%rsp)
je 0x156b5
leaq 0x6c3b(%rip), %rax      # 0x1c204
movl (%rax), %eax
leaq 0x100(%rsp), %rsi
movl %eax, 0x4c(%rsi)
movq 0x1a0(%rbx), %rdi
callq 0xcac8
leaq 0x88(%rsp), %rdi
callq 0x7a5a
leaq 0x10(%rsp), %r15
movl $0x0, -0x8(%r15)
leaq 0x88(%rsp), %rax
movl $0xa, %ecx
movq %r15, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x60(%rsp), %r12
leaq 0x70(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x50(%rax), %rsi
movq 0x58(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x5274
leaq 0xe0(%rbx), %rax
movq 0xf8(%rsp), %rcx
movq %rcx, 0x80(%rsp)
movl $0xa, %ecx
movq (%rsp), %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, %rdi
movq %r12, %rsi
callq 0x3270
movq 0x80(%rsp), %rax
movq %rax, 0x100(%rbx)
movl 0x8(%rsp), %eax
movl %eax, 0x88(%rbx)
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x15694
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x156b5
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x156da
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x1c8(%rsp), %rdi
leaq 0x1d8(%rsp), %rax
cmpq %rax, %rdi
je 0x156ff
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x240(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1571c
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x3200
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15736
jmp 0x15768
jmp 0x15736
jmp 0x15768
movq %rax, %rbx
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1576b
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x1576b
jmp 0x15768
movq %rax, %rbx
jmp 0x15790
movq %rax, %rbx
jmp 0x157b5
movq %rax, %rbx
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x15790
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x1c8(%rsp), %rdi
leaq 0x1d8(%rsp), %rax
cmpq %rax, %rdi
je 0x157b5
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %rax
cmpq %rax, %rdi
je 0x157da
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rdi
callq 0x3340