// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekmsc.c
// Function: mapreturn
int
mapreturn(int cmap)
{
/*
     "level1.map",     // 4
     "level2.map",     // 5
     "city1.map",      // 8

     "beach1.map",     // 11
     "park1.map",      // 12
     "mid1.map",       // 15
     "mid2.map",       // 16
     "mid3.map",       // 17

     "sewer1.map",     // 18
     "sewer2.map",     // 19
     "inds1.map",      // 20
     "free1.map",      // 22
     "free2.map",      // 23

     "ware1.map",      // 25
     "ware2.map",      // 26
     "ware3.map",      // 27
*/
     int       rv;

     switch( cmap ) {
     case 4:  rv=0; warpretx=-27200; warprety=21500; warpretang= 512; warpretsect=  351; break;
     case 5:  rv=0; warpretx=  7295; warprety=21500; warpretang= 512; warpretsect=  349; break;
     case 8:  rv=0; warpretx=-11902; warprety=39300; warpretang=1536; warpretsect=  353; break;
     case 11: rv=1; warpretx=-27200; warprety=21500; warpretang= 512; warpretsect=  489; break;
     case 12: rv=1; warpretx=  7295; warprety=21500; warpretang= 512; warpretsect=  492; break;
     case 15: rv=1; warpretx=-11904; warprety=39300; warpretang=1536; warpretsect=  488; break;
     case 16: rv=1; warpretx= 24322; warprety=39300; warpretang=1536; warpretsect=  486; break;
     case 17: rv=1; warpretx= 57346; warprety=39300; warpretang=1536; warpretsect=  483; break;
     case 18: rv=2; warpretx=-27200; warprety=21500; warpretang= 512; warpretsect=  486; break;
     case 19: rv=2; warpretx=  7295; warprety=21500; warpretang= 512; warpretsect=  488; break;
     case 20: rv=2; warpretx= 41600; warprety=21500; warpretang= 512; warpretsect=  490; break;
     case 22: rv=2; warpretx=-11904; warprety=39300; warpretang=1536; warpretsect=  483; break;
     case 23: rv=2; warpretx= 24380; warprety=39300; warpretang=1536; warpretsect=  482; break;
     case 25: rv=3; warpretx=-27200; warprety=21500; warpretang= 512; warpretsect=  477; break;
     case 26: rv=3; warpretx=  7295; warprety=21500; warpretang= 512; warpretsect=  472; break;
     case 27: rv=3; warpretx= 41600; warprety=21500; warpretang= 512; warpretsect=  494; break;
     default: rv=-1;break;
     }

     return(rv);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %eax
addl $-0x4, %eax
movl %eax, %ecx
movq %rcx, -0x10(%rbp)
subl $0x17, %eax
ja 0x1dc97
movq -0x10(%rbp), %rax
leaq 0xbbb75(%rip), %rcx     # 0xd94cc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, -0x8(%rbp)
movl $0xffff95c0, 0x15c5df(%rip) # imm = 0xFFFF95C0
movl $0x53fc, 0x15c5d9(%rip) # imm = 0x53FC
movl $0x200, 0x15c5d3(%rip)  # imm = 0x200
movl $0x15f, 0x15c5cd(%rip)  # imm = 0x15F
jmp 0x1dc9e
movl $0x0, -0x8(%rbp)
movl $0x1c7f, 0x15c5ab(%rip) # imm = 0x1C7F
movl $0x53fc, 0x15c5a5(%rip) # imm = 0x53FC
movl $0x200, 0x15c59f(%rip)  # imm = 0x200
movl $0x15d, 0x15c599(%rip)  # imm = 0x15D
jmp 0x1dc9e
movl $0x0, -0x8(%rbp)
movl $0xffffd182, 0x15c577(%rip) # imm = 0xFFFFD182
movl $0x9984, 0x15c571(%rip) # imm = 0x9984
movl $0x600, 0x15c56b(%rip)  # imm = 0x600
movl $0x161, 0x15c565(%rip)  # imm = 0x161
jmp 0x1dc9e
movl $0x1, -0x8(%rbp)
movl $0xffff95c0, 0x15c543(%rip) # imm = 0xFFFF95C0
movl $0x53fc, 0x15c53d(%rip) # imm = 0x53FC
movl $0x200, 0x15c537(%rip)  # imm = 0x200
movl $0x1e9, 0x15c531(%rip)  # imm = 0x1E9
jmp 0x1dc9e
movl $0x1, -0x8(%rbp)
movl $0x1c7f, 0x15c50f(%rip) # imm = 0x1C7F
movl $0x53fc, 0x15c509(%rip) # imm = 0x53FC
movl $0x200, 0x15c503(%rip)  # imm = 0x200
movl $0x1ec, 0x15c4fd(%rip)  # imm = 0x1EC
jmp 0x1dc9e
movl $0x1, -0x8(%rbp)
movl $0xffffd180, 0x15c4db(%rip) # imm = 0xFFFFD180
movl $0x9984, 0x15c4d5(%rip) # imm = 0x9984
movl $0x600, 0x15c4cf(%rip)  # imm = 0x600
movl $0x1e8, 0x15c4c9(%rip)  # imm = 0x1E8
jmp 0x1dc9e
movl $0x1, -0x8(%rbp)
movl $0x5f02, 0x15c4a7(%rip) # imm = 0x5F02
movl $0x9984, 0x15c4a1(%rip) # imm = 0x9984
movl $0x600, 0x15c49b(%rip)  # imm = 0x600
movl $0x1e6, 0x15c495(%rip)  # imm = 0x1E6
jmp 0x1dc9e
movl $0x1, -0x8(%rbp)
movl $0xe002, 0x15c473(%rip) # imm = 0xE002
movl $0x9984, 0x15c46d(%rip) # imm = 0x9984
movl $0x600, 0x15c467(%rip)  # imm = 0x600
movl $0x1e3, 0x15c461(%rip)  # imm = 0x1E3
jmp 0x1dc9e
movl $0x2, -0x8(%rbp)
movl $0xffff95c0, 0x15c43f(%rip) # imm = 0xFFFF95C0
movl $0x53fc, 0x15c439(%rip) # imm = 0x53FC
movl $0x200, 0x15c433(%rip)  # imm = 0x200
movl $0x1e6, 0x15c42d(%rip)  # imm = 0x1E6
jmp 0x1dc9e
movl $0x2, -0x8(%rbp)
movl $0x1c7f, 0x15c40b(%rip) # imm = 0x1C7F
movl $0x53fc, 0x15c405(%rip) # imm = 0x53FC
movl $0x200, 0x15c3ff(%rip)  # imm = 0x200
movl $0x1e8, 0x15c3f9(%rip)  # imm = 0x1E8
jmp 0x1dc9e
movl $0x2, -0x8(%rbp)
movl $0xa280, 0x15c3d7(%rip) # imm = 0xA280
movl $0x53fc, 0x15c3d1(%rip) # imm = 0x53FC
movl $0x200, 0x15c3cb(%rip)  # imm = 0x200
movl $0x1ea, 0x15c3c5(%rip)  # imm = 0x1EA
jmp 0x1dc9e
movl $0x2, -0x8(%rbp)
movl $0xffffd180, 0x15c3a3(%rip) # imm = 0xFFFFD180
movl $0x9984, 0x15c39d(%rip) # imm = 0x9984
movl $0x600, 0x15c397(%rip)  # imm = 0x600
movl $0x1e3, 0x15c391(%rip)  # imm = 0x1E3
jmp 0x1dc9e
movl $0x2, -0x8(%rbp)
movl $0x5f3c, 0x15c36f(%rip) # imm = 0x5F3C
movl $0x9984, 0x15c369(%rip) # imm = 0x9984
movl $0x600, 0x15c363(%rip)  # imm = 0x600
movl $0x1e2, 0x15c35d(%rip)  # imm = 0x1E2
jmp 0x1dc9e
movl $0x3, -0x8(%rbp)
movl $0xffff95c0, 0x15c33b(%rip) # imm = 0xFFFF95C0
movl $0x53fc, 0x15c335(%rip) # imm = 0x53FC
movl $0x200, 0x15c32f(%rip)  # imm = 0x200
movl $0x1dd, 0x15c329(%rip)  # imm = 0x1DD
jmp 0x1dc9e
movl $0x3, -0x8(%rbp)
movl $0x1c7f, 0x15c30a(%rip) # imm = 0x1C7F
movl $0x53fc, 0x15c304(%rip) # imm = 0x53FC
movl $0x200, 0x15c2fe(%rip)  # imm = 0x200
movl $0x1d8, 0x15c2f8(%rip)  # imm = 0x1D8
jmp 0x1dc9e
movl $0x3, -0x8(%rbp)
movl $0xa280, 0x15c2d9(%rip) # imm = 0xA280
movl $0x53fc, 0x15c2d3(%rip) # imm = 0x53FC
movl $0x200, 0x15c2cd(%rip)  # imm = 0x200
movl $0x1ee, 0x15c2c7(%rip)  # imm = 0x1EE
jmp 0x1dc9e
movl $0xffffffff, -0x8(%rbp) # imm = 0xFFFFFFFF
movl -0x8(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)