// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: parseHhMmSs
static int parseHhMmSs(const char *zDate, DateTime *p){
  int h, m, s;
  double ms = 0.0;
  if( getDigits(zDate, 2, 0, 24, ':', &h, 2, 0, 59, 0, &m)!=2 ){
    return 1;
  }
  zDate += 5;
  if( *zDate==':' ){
    zDate++;
    if( getDigits(zDate, 2, 0, 59, 0, &s)!=1 ){
      return 1;
    }
    zDate += 2;
    if( *zDate=='.' && sqlite3Isdigit(zDate[1]) ){
      double rScale = 1.0;
      zDate++;
      while( sqlite3Isdigit(*zDate) ){
        ms = ms*10.0 + *zDate - '0';
        rScale *= 10.0;
        zDate++;
      }
      ms /= rScale;
    }
  }else{
    s = 0;
  }
  p->validJD = 0;
  p->validHMS = 1;
  p->h = h;
  p->m = m;
  p->s = s + ms;
  if( parseTimezone(zDate, p) ) return 1;
  p->validTZ = (p->tz!=0)?1:0;
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r15
subq $0x8, %rsp
leaq -0x30(%rbp), %r10
xorl %r11d, %r11d
leaq -0x34(%rbp), %r9
movl $0x2, %esi
xorl %edx, %edx
movl $0x18, %ecx
movl $0x3a, %r8d
xorl %eax, %eax
pushq %r10
pushq %r11
pushq $0x3b
pushq %r11
pushq $0x2
callq 0x668a1
addq $0x30, %rsp
movl $0x1, %r14d
cmpl $0x2, %eax
jne 0x66829
cmpb $0x3a, 0x5(%r15)
jne 0x66745
leaq 0x6(%r15), %rdi
leaq -0x2c(%rbp), %r9
movl $0x2, %esi
xorl %edx, %edx
movl $0x3b, %ecx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x668a1
cmpl $0x1, %eax
jne 0x66829
leaq 0x8(%r15), %rax
xorpd %xmm0, %xmm0
cmpb $0x2e, 0x8(%r15)
jne 0x66740
movzbl 0x9(%r15), %ecx
addq $-0x3a, %rcx
cmpq $-0xa, %rcx
jae 0x6683b
movq %rax, %r15
jmp 0x66754
addq $0x5, %r15
movl $0x0, -0x2c(%rbp)
xorpd %xmm0, %xmm0
movw $0x1, 0x29(%rbx)
movl -0x34(%rbp), %eax
movl %eax, 0x14(%rbx)
movl -0x30(%rbp), %eax
movl %eax, 0x18(%rbx)
xorps %xmm1, %xmm1
cvtsi2sdl -0x2c(%rbp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rbx)
leaq 0xf7e2(%rip), %r12      # 0x75f60
movzbl (%r15), %eax
incq %r15
testb $0x1, (%rax,%r12)
jne 0x6677e
movl $0x0, 0x1c(%rbx)
movzbl -0x1(%r15), %eax
cmpl $0x2d, %eax
je 0x667aa
cmpl $0x2b, %eax
jne 0x66802
movl $0x1, %r13d
jmp 0x667b0
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
subq $0x8, %rsp
leaq -0x38(%rbp), %r10
xorl %r11d, %r11d
leaq -0x3c(%rbp), %r9
movq %r15, %rdi
movl $0x2, %esi
xorl %edx, %edx
movl $0xe, %ecx
movl $0x3a, %r8d
xorl %eax, %eax
pushq %r10
pushq %r11
pushq $0x3b
pushq %r11
pushq $0x2
callq 0x668a1
addq $0x30, %rsp
cmpl $0x2, %eax
jne 0x66829
addq $0x5, %r15
imull $0x3c, -0x3c(%rbp), %eax
addl -0x38(%rbp), %eax
imull %r13d, %eax
movl %eax, 0x1c(%rbx)
jmp 0x6680c
movl %eax, %ecx
andb $-0x21, %cl
cmpb $0x5a, %cl
jne 0x6681a
movzbl (%r15), %eax
incq %r15
testb $0x1, (%rax,%r12)
jne 0x6680c
testb %al, %al
jne 0x66829
cmpl $0x0, 0x1c(%rbx)
setne 0x2b(%rbx)
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x9, %r15
movzbl (%r15), %eax
leaq -0x3a(%rax), %rcx
cmpq $-0xa, %rcx
jb 0x66754
movsd 0x12a7f(%rip), %xmm1    # 0x792d8
movsd 0x12ac7(%rip), %xmm2    # 0x79328
movsd 0x12ac7(%rip), %xmm3    # 0x79330
movsbl %al, %eax
xorps %xmm4, %xmm4
cvtsi2sd %eax, %xmm4
mulsd %xmm2, %xmm0
addsd %xmm4, %xmm0
addsd %xmm3, %xmm0
mulsd %xmm2, %xmm1
movzbl 0x1(%r15), %eax
incq %r15
movq %rax, %rcx
addq $-0x3a, %rcx
cmpq $-0xb, %rcx
ja 0x66869
divsd %xmm1, %xmm0
jmp 0x66754