// File: /workspace/github_cpp_makefile_star2_O3/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 $0x148, %rsp            # imm = 0x148
movq %rsi, %r14
movq %rdi, 0x120(%rsp)
leaq 0x110(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1fd1(%rip), %rsi      # 0x50d0
leaq 0x1fcb(%rip), %rdx      # 0x50d1
leaq 0x100(%rsp), %rdi
callq 0x2fb4
movl (%r14), %ebx
testl %ebx, %ebx
js 0x35c1
addq $0xc, %r14
leaq 0x100(%rsp), %r13
movl -0x8(%r14), %ebp
movl -0x4(%r14), %r15d
movq %r13, %rdi
leaq 0x1f94(%rip), %rsi      # 0x50d0
callq 0x2080
testl %eax, %eax
je 0x3154
movq %r13, %rdi
leaq 0x1f83(%rip), %rsi      # 0x50d2
callq 0x22c0
decl %ebx
leaq 0x128(%rsp), %r12
movq %r12, %rdi
movl %ebx, %esi
callq 0x304c
movl $0x8, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1f58(%rip), %rcx      # 0x50d4
callq 0x21a0
leaq 0xf0(%rsp), %rbx
leaq 0x90(%rsp), %rsi
movq %rsi, 0x80(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x31bd
movq %rdx, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0x31c3
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x88(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %rdi
leaq 0x1ef0(%rip), %rsi      # 0x50dd
callq 0x22c0
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3218
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x321e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
decl %ebp
leaq 0xc0(%rsp), %rdi
movl %ebp, %esi
callq 0x304c
movq (%rsp), %rcx
movl $0xf, %edi
leaq 0x10(%rsp), %r12
cmpq %r12, %rcx
je 0x325f
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x329c
movl $0xf, %edi
leaq 0xd0(%rsp), %r9
cmpq %r9, %rsi
je 0x3297
movq 0xd0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x32a6
movq %rsp, %rdi
callq 0x2090
jmp 0x32b7
leaq 0xc0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21a0
leaq 0x30(%rsp), %rsi
movq %rsi, 0x20(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x32dc
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x32e2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x20(%rsp), %rdi
leaq 0x1ddb(%rip), %rsi      # 0x50e6
callq 0x22c0
leaq 0x70(%rsp), %rsi
movq %rsi, 0x60(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3338
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x333e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa0(%rsp), %rdi
movl %r15d, %esi
callq 0x304c
movq 0x60(%rsp), %rcx
movl $0xf, %edi
leaq 0x70(%rsp), %rax
cmpq %rax, %rcx
leaq 0x90(%rsp), %r15
je 0x3387
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %r8
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x33c4
movl $0xf, %edi
leaq 0xb0(%rsp), %r9
cmpq %r9, %rsi
je 0x33bf
movq 0xb0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x33d0
leaq 0x60(%rsp), %rdi
callq 0x2090
jmp 0x33e1
leaq 0xa0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21a0
leaq 0x50(%rsp), %rsi
movq %rsi, 0x40(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x3406
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x340c
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x40(%rsp), %rdi
leaq 0x1cbd(%rip), %rsi      # 0x50f2
callq 0x22c0
movq %rbx, 0xe0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq %r13, %rdi
je 0x3469
movq %rdx, 0xe0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf0(%rsp)
jmp 0x346f
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0xe8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
callq 0x2090
movq 0xe0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x34bc
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x34d8
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x34fd
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x3519
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3535
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x355a
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x2190
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x3570
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x358d
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x35b2
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x2190
movl (%r14), %ebx
addq $0xc, %r14
testl %ebx, %ebx
jns 0x312a
movq 0x120(%rsp), %r15
leaq 0x10(%r15), %r14
movq %r14, (%r15)
movq 0x100(%rsp), %rsi
movq 0x108(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x476a
leaq 0x1b03(%rip), %rsi      # 0x50f5
movq %r15, %rdi
callq 0x22c0
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x361f
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r15, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%r15), %rdi
cmpq %r14, %rdi
je 0x37bc
movq (%r14), %rsi
jmp 0x37b4
jmp 0x364f
jmp 0x364f
movq %rax, %rbx
jmp 0x37bc
movq %rax, %rbx
jmp 0x3797
movq %rax, %rbx
leaq 0x90(%rsp), %r13
jmp 0x377a
movq %rax, %rbx
jmp 0x3757
movq %rax, %rbx
jmp 0x3732
movq %rax, %rbx
jmp 0x3716
movq %rax, %rbx
jmp 0x36fa
movq %rax, %rbx
jmp 0x36d5
movq %rax, %rbx
jmp 0x36b9
movq %rbx, %rcx
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %rcx, %rdi
je 0x36b9
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x36d5
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x36fa
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x3716
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3732
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x3757
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x90(%rsp), %r13
leaq 0x10(%rsp), %r12
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x377a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0x3797
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x37bc
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x37e1
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rdi
callq 0x2290