// File: /workspace/github_cpp_makefile_star2_O1/lioncedric[P]cimpressGridCoverage/src/squares.cc
// Function: result[abi:cxx11](int*)
string result(int * squares) {

    string output = "[";
    for (int* ptrSquares = squares; *ptrSquares >= 0; ptrSquares += 3) {
        const int row = *(ptrSquares + 1);
        const int col = *ptrSquares;
        const int square_size = *(ptrSquares + 2);

        if (output != "[") {
            output += ",";
        }
        output += "{ \"X\" : " + IntToString(col - 1) + ", \"Y\" : " + IntToString(row - 1) + ", \"size\" : " + IntToString(square_size) + " }";



    }

    return output + "]";


}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rsi, %r14
movq %rdi, 0x130(%rsp)
leaq 0x120(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1fd5(%rip), %rsi      # 0x50d0
leaq 0x1fcf(%rip), %rdx      # 0x50d1
leaq 0x110(%rsp), %rdi
callq 0x2fb6
movl (%r14), %ebx
testl %ebx, %ebx
js 0x35f5
leaq 0xe0(%rsp), %rcx
addq $0xc, %r14
leaq 0x110(%rsp), %r12
movq %rcx, %r13
movl -0x8(%r14), %ebp
movl -0x4(%r14), %eax
movl %eax, 0x4c(%rsp)
movq %r12, %rdi
leaq 0x1f89(%rip), %rsi      # 0x50d0
callq 0x2080
testl %eax, %eax
je 0x315f
movq %r12, %rdi
leaq 0x1f78(%rip), %rsi      # 0x50d2
callq 0x22c0
decl %ebx
leaq 0x138(%rsp), %r15
movq %r15, %rdi
movl %ebx, %esi
callq 0x3048
movl $0x8, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1f4d(%rip), %rcx      # 0x50d4
callq 0x21a0
leaq 0x60(%rsp), %rsi
movq %rsi, 0x50(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x31b4
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x31ba
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50(%rsp), %rdi
leaq 0x1eff(%rip), %rsi      # 0x50dd
callq 0x22c0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x320b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x3211
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
decl %ebp
leaq 0xb0(%rsp), %rdi
movl %ebp, %esi
callq 0x3048
movq 0x8(%rsp), %rcx
movl $0xf, %esi
leaq 0x18(%rsp), %rbp
cmpq %rbp, %rcx
je 0x3253
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %r8
movq 0xb8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x328d
movl $0xf, %esi
leaq 0xc0(%rsp), %rdi
cmpq %rdi, 0xb0(%rsp)
je 0x3288
movq 0xc0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x32a1
movq 0xb0(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x2090
jmp 0x32b2
leaq 0xb0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21a0
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x32d7
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x32dd
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x1de0(%rip), %rsi      # 0x50e6
callq 0x22c0
movq %r13, 0xd0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3337
movq %rdx, 0xd0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe0(%rsp)
jmp 0x333f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0xd8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90(%rsp), %rdi
movl 0x4c(%rsp), %esi
callq 0x3048
movq 0xd0(%rsp), %rcx
movl $0xf, %esi
cmpq %r13, %rcx
leaq 0x60(%rsp), %rbx
leaq 0x80(%rsp), %r15
je 0x3392
movq 0xe0(%rsp), %rsi
movq 0xd8(%rsp), %r8
movq 0x98(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x33cf
movl $0xf, %esi
leaq 0xa0(%rsp), %rdi
cmpq %rdi, 0x90(%rsp)
je 0x33ca
movq 0xa0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x33e6
movq 0x90(%rsp), %rsi
leaq 0xd0(%rsp), %rdi
callq 0x2090
jmp 0x33f7
leaq 0x90(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21a0
movq %r15, 0x70(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x341a
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x3421
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x70(%rsp), %rdi
leaq 0x1ca8(%rip), %rsi      # 0x50f2
callq 0x22c0
leaq 0x100(%rsp), %rsi
movq %rsi, 0xf0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq %r12, %rdi
je 0x3486
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x348c
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xf8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
callq 0x2090
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x34e1
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x34fb
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x3520
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0xd0(%rsp), %rdi
movq %r13, %rcx
cmpq %r13, %rdi
je 0x3543
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r13, %rcx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3562
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r13, %rcx
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x358a
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r13, %rcx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x35a4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r13, %rcx
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x35be
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r13, %rcx
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x35e6
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r13, %rcx
movl (%r14), %ebx
addq $0xc, %r14
testl %ebx, %ebx
jns 0x312e
movq 0x130(%rsp), %r15
leaq 0x10(%r15), %r14
movq %r14, (%r15)
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x46b2
leaq 0x1acf(%rip), %rsi      # 0x50f5
movq %r15, %rdi
callq 0x22c0
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x3653
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r15, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%r15), %rdi
cmpq %r14, %rdi
je 0x37f1
movq (%r14), %rsi
jmp 0x37e9
jmp 0x3683
jmp 0x3683
movq %rax, %rbx
jmp 0x37f1
movq %rax, %rbx
jmp 0x37cc
movq %rax, %rbx
leaq 0x60(%rsp), %r13
jmp 0x37b5
movq %rax, %rbx
jmp 0x3794
movq %rax, %rbx
jmp 0x376f
movq %rax, %rbx
jmp 0x3753
movq %rax, %rbx
jmp 0x3736
movq %rax, %rbx
jmp 0x3711
movq %rax, %rbx
jmp 0x36ef
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x36ef
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x3711
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x3736
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0xd0(%rsp), %rdi
cmpq %r13, %rdi
je 0x3753
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x376f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x3794
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x60(%rsp), %r13
leaq 0x18(%rsp), %r12
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x37b5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x37cc
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x37f1
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x3816
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rdi
callq 0x2290