// File: /workspace/github_cpp_makefile_star2_O1/ys1998[P]spsim/src/queues.cpp
// Function: AddressQueue::findswaddr(int)
bool AddressQueue::findswaddr(int index){
	int myaddr = _addr[index];
	for(size_t i=0; i < _q.size() && i < (unsigned int)index; ++i){
		if ((myaddr == _addr[i] && ((std::get<0>(_q[i].type()))) == OPCODE["sw"])){
			return 0;
		}
	}
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movabsq $-0x200000000000000, %r8 # imm = 0xFE00000000000000
movq 0x68(%rdi), %rcx
movq %rcx, %rax
subq 0x70(%rdi), %rax
movslq %esi, %rdx
sarq $0x2, %rax
addq %rdx, %rax
cmpq $0x7f, %rax
ja 0x142b6
leaq (%rcx,%rdx,4), %rax
jmp 0x142e3
movq 0x80(%rbx), %rcx
movq %rax, %rdx
shrq $0x7, %rdx
movq %rdx, %rdi
orq %r8, %rdi
testq %rax, %rax
cmovgq %rdx, %rdi
movq %rdi, %rdx
shlq $0x7, %rdx
subq %rdx, %rax
shlq $0x2, %rax
addq (%rcx,%rdi,8), %rax
movl (%rax), %r11d
movl %esi, %eax
movq %rax, 0x30(%rsp)
xorl %r12d, %r12d
xorl %ebp, %ebp
xorl %r13d, %r13d
movl %r11d, 0xc(%rsp)
movq 0x48(%rbx), %rcx
movq 0x28(%rbx), %rax
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq $0x1, %rcx
adcq $-0x1, %rdx
movq 0x30(%rbx), %rcx
subq 0x38(%rbx), %rcx
sarq $0x3, %rcx
movabsq $-0x1111111111111111, %rdi # imm = 0xEEEEEEEEEEEEEEEF
imulq %rdi, %rcx
leaq (%rcx,%rdx,4), %rcx
movq 0x10(%rbx), %rsi
movq 0x20(%rbx), %rdx
subq %rsi, %rdx
sarq $0x3, %rdx
imulq %rdi, %rdx
addq %rcx, %rdx
cmpq %rdx, %r13
setae %cl
cmpq 0x30(%rsp), %r13
setae %r14b
orb %cl, %r14b
jne 0x144b3
movq 0x68(%rbx), %rdx
movq %rdx, %rcx
subq 0x70(%rbx), %rcx
sarq $0x2, %rcx
leaq (%rcx,%r13), %rdi
cmpq $0x7f, %rdi
movq %r12, 0x38(%rsp)
ja 0x14383
addq %r12, %rdx
jmp 0x143c0
movq 0x80(%rbx), %rdx
movq %rdi, %r8
shrq $0x7, %r8
movq %r8, %r9
movabsq $-0x200000000000000, %r10 # imm = 0xFE00000000000000
orq %r10, %r9
testq %rdi, %rdi
cmovgq %r8, %r9
movq %r9, %rdi
shlq $0x7, %rdi
subq %rdi, %rcx
addq %r13, %rcx
shlq $0x2, %rcx
addq (%rdx,%r9,8), %rcx
movq %rcx, %rdx
movl (%rdx), %r12d
cmpl %r12d, %r11d
jne 0x143f0
movq %rsi, %rcx
subq 0x18(%rbx), %rcx
sarq $0x3, %rcx
movabsq $-0x1111111111111111, %rdx # imm = 0xEEEEEEEEEEEEEEEF
imulq %rdx, %rcx
leaq (%rcx,%r13), %rdx
cmpq $0x3, %rdx
ja 0x143f5
addq %rbp, %rsi
jmp 0x14426
xorl %r15d, %r15d
jmp 0x14474
movq %rdx, %rsi
shrq $0x2, %rsi
movabsq $-0x4000000000000000, %rdi # imm = 0xC000000000000000
addq %rsi, %rdi
testq %rdx, %rdx
cmovgq %rsi, %rdi
leaq (,%rdi,4), %rdx
subq %rdx, %rcx
addq %r13, %rcx
imulq $0x78, %rcx, %rsi
addq (%rax,%rdi,8), %rsi
leaq 0x40(%rsp), %rdi
callq 0xac8c
movl 0x44(%rsp), %r15d
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x2bd2(%rip), %rsi      # 0x1701d
leaq 0x2bcd(%rip), %rdx      # 0x1701f
callq 0x5346
leaq 0x8db2(%rip), %rdi      # 0x1d210
leaq 0x10(%rsp), %rsi
callq 0x517a
cmpl (%rax), %r15d
sete %r15b
movl 0xc(%rsp), %r11d
cmpl %r12d, %r11d
movq 0x38(%rsp), %r12
jne 0x1449f
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1449f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3200
movl 0xc(%rsp), %r11d
incq %r13
addq $0x78, %rbp
addq $0x4, %r12
testb %r15b, %r15b
je 0x142fa
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x144e4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rdi
callq 0x3340