// File: EstherJin[P]TetrisRemake/i.cc
// Function: I::turnPos(int)
vector<Coordinates> I::turnPos(int shift){
  if (shift > 0){
    shift = shift % 4;
  } else{
    shift = ((-4 * shift) - (shift * -1)) % 4;
  }
  vector<Coordinates> cds = coords;
  if ((shift % 2) != 0){
    if (position == 0){
      cds.at(1).row -= 1;
      cds.at(1).col -= 1;
      cds.at(2).row -= 2;
      cds.at(2).col -= 2;
      cds.at(3).row -= 3;
      cds.at(3).col -= 3;
    } else {
      cds.at(1).row += 1;
      cds.at(1).col += 1;
      cds.at(2).row += 2;
      cds.at(2).col += 2;
      cds.at(3).row += 3;
      cds.at(3).col += 3;
    }
  }
  return cds;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpl $0x0, -0x14(%rbp)
jle 0x1a29f
movl -0x14(%rbp), %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %edx, -0x14(%rbp)
jmp 0x1a2b7
imull $0xfffffffc, -0x14(%rbp), %eax # imm = 0xFFFFFFFC
imull $-0x1, -0x14(%rbp), %ecx
subl %ecx, %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %edx, -0x14(%rbp)
movq -0x40(%rbp), %rdi
movq -0x30(%rbp), %rsi
movb $0x0, -0x15(%rbp)
addq $0x30, %rsi
callq 0x13660
movl -0x14(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
je 0x1a4a3
movq -0x30(%rbp), %rax
cmpl $0x0, 0x48(%rax)
jne 0x1a3cb
movq -0x40(%rbp), %rdi
movl $0x1, %esi
callq 0xa800
movq %rax, -0x48(%rbp)
jmp 0x1a302
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movl $0x1, %esi
callq 0xa800
movq %rax, -0x50(%rbp)
jmp 0x1a320
movq -0x40(%rbp), %rdi
movq -0x50(%rbp), %rax
movl 0x4(%rax), %ecx
decl %ecx
movl %ecx, 0x4(%rax)
movl $0x2, %esi
callq 0xa800
movq %rax, -0x58(%rbp)
jmp 0x1a340
movq -0x40(%rbp), %rdi
movq -0x58(%rbp), %rax
movl (%rax), %ecx
addl $-0x2, %ecx
movl %ecx, (%rax)
movl $0x2, %esi
callq 0xa800
movq %rax, -0x60(%rbp)
jmp 0x1a35f
movq -0x40(%rbp), %rdi
movq -0x60(%rbp), %rax
movl 0x4(%rax), %ecx
addl $-0x2, %ecx
movl %ecx, 0x4(%rax)
movl $0x3, %esi
callq 0xa800
movq %rax, -0x68(%rbp)
jmp 0x1a380
movq -0x40(%rbp), %rdi
movq -0x68(%rbp), %rax
movl (%rax), %ecx
addl $-0x3, %ecx
movl %ecx, (%rax)
movl $0x3, %esi
callq 0xa800
movq %rax, -0x70(%rbp)
jmp 0x1a39f
movq -0x70(%rbp), %rax
movl 0x4(%rax), %ecx
subl $0x3, %ecx
movl %ecx, 0x4(%rax)
jmp 0x1a4a1
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0xa880
jmp 0x1a4c3
movq -0x40(%rbp), %rdi
movl $0x1, %esi
callq 0xa800
movq %rax, -0x78(%rbp)
jmp 0x1a3df
movq -0x40(%rbp), %rdi
movq -0x78(%rbp), %rax
movl (%rax), %ecx
incl %ecx
movl %ecx, (%rax)
movl $0x1, %esi
callq 0xa800
movq %rax, -0x80(%rbp)
jmp 0x1a3fd
movq -0x40(%rbp), %rdi
movq -0x80(%rbp), %rax
movl 0x4(%rax), %ecx
incl %ecx
movl %ecx, 0x4(%rax)
movl $0x2, %esi
callq 0xa800
movq %rax, -0x88(%rbp)
jmp 0x1a420
movq -0x40(%rbp), %rdi
movq -0x88(%rbp), %rax
movl (%rax), %ecx
addl $0x2, %ecx
movl %ecx, (%rax)
movl $0x2, %esi
callq 0xa800
movq %rax, -0x90(%rbp)
jmp 0x1a445
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rax
movl 0x4(%rax), %ecx
addl $0x2, %ecx
movl %ecx, 0x4(%rax)
movl $0x3, %esi
callq 0xa800
movq %rax, -0x98(%rbp)
jmp 0x1a46c
movq -0x40(%rbp), %rdi
movq -0x98(%rbp), %rax
movl (%rax), %ecx
addl $0x3, %ecx
movl %ecx, (%rax)
movl $0x3, %esi
callq 0xa800
movq %rax, -0xa0(%rbp)
jmp 0x1a491
movq -0xa0(%rbp), %rax
movl 0x4(%rax), %ecx
addl $0x3, %ecx
movl %ecx, 0x4(%rax)
jmp 0x1a4a3
movb $0x1, -0x15(%rbp)
testb $0x1, -0x15(%rbp)
jne 0x1a4b6
movq -0x40(%rbp), %rdi
callq 0xa880
movq -0x38(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x65c0
nopl (%rax)