// File: /workspace/github_cpp_makefile_star2_O3/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 0x9973
xorl %r12d, %r12d
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %r14, %rdi
movl %r12d, %esi
callq 0x94c8
movq %rax, %rdi
callq 0x8b68
testb %al, %al
jne 0x9908
incl %r15d
movq %r14, %rdi
movl %r12d, %esi
callq 0x94c8
movq %rax, %rdi
callq 0x8bf2
movzbl %al, %eax
addl %eax, %ebp
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 0x98d6
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x997d
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x9c02
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x9c10
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x997d
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x993a
addl $-0x3, %eax
jmp 0x997d
movl $0x1, %eax
xorl %ebp, %ebp
xorl %r15d, %r15d
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 %ebp, %edx
callq 0x874e
leaq 0x2cc3(%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 0x99de
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x99e6
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, %r15d
jb 0x9a4e
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r15d, %edx
cmpl $0x63, %edx
jbe 0x9a47
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x9a4c
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x9a4e
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x9a16
addl $-0x3, %eax
jmp 0x9a4e
addl $-0x2, %eax
jmp 0x9a4e
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 %r15d, %edx
callq 0x874e
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x9a98
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x9ab6
movl $0xf, %edi
cmpq %r13, %rsi
je 0x9ab1
movq 0x38(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x9ac2
leaq 0x8(%rsp), %rdi
callq 0x3100
jmp 0x9ad0
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 0x9aef
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x9af5
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 0x9b28
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9b3f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x9b5b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0x2b11(%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 0x9bf9
movl %ebp, %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl %r15d, %eax
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x2ab0(%rip), %xmm0     # 0xc650
cvttss2si %xmm0, %r15d
movl %r15d, %ebp
negl %ebp
cmovsl %r15d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x9c1a
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x9c0a
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x9c17
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x9c1a
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x9bc6
addl $-0x3, %r14d
jmp 0x9c1a
leaq 0x2a78(%rip), %rsi      # 0xc678
jmp 0x9c76
addl $-0x2, %eax
jmp 0x997d
addl $-0x2, %r14d
jmp 0x9c1a
decl %eax
jmp 0x997d
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 0x874e
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x3100
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9c6f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0x2a07(%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 0x9d02
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x9d02
jmp 0x9cff
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x9ccd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x9ccd
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9ce9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x9ce9
movq %rax, %r14
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x9d19
movq 0x58(%rsp), %rsi
jmp 0x9d11
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x9d19
movq (%rbx), %rsi
incq %rsi
callq 0x32b0
movq %r14, %rdi
callq 0x3500
nop