// File: /workspace/github_cpp_makefile_star2_O1/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), %r14
movq %r14, -0x10(%r14)
movq 0x60(%rbx), %rsi
movq 0x68(%rbx), %rdx
addq %rsi, %rdx
callq 0x52b6
movq 0x80(%rbx), %rax
movq %rax, 0x10(%r14)
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 0x52b6
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 0x52b6
movq 0x100(%rbx), %rax
movq %rax, 0x170(%rsp)
cmpl $-0x1, 0x1f4(%rsp)
je 0x16152
cmpl $-0x1, 0x1f0(%rsp)
je 0x16152
leaq 0x719c(%rip), %rax      # 0x1d204
movl (%rax), %eax
leaq 0x1f0(%rsp), %rsi
movl %eax, 0x4c(%rsi)
movq 0x1a0(%rbx), %rdi
callq 0xced4
leaq 0x88(%rsp), %rdi
callq 0x7c0a
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 0x52b6
movq 0xf8(%rsp), %rax
movq %rax, 0x80(%rsp)
movl $0xa, %ecx
movq %r12, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x60(%rbx), %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 0x16129
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x250(%rsp), %r14
je 0x16152
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3200
cmpl $-0x1, 0x17c(%rsp)
je 0x16268
cmpl $-0x1, 0x178(%rsp)
je 0x16268
leaq 0x708f(%rip), %rax      # 0x1d204
movl (%rax), %eax
leaq 0x178(%rsp), %rsi
movl %eax, 0x4c(%rsi)
movq 0x1a0(%rbx), %rdi
callq 0xced4
leaq 0x88(%rsp), %rdi
callq 0x7c0a
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), %rbp
movq %rbp, -0x10(%rbp)
movq 0x50(%rax), %rsi
movq 0x58(%rax), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x52b6
movq 0xf8(%rsp), %rax
movq %rax, 0x80(%rsp)
movl $0xa, %ecx
movq %r15, %rdi
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x160(%rbx), %rdi
movq %r13, %rsi
callq 0x3270
movq 0x80(%rsp), %rax
movq %rax, 0x180(%rbx)
movl 0xc(%rsp), %eax
movl %eax, 0x10c(%rbx)
movl 0x8(%rsp), %eax
movl %eax, 0x108(%rbx)
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0x16247
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16268
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3200
cmpl $-0x1, 0x104(%rsp)
je 0x1637c
cmpl $-0x1, 0x100(%rsp)
je 0x1637c
leaq 0x6f79(%rip), %rax      # 0x1d204
movl (%rax), %eax
leaq 0x100(%rsp), %rsi
movl %eax, 0x4c(%rsi)
movq 0x1a0(%rbx), %rdi
callq 0xced4
leaq 0x88(%rsp), %rdi
callq 0x7c0a
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 0x52b6
movq 0xf8(%rsp), %rax
movq %rax, 0x80(%rsp)
movl $0xa, %ecx
movq (%rsp), %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0xe0(%rbx), %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 0x16353
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x250(%rsp), %r14
je 0x1637c
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x163a1
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x1c8(%rsp), %rdi
leaq 0x1d8(%rsp), %rax
cmpq %rax, %rdi
je 0x163c6
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x240(%rsp), %rdi
cmpq %r14, %rdi
je 0x163e3
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 0x163fd
jmp 0x1642f
jmp 0x163fd
jmp 0x1642f
movq %rax, %rbx
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16432
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x16432
jmp 0x1642f
movq %rax, %rbx
jmp 0x16457
movq %rax, %rbx
jmp 0x1647c
movq %rax, %rbx
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x16457
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x1c8(%rsp), %rdi
leaq 0x1d8(%rsp), %rax
cmpq %rax, %rdi
je 0x1647c
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %rax
cmpq %rax, %rdi
je 0x164a1
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rdi
callq 0x3340
nop