// File: ndsol[P]git-mine/./hashapi.h
// Function: CommitMessage::parseTimestamp(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, long long*)
static int parseTimestamp(std::string* packed, std::string* thetime,
                            std::string* thetz, long long* binarytime) {
    const char* s = packed->c_str();
    int n = 0;
    int limit = strlen(s);
    // The timestamp is after <email-id> and some whitespace.
    const char* token[] = {"<", ">", " "};
    for (size_t i = 0; i < sizeof(token)/sizeof(token[0]); i++) {
      n += strcspn(s + n, token[i]);
      n += strspn(s + n, token[i]);
      if (n >= limit) {
        break;
      }
    }
    if (n >= limit) {
      fprintf(stderr, "invalid timestamp - overran limit\n");
      return 1;
    }
    s += n;
    limit -= n;
    if (sscanf(s, "%lld%n", binarytime, &n) != 1) {
      fprintf(stderr, "invalid timestamp: \"%.*s\"\n", limit, s);
      return 1;
    }
    thetime->assign(s, s + n);
    thetz->assign(s + n);
    packed->erase(packed->begin() + (s - packed->c_str()), packed->end());
    return 0;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4110
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x30(%rbp), %rdi
callq 0x4140
movl %eax, -0x38(%rbp)
movq 0x192be(%rip), %rax     # 0x1fc70
movq %rax, -0x50(%rbp)
movq 0x192bb(%rip), %rax     # 0x1fc78
movq %rax, -0x48(%rbp)
movq 0x192b8(%rip), %rax     # 0x1fc80
movq %rax, -0x40(%rbp)
movq $0x0, -0x58(%rbp)
cmpq $0x3, -0x58(%rbp)
jae 0x6a41
movq -0x30(%rbp), %rdi
movslq -0x34(%rbp), %rax
addq %rax, %rdi
movq -0x58(%rbp), %rax
movq -0x50(%rbp,%rax,8), %rsi
callq 0x4040
movq %rax, %rcx
movslq -0x34(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x34(%rbp)
movq -0x30(%rbp), %rdi
movslq -0x34(%rbp), %rax
addq %rax, %rdi
movq -0x58(%rbp), %rax
movq -0x50(%rbp,%rax,8), %rsi
callq 0x4120
movq %rax, %rcx
movslq -0x34(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jl 0x6a31
jmp 0x6a41
jmp 0x6a33
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x69d4
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jl 0x6a6d
movq 0x19588(%rip), %rax     # 0x1ffd8
movq (%rax), %rdi
leaq 0x1183c(%rip), %rsi     # 0x18296
movb $0x0, %al
callq 0x44c0
movl $0x1, -0x4(%rbp)
jmp 0x6b8b
movl -0x34(%rbp), %ecx
movq -0x30(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movl -0x34(%rbp), %ecx
movl -0x38(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rdx
leaq 0x115a9(%rip), %rsi     # 0x18041
leaq -0x34(%rbp), %rcx
movb $0x0, %al
callq 0x42f0
cmpl $0x1, %eax
je 0x6ad3
movq 0x19529(%rip), %rax     # 0x1ffd8
movq (%rax), %rdi
movl -0x38(%rbp), %edx
movq -0x30(%rbp), %rcx
leaq 0x117f9(%rip), %rsi     # 0x182b9
movb $0x0, %al
callq 0x44c0
movl $0x1, -0x4(%rbp)
jmp 0x6b8b
movq -0x18(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x30(%rbp), %rdx
movslq -0x34(%rbp), %rax
addq %rax, %rdx
callq 0x7fd0
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movslq -0x34(%rbp), %rax
addq %rax, %rsi
callq 0x4650
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x10(%rbp), %rdi
callq 0x42c0
movq %rax, -0x70(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4110
movq -0x98(%rbp), %rsi
subq %rax, %rsi
leaq -0x70(%rbp), %rdi
callq 0x8040
movq %rax, -0x68(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x7f80
movq -0x10(%rbp), %rdi
callq 0x41d0
movq %rax, -0x80(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x7f80
movq -0x90(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x78(%rbp), %rdx
callq 0x4070
movq %rax, -0x88(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xa0, %rsp
popq %rbp
retq
nopw (%rax,%rax)