// File: /workspace/github_cpp_makefile_star2_O3/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 0xbcb6
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa9bd(%rip), %rsi      # 0x16260
leaq 0xa9bf(%rip), %rdx      # 0x16269
leaq 0x128(%rsp), %rdi
callq 0x530a
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xa9a0(%rip), %rsi      # 0x1626a
leaq 0xa99f(%rip), %rdx      # 0x16270
leaq 0x88(%rsp), %rdi
callq 0x530a
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0xb939
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xb930
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xb936
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xb939
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xb8fd
addl $-0x3, %r15d
jmp 0xb939
addl $-0x2, %r15d
jmp 0xb939
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 0xb9a1
movq 0x98(%rsp), %rdi
movq 0x68(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xb9c4
movl $0xf, %edi
leaq 0x78(%rsp), %r9
cmpq %r9, %rsi
je 0xb9bf
movq 0x78(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xb9d3
leaq 0x88(%rsp), %rdi
callq 0x30c0
jmp 0xb9e1
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 0xba05
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xba0b
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 0xa842(%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 0xba60
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xba67
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 0xbad4
movq 0x58(%rsp), %rdi
movq 0xa8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xbaf8
movl $0xf, %edi
cmpq %rbp, %rsi
je 0xbaf3
movq 0xb8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xbb04
leaq 0x48(%rsp), %rdi
callq 0x30c0
jmp 0xbb15
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 0xbb39
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xbb3f
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 0xa53b(%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 0xbb9d
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0xbba5
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 0xbbee
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbc09
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xbc26
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xbc3d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbc58
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xbc74
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xbc99
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0xbcb6
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3200
movslq %ebx, %rax
cmpb $0x1, (%r14,%rax)
jne 0xbd6f
leaq 0x10515(%rip), %rax     # 0x1c1e0
cmpl $0x0, (%rax)
jle 0xbf4a
leaq 0x118(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa578(%rip), %rsi      # 0x16260
leaq 0xa57a(%rip), %rdx      # 0x16269
leaq 0x108(%rsp), %rdi
callq 0x530a
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa582(%rip), %rsi      # 0x1628e
leaq 0xa584(%rip), %rdx      # 0x16297
leaq 0x48(%rsp), %rdi
callq 0x530a
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0xbd82
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xbd79
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xbd7f
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xbd82
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xbd3c
addl $-0x3, %r14d
jmp 0xbd82
movb $0x1, (%r14,%rax)
jmp 0xbf4a
addl $-0x2, %r14d
jmp 0xbd82
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 0xbdd4
movq 0x58(%rsp), %rdi
movq 0x28(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xbdf2
movl $0xf, %edi
cmpq %r13, %rsi
je 0xbded
movq 0x38(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xbdfe
leaq 0x48(%rsp), %rdi
callq 0x30c0
jmp 0xbe0c
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 0xbe30
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xbe36
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 0xa43e(%rip), %rsi      # 0x16298
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 0xbe94
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0xbe9b
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 0xbee4
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbeff
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xbf16
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xbf2d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x108(%rsp), %rdi
cmpq %r12, %rdi
je 0xbf4a
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 0xbf81
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xbf81
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbfa1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xbfa1
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xbfbd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xbfbd
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xbfd9
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xbfd9
movq %rax, %rbx
movq 0x108(%rsp), %rdi
jmp 0xc0dc
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0xc00b
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc00b
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc02b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc02b
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc04d
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc04d
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xc069
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc069
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc089
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc089
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xc0aa
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc0aa
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xc0d4
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0xc0d4
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0xc0ed
movq (%r12), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rdi
callq 0x3340
nop