// File: /workspace/github_cpp_makefile_star2_O1/awbrenn[P]robot-controller/Client.cpp
// Function: createVector(int, int)
void createVector(int len, int num)
{
   angleFirst =  M_PI - ((M_PI * (num - 2)) / num);
   angleSecond = M_PI - ((M_PI * (num - 3)) / (num - 1));
   char turnFirst[20];
   sprintf(turnFirst, "TURN %f%s", angleFirst, "\0");
   char moveFirst[20];
   sprintf(moveFirst, "MOVE %d%s", len, "\0");
 
   for (int i=0; i<num; i++)
   {
      shape1.push_back(moveFirst);
      shape1.push_back("STOP\0");
//      shape1.push_back("GET IMAGE\O");
      shape1.push_back("GET DGPS\0");
      shape1.push_back("GET GPS\0");
      shape1.push_back("GET LASERS\0");
      shape1.push_back(turnFirst);
      shape1.push_back("STOP\0");
   }

   char turnSecond[20];
   sprintf(turnSecond, "TURN -%f%s", angleSecond, "\0");
   char moveSecond[20];
   sprintf(moveSecond, "MOVE %d%s", len, "\0");
   
   for (int j=0; j<num-1; j++)
   {
      shape2.push_back(moveSecond);
      shape2.push_back("STOP\0");
//      shape2.push_back("GET IMAGE\O");
      shape2.push_back("GET DGPS\0");
      shape2.push_back("GET GPS\0");
      shape2.push_back("GET LASERS\0");
      shape2.push_back(turnSecond);
      shape2.push_back("STOP\0");
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %esi, %r14d
leal -0x2(%r14), %eax
cvtsi2sd %eax, %xmm0
movl %edi, %r15d
movsd 0x2386(%rip), %xmm1     # 0x5018
cvtsi2sd %esi, %xmm2
mulsd %xmm1, %xmm0
divsd %xmm2, %xmm0
movapd %xmm1, %xmm2
subsd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtsd2ss %xmm2, %xmm0
movss %xmm0, 0xf880b(%rip)    # 0xfb4c0
leal -0x3(%r14), %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
mulsd %xmm1, %xmm2
leal -0x1(%r14), %eax
movl %eax, -0x50(%rbp)
cvtsi2sd %eax, %xmm3
divsd %xmm3, %xmm2
subsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, 0xf87e1(%rip)    # 0xfb4c4
cvtss2sd %xmm0, %xmm0
leaq 0x243a(%rip), %rsi      # 0x5128
leaq 0x2585(%rip), %rbx      # 0x527a
leaq -0xe0(%rbp), %rdi
movq %rbx, %rdx
movb $0x1, %al
callq 0x2070
leaq 0x2425(%rip), %rsi      # 0x5132
leaq -0xc0(%rbp), %rdi
movl %r15d, -0x4c(%rbp)
movl %r15d, %edx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x2070
movq %r14, -0x60(%rbp)
testl %r14d, %r14d
jle 0x2f1a
leaq -0x48(%rbp), %r12
leaq 0x44ab(%rip), %r13      # 0x71e8
leaq 0x2538(%rip), %r14      # 0x527c
movq -0x60(%rbp), %rax
movl %eax, %ebx
movl %ebx, -0x54(%rbp)
movq %r13, %rbx
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0xc0(%rbp), %r15
movq %r15, %rdi
callq 0x20e0
leaq (%rax,%rbp), %rdx
addq $-0xc0, %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x3b22
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2da1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r12, %rdi
movq %r14, %rsi
leaq 0x24ca(%rip), %rdx      # 0x5280
callq 0x3b22
movq %rbx, %r13
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rbx
cmpq %rbx, %rdi
je 0x2de2
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, -0x48(%rbp)
movq %r12, %rdi
leaq 0x2492(%rip), %rsi      # 0x5282
leaq 0x2493(%rip), %rdx      # 0x528a
callq 0x3b22
movq %r13, %rdi
movq %r12, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2e1c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, -0x48(%rbp)
movq %r12, %rdi
leaq 0x2462(%rip), %rsi      # 0x528c
leaq 0x2462(%rip), %rdx      # 0x5293
callq 0x3b22
movq %r13, %rdi
movq %r12, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2e56
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, -0x48(%rbp)
movq %r12, %rdi
leaq 0x2431(%rip), %rsi      # 0x5295
leaq 0x2434(%rip), %rdx      # 0x529f
callq 0x3b22
movq %r13, %rdi
movq %r12, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2e90
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, -0x48(%rbp)
leaq -0xe0(%rbp), %r15
movq %r15, %rdi
callq 0x20e0
leaq (%rax,%rbp), %rdx
addq $-0xe0, %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x3b22
movq %r13, %rdi
movq %r12, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2ed9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, -0x48(%rbp)
movq %r12, %rdi
movq %r14, %rsi
leaq 0x2396(%rip), %rdx      # 0x5280
callq 0x3b22
movq %r13, %rdi
movq %r12, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
movl -0x54(%rbp), %ebx
je 0x2f12
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
decl %ebx
jne 0x2d4a
xorps %xmm0, %xmm0
cvtss2sd 0xf859f(%rip), %xmm0    # 0xfb4c4
leaq 0x2210(%rip), %rsi      # 0x513c
leaq 0x2347(%rip), %r14      # 0x527a
leaq -0xa0(%rbp), %rdi
movq %r14, %rdx
movb $0x1, %al
callq 0x2070
leaq 0x21e7(%rip), %rsi      # 0x5132
leaq -0x80(%rbp), %rdi
movl -0x4c(%rbp), %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2070
cmpl $0x2, -0x60(%rbp)
jl 0x3174
leaq -0x48(%rbp), %r14
leaq 0x428f(%rip), %r15      # 0x7200
leaq 0x2304(%rip), %r12      # 0x527c
leaq 0x2301(%rip), %rbx      # 0x5280
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x80(%rbp), %r13
movq %r13, %rdi
callq 0x20e0
leaq (%rax,%rbp), %rdx
addq $-0x80, %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x3b22
movq %r15, %rdi
movq %r14, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2fca
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3b22
movq %r15, %rdi
movq %r14, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rbx
cmpq %rbx, %rdi
je 0x3004
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r14, %rdi
leaq 0x226c(%rip), %rsi      # 0x5282
leaq 0x226d(%rip), %rdx      # 0x528a
callq 0x3b22
movq %r15, %rdi
movq %r14, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3046
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r14, %rdi
leaq 0x2234(%rip), %rsi      # 0x528c
leaq 0x2234(%rip), %rdx      # 0x5293
callq 0x3b22
movq %r15, %rdi
movq %r14, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3088
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r14, %rdi
leaq 0x21fb(%rip), %rsi      # 0x5295
leaq 0x21fe(%rip), %rdx      # 0x529f
callq 0x3b22
movq %r15, %rdi
movq %r14, %rbx
movq %r14, %rsi
callq 0x3bbc
movq %r12, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x30d0
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0xa0(%rbp), %r13
movq %r13, %rdi
callq 0x20e0
leaq (%rax,%rbp), %rdx
addq $-0xa0, %rdx
movq %rbx, %r12
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3b22
movq %r15, %rdi
movq %r12, %rsi
callq 0x3bbc
movq %r14, %r12
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3127
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %rbx, %r14
movq %rbx, %rdi
movq %r12, %rsi
leaq 0x2141(%rip), %rbx      # 0x5280
movq %rbx, %rdx
callq 0x3b22
movq %r15, %rdi
movq %r14, %rsi
callq 0x3bbc
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x316b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
decl -0x50(%rbp)
jne 0x2f7f
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x31ca
jmp 0x31a8
jmp 0x31ca
jmp 0x31a8
jmp 0x31ca
jmp 0x31a8
jmp 0x31ca
jmp 0x31a8
jmp 0x31ca
jmp 0x31a8
jmp 0x31ca
jmp 0x31a8
jmp 0x31ca
jmp 0x31a8
jmp 0x31ca
jmp 0x31a8
jmp 0x31ca
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
jne 0x31db
jmp 0x31e7
jmp 0x31ca
jmp 0x31cf
jmp 0x31ca
jmp 0x31cf
jmp 0x31ca
jmp 0x31cf
jmp 0x31ca
jmp 0x31cf
movq %rax, %r14
jmp 0x31e7
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x31e7
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %r14, %rdi
callq 0x22f0