// File: /workspace/github_cpp_makefile_star2_O1/ys1998[P]spsim/src/lists.cpp
// Function: FreeList::add(int)
void FreeList::add(int reg){
	if(reg < 0 || reg >= NUM_PHY_REGS)
		error_msg("free_list", std::string("Index ") + std::to_string(reg) + " greater than maximum size (" + std::to_string(NUM_PHY_REGS) + ")");
	if(free[reg]){
		if(LOG_LEVEL >= 1)
			warning_msg("free_list", std::string("Register ") + std::to_string(reg) + " is already free; can't add to free list");
	}else{
		free[reg] = true;	
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movl %esi, %ebx
movq %rdi, %r14
cmpl $0x40, %esi
jb 0xc0b9
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb5c1(%rip), %rsi      # 0x17260
leaq 0xb5c3(%rip), %rdx      # 0x17269
leaq 0x128(%rsp), %rdi
callq 0x5346
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb5a4(%rip), %rsi      # 0x1726a
leaq 0xb5a3(%rip), %rdx      # 0x17270
leaq 0x88(%rsp), %rdi
callq 0x5346
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0xbd35
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xbd2c
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xbd32
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xbd35
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xbcf9
addl $-0x3, %r15d
jmp 0xbd35
addl $-0x2, %r15d
jmp 0xbd35
decl %r15d
movl %ebx, %r13d
shrl $0x1f, %r13d
leal (%r15,%r13), %esi
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x68(%rsp), %rdi
movl $0x2d, %edx
callq 0x3250
movl %r13d, %edi
addq 0x68(%rsp), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0xada0
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq 0x98(%rsp), %rdi
cmpq %rdi, %rcx
je 0xbd9d
movq 0x98(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xbdbd
movl $0xf, %esi
leaq 0x78(%rsp), %rdi
cmpq %rdi, 0x68(%rsp)
je 0xbdb8
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xbdd1
movq 0x68(%rsp), %rsi
leaq 0x88(%rsp), %rdi
callq 0x30c0
jmp 0xbddf
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3230
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xbe03
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xbe09
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xb444(%rip), %rsi      # 0x17271
leaq 0x28(%rsp), %rdi
callq 0x3380
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xbe5e
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xbe65
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xb8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xa8(%rsp), %rdi
movl $0x2, %esi
movl $0x2d, %edx
callq 0x3250
movq 0xa8(%rsp), %rax
movw $0x3436, (%rax)         # imm = 0x3436
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0xbed2
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xbef3
movl $0xf, %esi
cmpq %rbp, 0xa8(%rsp)
je 0xbeee
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xbf07
movq 0xa8(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x30c0
jmp 0xbf18
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3230
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xbf3c
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xbf42
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xb138(%rip), %rsi      # 0x1709e
leaq 0x8(%rsp), %rdi
callq 0x3380
leaq 0xf8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xbfa0
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0xbfa8
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0xe8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x128(%rsp), %rdi
callq 0xdfd8
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0xbff1
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc00c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc029
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xc040
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc05b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xc077
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xc09c
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0xc0b9
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3200
movslq %ebx, %rax
cmpb $0x1, (%r14,%rax)
jne 0xc172
leaq 0x11112(%rip), %rax     # 0x1d1e0
cmpl $0x0, (%rax)
jle 0xc34f
leaq 0x118(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb175(%rip), %rsi      # 0x17260
leaq 0xb177(%rip), %rdx      # 0x17269
leaq 0x108(%rsp), %rdi
callq 0x5346
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xb17f(%rip), %rsi      # 0x1728e
leaq 0xb181(%rip), %rdx      # 0x17297
leaq 0x48(%rsp), %rdi
callq 0x5346
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0xc185
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xc17c
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xc182
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xc185
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xc13f
addl $-0x3, %r14d
jmp 0xc185
movb $0x1, (%r14,%rax)
jmp 0xc34f
addl $-0x2, %r14d
jmp 0xc185
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x3250
movl %ebx, %edi
addq 0x28(%rsp), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0xada0
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0xc1d7
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xc1f2
movl $0xf, %esi
cmpq %r13, 0x28(%rsp)
je 0xc1ed
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xc203
movq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x30c0
jmp 0xc211
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3230
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xc235
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xc23b
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xb039(%rip), %rsi      # 0x17298
leaq 0x8(%rsp), %rdi
callq 0x3380
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc299
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0xc2a0
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0xc8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x108(%rsp), %rdi
callq 0xe875
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0xc2e9
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc304
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xc31b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xc332
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x108(%rsp), %rdi
cmpq %r12, %rdi
je 0xc34f
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3200
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0xc386
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc386
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc3a6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc3a6
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xc3c2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc3c2
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xc3de
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc3de
movq %rax, %rbx
movq 0x108(%rsp), %rdi
jmp 0xc4e1
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0xc410
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc410
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc430
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc430
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc452
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc452
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xc46e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc46e
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc48e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc48e
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xc4af
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc4af
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xc4d9
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc4d9
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0xc4f2
movq (%r12), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rdi
callq 0x3340