// File: /workspace/github_cpp_makefile_star2_O3/sthapliyal37[P]Microprocessor_8085_Updated/DataTransfer.cpp
// Function: STAX(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
void STAX(string instruction,string* registers,bool* flag,map<string,string>& memory){
int length=instruction.length();
	if(length==1)
	{
		if(validityRegisterPair(instruction))
		{
			string address="";
			int index=registerNumber(instruction);
			address+=registers[index]+registers[index+1];
			if(validityAddress(address))
				memory[address]=registers[0];
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq 0x8(%rdi), %rdx
cmpl $0x1, %edx
jne 0xc547
movq %rcx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq -0xb8(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rdi), %rsi
addq %rsi, %rdx
leaq -0xc8(%rbp), %r12
movq %r12, %rdi
callq 0x31ec
movq %r12, %rdi
callq 0x270f
movl %eax, %r12d
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc41d
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2210
testb %r12b, %r12b
je 0xc547
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x1dcc(%rip), %rdx      # 0xe202
leaq -0x48(%rbp), %rdi
movq %rdx, %rsi
callq 0x328a
leaq -0x98(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0x31ec
leaq -0xa8(%rbp), %rdi
callq 0x2778
movl %eax, %r15d
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc48d
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x2210
movslq %r15d, %rax
shlq $0x5, %rax
leaq (%rbx,%rax), %rsi
leaq (%rbx,%rax), %rdx
addq $0x20, %rdx
leaq -0x88(%rbp), %rdi
callq 0xa180
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq -0x48(%rbp), %rdi
callq 0x20b0
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc4d9
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x31ec
leaq -0x68(%rbp), %rdi
callq 0x2997
movl %eax, %r15d
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0xc516
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2210
testb %r15b, %r15b
je 0xc532
leaq -0x48(%rbp), %rsi
movq %r14, %rdi
callq 0xa1e4
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2110
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0xc547
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2210
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0xc5c3
movq -0x58(%rbp), %rsi
jmp 0xc599
movq %rax, %rbx
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc5c3
movq -0x78(%rbp), %rsi
jmp 0xc599
jmp 0xc5c0
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc5c3
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0xc5c3
movq %rax, %rbx
jmp 0xc5d8
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc5d8
movq -0xb8(%rbp), %rsi
jmp 0xc5d0
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0xc5d8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2320