// File: /workspace/github_cpp_makefile_star2_O1/phillip-h[P]todo/src/todolist.cpp
// Function: TodoList::completedStr[abi:cxx11]()
string TodoList::completedStr()
{
    unsigned count = 0;
    unsigned comp = 0;
    for (unsigned i = 0; i < size(); i++){
        if (at(i).div()){
            continue;
        }
        count++;
        if (at(i).completed()){
            comp++;
        }
    }

    string info = std::to_string(comp) + "/" + std::to_string(count);
    info += " -> ";
    if (size() == 0){
        info += " NaN";
    } else {
        info += std::to_string((int) ((float) comp / (float) count * 100));
        info += "%";
    }
    
    return info;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq (%rsi), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
movq %rdi, %rbx
shrq $0x3, %rcx
imull $0xcccccccd, %ecx, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
je 0x9a62
xorl %r12d, %r12d
xorl %r15d, %r15d
xorl %ebp, %ebp
movq %r14, %rdi
movl %r12d, %esi
callq 0x9608
movq %rax, %rdi
callq 0x8ca6
testb %al, %al
jne 0x9a44
incl %ebp
movq %r14, %rdi
movl %r12d, %esi
callq 0x9608
movq %rax, %rdi
callq 0x8d30
movzbl %al, %eax
addl %eax, %r15d
movq (%r14), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
incl %r12d
shrq $0x3, %rcx
imull $0xcccccccd, %ecx, %eax # imm = 0xCCCCCCCD
cmpl %eax, %r12d
jb 0x9a12
jmp 0x9a67
xorl %ebp, %ebp
xorl %r15d, %r15d
movl $0x1, %eax
cmpl $0xa, %r15d
jb 0x9ab7
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r15d, %edx
cmpl $0x63, %edx
jbe 0x9ab0
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x9ab5
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x9ab7
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x9a7f
addl $-0x3, %eax
jmp 0x9ab7
addl $-0x2, %eax
jmp 0x9ab7
decl %eax
movl %eax, %esi
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x48(%rsp), %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x3330
movq (%r12), %rdi
movl 0x8(%r12), %esi
movl %r15d, %edx
callq 0x886d
leaq 0x2b88(%rip), %rsi      # 0xc671
movq %r12, %rdi
callq 0x3560
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9b19
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x9b21
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x9b87
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x9b80
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x9b85
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x9b87
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x9b4f
addl $-0x3, %eax
jmp 0x9b87
addl $-0x2, %eax
jmp 0x9b87
decl %eax
movl %eax, %esi
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x28(%rsp), %rdi
xorl %edx, %edx
callq 0x3330
movq 0x28(%rsp), %rdi
movl 0x30(%rsp), %esi
movl %ebp, %edx
callq 0x886d
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x9bd0
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9beb
movl $0xf, %esi
cmpq %r13, 0x28(%rsp)
je 0x9be6
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9bfc
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x3100
jmp 0x9c0a
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32f0
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x9c29
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x9c2f
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x9c62
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9c79
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x9c95
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0x29d7(%rip), %rsi      # 0xc673
movq %rbx, %rdi
callq 0x3560
movq (%r14), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
imull $0xcccccccd, %ecx, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
je 0x9d33
movl %r15d, %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl %ebp, %eax
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x2976(%rip), %xmm0     # 0xc650
cvttss2si %xmm0, %r15d
movl %r15d, %ebp
negl %ebp
cmovsl %r15d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x9d45
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x9d3c
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x9d42
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x9d45
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x9d00
addl $-0x3, %r14d
jmp 0x9d45
leaq 0x293e(%rip), %rsi      # 0xc678
jmp 0x9da1
addl $-0x2, %r14d
jmp 0x9d45
decl %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
movl $0x2d, %edx
callq 0x3330
movl %r15d, %edi
addq 0x8(%rsp), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x886d
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x3100
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9d9a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0x28dc(%rip), %rsi      # 0xc67d
movq %rbx, %rdi
callq 0x3560
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9e2d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x9e2d
jmp 0x9e2a
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x9df8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x9df8
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9e14
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x9e14
movq %rax, %r14
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x9e44
movq 0x58(%rsp), %rsi
jmp 0x9e3c
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x9e44
movq (%rbx), %rsi
incq %rsi
callq 0x32b0
movq %r14, %rdi
callq 0x3500