// File: allasandeep[P]LocationBoundaryFinder/prog2.cc
// Function: toDecimalDegree(char*, char*, char*, char*, char*, char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string toDecimalDegree(char *id, char *iname, char *minLatitude, char *maxLatitude, char *minLongitude, char* maxLongitude, string stateName)
{	
	string output = "The place of ";
	output += iname;
	output += ", ";
	output += stateName;
	output += " (ID: ";
	output += id;
	output += ") has the bounds \n";

	//If the minLongitude is not empty
	if(minLongitude)
	{
		string temp(minLongitude);
		output += formatOutputString(stoi(temp.substr(1)));	
	}

	output += "to ";
	//If the maxLongitude is not empty
	if(maxLongitude)
	{
		string temp(maxLongitude);		
		output += formatOutputString(stoi(temp.substr(1)));			
	}

	if(minLongitude[0] == '+' && maxLongitude[0] == '+')
		output += "east " ;
	else if(minLongitude[0] == '-' && maxLongitude[0] == '-')	
		output += "west " ; 

	output += "in longitude;\nand from ";

	//If the minLatitude is not empty
	if(minLatitude)
	{
		string temp(minLatitude);
		output += formatOutputString(stoi(temp.substr(1)));	
	}

	output += "to ";

	//If the maxLatitude is not empty
	if(maxLatitude)
	{
		string temp(maxLatitude);
		output += formatOutputString(stoi(temp.substr(1)));		
	}

	if(minLatitude[0] == '+' && maxLatitude[0] == '+')
		output += "north " ;
	else if(minLatitude[0] == '-' && maxLatitude[0] == '-')	
		output +=  "south "; 

	output += "in latitude.";
	//Returning the output
	return output;	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, -0x1f8(%rbp)
movq %rdi, %rax
movq %rax, -0x208(%rbp)
movq 0x18(%rbp), %rax
movq %rax, -0x200(%rbp)
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movb $0x0, -0x31(%rbp)
leaq -0x32(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
callq 0x22c0
movq -0x1f8(%rbp), %rdi
movq -0x1f0(%rbp), %rdx
leaq 0x240a(%rip), %rsi      # 0x5156
callq 0x3840
jmp 0x2d53
leaq -0x32(%rbp), %rdi
callq 0x2380
movq -0x1f8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x20b0
jmp 0x2d6e
movq -0x1f8(%rbp), %rdi
leaq 0x244d(%rip), %rsi      # 0x51c9
callq 0x20b0
jmp 0x2d83
movq -0x200(%rbp), %rsi
movq -0x1f8(%rbp), %rdi
callq 0x2060
jmp 0x2d98
movq -0x1f8(%rbp), %rdi
leaq 0x23be(%rip), %rsi      # 0x5164
callq 0x20b0
jmp 0x2dad
movq -0x1f8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x20b0
jmp 0x2dbf
movq -0x1f8(%rbp), %rdi
leaq 0x239e(%rip), %rsi      # 0x516b
callq 0x20b0
jmp 0x2dd4
cmpq $0x0, -0x30(%rbp)
je 0x2f39
movq -0x30(%rbp), %rax
movq %rax, -0x218(%rbp)
leaq -0x69(%rbp), %rdi
movq %rdi, -0x210(%rbp)
callq 0x22c0
movq -0x218(%rbp), %rsi
movq -0x210(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x3840
jmp 0x2e13
leaq -0x69(%rbp), %rdi
callq 0x2380
leaq -0xb0(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x22d0
jmp 0x2e3a
xorl %eax, %eax
movl %eax, %esi
leaq -0xb0(%rbp), %rdi
movl $0xa, %edx
callq 0x3970
movl %eax, -0x21c(%rbp)
jmp 0x2e57
movl -0x21c(%rbp), %esi
leaq -0x90(%rbp), %rdi
callq 0x3470
jmp 0x2e6b
movq -0x1f8(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x2060
jmp 0x2e80
leaq -0x90(%rbp), %rdi
callq 0x2240
leaq -0xb0(%rbp), %rdi
callq 0x2240
leaq -0x68(%rbp), %rdi
callq 0x2240
jmp 0x2f39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x32(%rbp), %rdi
callq 0x2380
jmp 0x3463
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x3457
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x69(%rbp), %rdi
callq 0x2380
jmp 0x3457
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x2f2b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x2f1f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x2240
leaq -0xb0(%rbp), %rdi
callq 0x2240
leaq -0x68(%rbp), %rdi
callq 0x2240
jmp 0x3457
movq -0x1f8(%rbp), %rdi
leaq 0x2237(%rip), %rsi      # 0x517e
callq 0x20b0
jmp 0x2f4e
cmpq $0x0, 0x10(%rbp)
je 0x309a
movq 0x10(%rbp), %rax
movq %rax, -0x230(%rbp)
leaq -0xd1(%rbp), %rdi
movq %rdi, -0x228(%rbp)
callq 0x22c0
movq -0x230(%rbp), %rsi
movq -0x228(%rbp), %rdx
leaq -0xd0(%rbp), %rdi
callq 0x3840
jmp 0x2f93
leaq -0xd1(%rbp), %rdi
callq 0x2380
leaq -0x118(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x22d0
jmp 0x2fc0
xorl %eax, %eax
movl %eax, %esi
leaq -0x118(%rbp), %rdi
movl $0xa, %edx
callq 0x3970
movl %eax, -0x234(%rbp)
jmp 0x2fdd
movl -0x234(%rbp), %esi
leaq -0xf8(%rbp), %rdi
callq 0x3470
jmp 0x2ff1
movq -0x1f8(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x2060
jmp 0x3006
leaq -0xf8(%rbp), %rdi
callq 0x2240
leaq -0x118(%rbp), %rdi
callq 0x2240
leaq -0xd0(%rbp), %rdi
callq 0x2240
jmp 0x309a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xd1(%rbp), %rdi
callq 0x2380
jmp 0x3457
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x3089
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x307d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x2240
leaq -0x118(%rbp), %rdi
callq 0x2240
leaq -0xd0(%rbp), %rdi
callq 0x2240
jmp 0x3457
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
jne 0x30c9
movq 0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
jne 0x30c9
movq -0x1f8(%rbp), %rdi
leaq 0x20c2(%rip), %rsi      # 0x5182
callq 0x20b0
jmp 0x30c7
jmp 0x30fa
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x30f8
movq 0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x30f8
movq -0x1f8(%rbp), %rdi
leaq 0x2099(%rip), %rsi      # 0x5188
callq 0x20b0
jmp 0x30f6
jmp 0x30f8
jmp 0x30fa
movq -0x1f8(%rbp), %rdi
leaq 0x2086(%rip), %rsi      # 0x518e
callq 0x20b0
jmp 0x310f
cmpq $0x0, -0x20(%rbp)
je 0x325b
movq -0x20(%rbp), %rax
movq %rax, -0x248(%rbp)
leaq -0x139(%rbp), %rdi
movq %rdi, -0x240(%rbp)
callq 0x22c0
movq -0x248(%rbp), %rsi
movq -0x240(%rbp), %rdx
leaq -0x138(%rbp), %rdi
callq 0x3840
jmp 0x3154
leaq -0x139(%rbp), %rdi
callq 0x2380
leaq -0x180(%rbp), %rdi
leaq -0x138(%rbp), %rsi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x22d0
jmp 0x3181
xorl %eax, %eax
movl %eax, %esi
leaq -0x180(%rbp), %rdi
movl $0xa, %edx
callq 0x3970
movl %eax, -0x24c(%rbp)
jmp 0x319e
movl -0x24c(%rbp), %esi
leaq -0x160(%rbp), %rdi
callq 0x3470
jmp 0x31b2
movq -0x1f8(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x2060
jmp 0x31c7
leaq -0x160(%rbp), %rdi
callq 0x2240
leaq -0x180(%rbp), %rdi
callq 0x2240
leaq -0x138(%rbp), %rdi
callq 0x2240
jmp 0x325b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x139(%rbp), %rdi
callq 0x2380
jmp 0x3457
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x324a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x323e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x160(%rbp), %rdi
callq 0x2240
leaq -0x180(%rbp), %rdi
callq 0x2240
leaq -0x138(%rbp), %rdi
callq 0x2240
jmp 0x3457
movq -0x1f8(%rbp), %rdi
leaq 0x1f15(%rip), %rsi      # 0x517e
callq 0x20b0
jmp 0x3270
cmpq $0x0, -0x28(%rbp)
je 0x33bc
movq -0x28(%rbp), %rax
movq %rax, -0x260(%rbp)
leaq -0x1a1(%rbp), %rdi
movq %rdi, -0x258(%rbp)
callq 0x22c0
movq -0x260(%rbp), %rsi
movq -0x258(%rbp), %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x3840
jmp 0x32b5
leaq -0x1a1(%rbp), %rdi
callq 0x2380
leaq -0x1e8(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x22d0
jmp 0x32e2
xorl %eax, %eax
movl %eax, %esi
leaq -0x1e8(%rbp), %rdi
movl $0xa, %edx
callq 0x3970
movl %eax, -0x264(%rbp)
jmp 0x32ff
movl -0x264(%rbp), %esi
leaq -0x1c8(%rbp), %rdi
callq 0x3470
jmp 0x3313
movq -0x1f8(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
callq 0x2060
jmp 0x3328
leaq -0x1c8(%rbp), %rdi
callq 0x2240
leaq -0x1e8(%rbp), %rdi
callq 0x2240
leaq -0x1a0(%rbp), %rdi
callq 0x2240
jmp 0x33bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x1a1(%rbp), %rdi
callq 0x2380
jmp 0x3457
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x33ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x339f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x1c8(%rbp), %rdi
callq 0x2240
leaq -0x1e8(%rbp), %rdi
callq 0x2240
leaq -0x1a0(%rbp), %rdi
callq 0x2240
jmp 0x3457
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
jne 0x33eb
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
jne 0x33eb
movq -0x1f8(%rbp), %rdi
leaq 0x1dc4(%rip), %rsi      # 0x51a6
callq 0x20b0
jmp 0x33e9
jmp 0x341c
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x341a
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x341a
movq -0x1f8(%rbp), %rdi
leaq 0x1d9c(%rip), %rsi      # 0x51ad
callq 0x20b0
jmp 0x3418
jmp 0x341a
jmp 0x341c
movq -0x1f8(%rbp), %rdi
leaq 0x1d8a(%rip), %rsi      # 0x51b4
callq 0x20b0
jmp 0x3431
movb $0x1, -0x31(%rbp)
testb $0x1, -0x31(%rbp)
jne 0x3447
movq -0x1f8(%rbp), %rdi
callq 0x2240
movq -0x208(%rbp), %rax
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
movq -0x1f8(%rbp), %rdi
callq 0x2240
movq -0x40(%rbp), %rdi
callq 0x2200
nopl (%rax)