// File: /workspace/github_cpp_makefile_star2_O1/ys1998[P]spsim/src/lists.cpp
// Function: FreeList::remove(int)
void FreeList::remove(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 not free; can't remove from free list");
	}else{
		free[reg] = false;	
	}
}

// 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 0xc947
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xad33(%rip), %rsi      # 0x17260
leaq 0xad35(%rip), %rdx      # 0x17269
leaq 0x128(%rsp), %rdi
callq 0x5346
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xad16(%rip), %rsi      # 0x1726a
leaq 0xad15(%rip), %rdx      # 0x17270
leaq 0x88(%rsp), %rdi
callq 0x5346
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0xc5c3
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xc5ba
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xc5c0
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xc5c3
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xc587
addl $-0x3, %r15d
jmp 0xc5c3
addl $-0x2, %r15d
jmp 0xc5c3
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 0xc62b
movq 0x98(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xc64b
movl $0xf, %esi
leaq 0x78(%rsp), %rdi
cmpq %rdi, 0x68(%rsp)
je 0xc646
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xc65f
movq 0x68(%rsp), %rsi
leaq 0x88(%rsp), %rdi
callq 0x30c0
jmp 0xc66d
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 0xc691
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xc697
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 0xabb6(%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 0xc6ec
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xc6f3
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 0xc760
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xc781
movl $0xf, %esi
cmpq %rbp, 0xa8(%rsp)
je 0xc77c
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xc795
movq 0xa8(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x30c0
jmp 0xc7a6
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 0xc7ca
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xc7d0
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 0xa8aa(%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 0xc82e
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0xc836
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 0xc87f
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc89a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc8b7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xc8ce
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc8e9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xc905
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xc92a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0xc947
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3200
movslq %ebx, %rax
cmpb $0x0, (%r14,%rax)
je 0xc95b
movb $0x0, (%r14,%rax)
jmp 0xcbd9
leaq 0x1087e(%rip), %rax     # 0x1d1e0
cmpl $0x0, (%rax)
jle 0xcbd9
leaq 0x118(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa8e1(%rip), %rsi      # 0x17260
leaq 0xa8e3(%rip), %rdx      # 0x17269
leaq 0x108(%rsp), %rdi
callq 0x5346
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa8eb(%rip), %rsi      # 0x1728e
leaq 0xa8ed(%rip), %rdx      # 0x17297
leaq 0x48(%rsp), %rdi
callq 0x5346
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0xca0f
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xca06
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xca0c
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xca0f
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xc9d3
addl $-0x3, %r14d
jmp 0xca0f
addl $-0x2, %r14d
jmp 0xca0f
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 0xca61
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xca7c
movl $0xf, %esi
cmpq %r13, 0x28(%rsp)
je 0xca77
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xca8d
movq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x30c0
jmp 0xca9b
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 0xcabf
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xcac5
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 0xa7d8(%rip), %rsi      # 0x172c1
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 0xcb23
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0xcb2a
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 0xcb73
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcb8e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xcba5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xcbbc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x108(%rsp), %rdi
cmpq %r12, %rdi
je 0xcbd9
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 0xcc10
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xcc10
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcc30
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xcc30
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xcc4c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xcc4c
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xcc68
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xcc68
movq %rax, %rbx
movq 0x108(%rsp), %rdi
jmp 0xcd6b
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0xcc9a
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xcc9a
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xccba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xccba
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xccdc
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xccdc
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xccf8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xccf8
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcd18
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xcd18
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xcd39
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xcd39
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xcd63
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xcd63
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0xcd7c
movq (%r12), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rdi
callq 0x3340