// File: /workspace/github_c_makefile_star2_O2/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 $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r12
leaq -0x30(%rbp), %rax
movq %rax, 0x20(%rsp)
andl $0x0, 0x18(%rsp)
movl $0x3b, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
movl $0x2, (%rsp)
pushq $0x2
popq %rsi
pushq $0x18
popq %rcx
pushq $0x3a
popq %r8
leaq -0x34(%rbp), %r9
xorl %edx, %edx
xorl %eax, %eax
callq 0x5a846
pushq $0x1
popq %r14
cmpl $0x2, %eax
jne 0x5a82b
cmpb $0x3a, 0x5(%r12)
jne 0x5a74d
leaq 0x6(%r12), %rdi
pushq $0x2
popq %rsi
pushq $0x3b
popq %rcx
leaq -0x2c(%rbp), %r9
xorl %edx, %edx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x5a846
cmpl $0x1, %eax
jne 0x5a82b
leaq 0x8(%r12), %r15
xorpd %xmm0, %xmm0
cmpb $0x2e, 0x8(%r12)
jne 0x5a75c
movzbl 0x9(%r12), %eax
leaq -0x3a(%rax), %rcx
cmpq $-0xa, %rcx
jb 0x5a75c
addq $0x9, %r12
movsd 0x10bdf(%rip), %xmm1    # 0x6b2e8
movsd 0x10c27(%rip), %xmm2    # 0x6b338
movsd 0x10c27(%rip), %xmm3    # 0x6b340
movq %r12, %r15
movzbl %al, %ecx
addq $-0x3a, %rcx
cmpq $-0xa, %rcx
jb 0x5a83d
movsbl %al, %eax
cvtsi2sd %eax, %xmm4
mulsd %xmm2, %xmm0
addsd %xmm4, %xmm0
addsd %xmm3, %xmm0
mulsd %xmm2, %xmm1
movb 0x1(%r15), %al
incq %r15
jmp 0x5a71c
andl $0x0, -0x2c(%rbp)
addq $0x5, %r12
xorpd %xmm0, %xmm0
movq %r12, %r15
movw $0x1, 0x29(%rbx)
movl -0x34(%rbp), %eax
movl %eax, 0x14(%rbx)
movl -0x30(%rbp), %eax
movl %eax, 0x18(%rbx)
cvtsi2sdl -0x2c(%rbp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rbx)
leaq 0xd7ed(%rip), %r12      # 0x67f70
movzbl (%r15), %eax
incq %r15
testb $0x1, (%rax,%r12)
jne 0x5a783
andl $0x0, 0x1c(%rbx)
movzbl -0x1(%r15), %ecx
cmpl $0x2d, %ecx
je 0x5a7a8
cmpl $0x2b, %ecx
jne 0x5a807
pushq $0x1
jmp 0x5a7aa
pushq $-0x1
popq %r13
leaq -0x38(%rbp), %rax
movq %rax, 0x20(%rsp)
andl $0x0, 0x18(%rsp)
movl $0x3b, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
movl $0x2, (%rsp)
pushq $0x2
popq %rsi
pushq $0xe
popq %rcx
pushq $0x3a
popq %r8
leaq -0x3c(%rbp), %r9
movq %r15, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x5a846
cmpl $0x2, %eax
jne 0x5a82b
addq $0x5, %r15
imull $0x3c, -0x3c(%rbp), %eax
addl -0x38(%rbp), %eax
imull %eax, %r13d
movl %r13d, 0x1c(%rbx)
testl %eax, %eax
setne %al
jmp 0x5a813
movl %ecx, %edx
andb $-0x21, %dl
xorl %eax, %eax
cmpb $0x5a, %dl
jne 0x5a821
movzbl (%r15), %ecx
incq %r15
testb $0x1, (%rcx,%r12)
jne 0x5a813
testb %cl, %cl
jne 0x5a82b
movb %al, 0x2b(%rbx)
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
divsd %xmm1, %xmm0
jmp 0x5a75c