// File: /workspace/github_cpp_makefile_star2_O1/awbrenn[P]robot-controller/Client.cpp
// Function: addHeaderToCommands(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
vector<string> addHeaderToCommands(vector<string> commands) 
{
    uint32_t number_of_commands = commands.size();
    string body;
    int i;

    /* add header to each of the fragmented responses */
    for (i = 0; i < (int) number_of_commands; i++) {
        body = commands[i];
        body = convertHeaderInfoToString(REQUEST_ID)
             + ROBOT_ID
             + body;
        commands[i] = body;
    }

    return commands;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, -0x78(%rbp)
movq 0x8(%rsi), %r13
subq (%rsi), %r13
shrq $0x5, %r13
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
testl %r13d, %r13d
jle 0x399b
leaq -0x88(%rbp), %r12
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
xorl %ebx, %ebx
leaq -0x70(%rbp), %r15
movq (%r14), %rsi
addq %rbx, %rsi
movq %r15, %rdi
callq 0x2110
movq %rbx, -0x30(%rbp)
movq %r13, %rbx
movq %r14, %r13
movq %r15, %r14
movq %r12, %r15
movl 0x3957(%rip), %esi      # 0x71a0
leaq -0xb8(%rbp), %r12
movq %r12, %rdi
callq 0x3646
movq 0xf7c41(%rip), %rsi     # 0xfb4a0
movq 0xf7c42(%rip), %rdx     # 0xfb4a8
movq %r12, %rdi
callq 0x20a0
leaq -0x40(%rbp), %rsi
movq %rsi, -0x50(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq %r15, %r12
je 0x3895
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x389b
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %r14, %r15
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
leaq -0x50(%rbp), %rdi
callq 0x20a0
movq %r13, %r14
movq %r12, -0x98(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq %rbx, %r13
je 0x38f5
movq %rdx, -0x98(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x88(%rbp)
jmp 0x38fd
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq -0x30(%rbp), %rbx
movq 0x8(%rax), %rdx
movq %rdx, -0x90(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
leaq -0x98(%rbp), %rsi
callq 0x2220
movq -0x98(%rbp), %rdi
cmpq %r12, %rdi
je 0x3945
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x21e0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x395e
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21e0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x3980
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x21e0
movq (%r14), %rdi
addq %rbx, %rdi
movq %r15, %rsi
callq 0x2110
addq $0x20, %rbx
decq %r13
jne 0x3825
movq (%r14), %rax
movq -0x78(%rbp), %rbx
movq %rax, (%rbx)
movq 0x8(%r14), %rax
movq %rax, 0x8(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x39dd
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3a39
movq %rax, %r14
jmp 0x3a15
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3a15
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21e0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x3a3c
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x21e0
jmp 0x3a3c
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3a55
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %r14, %rdi
callq 0x22f0
nop