// File: angelapwen[P]text-based-game/queueSatchel.cpp
// Function: QueueSatchel::updateWeapons()
void QueueSatchel::updateWeapons() {
	// Count weapons in deque
	long count;

	// Search for each weapon type in bag and set bool flag to false if not found
	count = std::count(satchel.begin(), satchel.end(), "knife");
	if (count == 0) {
		knife = false;
	}

	count = std::count(satchel.begin(), satchel.end(), "wrench");
	if (count == 0) {
		wrench = false;
	}

	count = std::count(satchel.begin(), satchel.end(), "rope");
	if (count == 0) {
		rope = false;
	}

	count = std::count(satchel.begin(), satchel.end(), "pipe");
	if (count == 0) {
		pipe = false;
	}

	count = std::count(satchel.begin(), satchel.end(), "revolver");
	if (count == 0) {
		revolver = false;
	}

	count = std::count(satchel.begin(), satchel.end(), "candlestick");
	if (count == 0) {
		candlestick = false;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0x198(%rbp)
addq $0x18, %rsi
leaq -0x30(%rbp), %rdi
callq 0xafa0
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0x50(%rbp), %rdi
callq 0xafd0
leaq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rsi
leaq 0x7a1a(%rip), %rdx      # 0x12544
callq 0xaf40
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0xab45
movq -0x198(%rbp), %rax
movb $0x0, 0x10(%rax)
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0x70(%rbp), %rdi
callq 0xafa0
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0x90(%rbp), %rdi
callq 0xafd0
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
leaq 0x79dc(%rip), %rdx      # 0x1255e
callq 0xb000
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0xab9d
movq -0x198(%rbp), %rax
movb $0x0, 0x13(%rax)
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0xb0(%rbp), %rdi
callq 0xafa0
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0xd0(%rbp), %rdi
callq 0xafd0
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq 0x7977(%rip), %rdx      # 0x12557
callq 0xb060
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0xabfb
movq -0x198(%rbp), %rax
movb $0x0, 0x11(%rax)
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0xf0(%rbp), %rdi
callq 0xafa0
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0x110(%rbp), %rdi
callq 0xafd0
leaq -0xf0(%rbp), %rdi
leaq -0x110(%rbp), %rsi
leaq 0x7929(%rip), %rdx      # 0x12567
callq 0xb060
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0xac59
movq -0x198(%rbp), %rax
movb $0x0, 0x15(%rax)
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0x130(%rbp), %rdi
callq 0xafa0
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0x150(%rbp), %rdi
callq 0xafd0
leaq -0x130(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq 0x78b0(%rip), %rdx      # 0x1254c
callq 0xb0c0
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0xacb7
movq -0x198(%rbp), %rax
movb $0x0, 0x12(%rax)
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0x170(%rbp), %rdi
callq 0xafa0
movq -0x198(%rbp), %rsi
addq $0x18, %rsi
leaq -0x190(%rbp), %rdi
callq 0xafd0
leaq -0x170(%rbp), %rdi
leaq -0x190(%rbp), %rsi
leaq 0x783c(%rip), %rdx      # 0x12536
callq 0xb120
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0xad15
movq -0x198(%rbp), %rax
movb $0x0, 0x14(%rax)
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
nop