// File: /workspace/github_cpp_makefile_star2_O3/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 0xc53c
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa137(%rip), %rsi      # 0x16260
leaq 0xa139(%rip), %rdx      # 0x16269
leaq 0x128(%rsp), %rdi
callq 0x530a
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xa11a(%rip), %rsi      # 0x1626a
leaq 0xa119(%rip), %rdx      # 0x16270
leaq 0x88(%rsp), %rdi
callq 0x530a
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0xc1bf
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xc1b6
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xc1bc
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xc1bf
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xc183
addl $-0x3, %r15d
jmp 0xc1bf
addl $-0x2, %r15d
jmp 0xc1bf
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 0xa9ce
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x98(%rsp), %rsi
cmpq %rsi, %rcx
je 0xc227
movq 0x98(%rsp), %rdi
movq 0x68(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xc24a
movl $0xf, %edi
leaq 0x78(%rsp), %r9
cmpq %r9, %rsi
je 0xc245
movq 0x78(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xc259
leaq 0x88(%rsp), %rdi
callq 0x30c0
jmp 0xc267
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 0xc28b
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xc291
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 0x9fbc(%rip), %rsi      # 0x16271
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 0xc2e6
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xc2ed
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, %edi
cmpq %r15, %rcx
je 0xc35a
movq 0x58(%rsp), %rdi
movq 0xa8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xc37e
movl $0xf, %edi
cmpq %rbp, %rsi
je 0xc379
movq 0xb8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xc38a
leaq 0x48(%rsp), %rdi
callq 0x30c0
jmp 0xc39b
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 0xc3bf
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xc3c5
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 0x9cb5(%rip), %rsi      # 0x1609e
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 0xc423
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0xc42b
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 0xdab0
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0xc474
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc48f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc4ac
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xc4c3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc4de
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xc4fa
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xc51f
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0xc53c
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3200
movslq %ebx, %rax
cmpb $0x0, (%r14,%rax)
je 0xc550
movb $0x0, (%r14,%rax)
jmp 0xc7cc
leaq 0xfc89(%rip), %rax      # 0x1c1e0
cmpl $0x0, (%rax)
jle 0xc7cc
leaq 0x118(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x9cec(%rip), %rsi      # 0x16260
leaq 0x9cee(%rip), %rdx      # 0x16269
leaq 0x108(%rsp), %rdi
callq 0x530a
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x9cf6(%rip), %rsi      # 0x1628e
leaq 0x9cf8(%rip), %rdx      # 0x16297
leaq 0x48(%rsp), %rdi
callq 0x530a
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0xc604
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xc5fb
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xc601
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xc604
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xc5c8
addl $-0x3, %r14d
jmp 0xc604
addl $-0x2, %r14d
jmp 0xc604
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 0xa9ce
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0xc656
movq 0x58(%rsp), %rdi
movq 0x28(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xc674
movl $0xf, %edi
cmpq %r13, %rsi
je 0xc66f
movq 0x38(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xc680
leaq 0x48(%rsp), %rdi
callq 0x30c0
jmp 0xc68e
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 0xc6b2
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xc6b8
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 0x9be5(%rip), %rsi      # 0x162c1
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 0xc716
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0xc71d
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 0xe343
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0xc766
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc781
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xc798
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xc7af
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x108(%rsp), %rdi
cmpq %r12, %rdi
je 0xc7cc
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 0xc803
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc803
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc823
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc823
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xc83f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc83f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xc85b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc85b
movq %rax, %rbx
movq 0x108(%rsp), %rdi
jmp 0xc95e
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0xc88d
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc88d
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc8ad
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc8ad
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc8cf
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc8cf
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xc8eb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc8eb
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc90b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc90b
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xc92c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc92c
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xc956
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc956
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0xc96f
movq (%r12), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rdi
callq 0x3340
nop