// File: /workspace/github_c_makefile_star2_O3/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, %r12
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 0x666dd
addq $0x30, %rsp
movl $0x1, %r14d
cmpl $0x2, %eax
jne 0x666cb
cmpb $0x3a, 0x5(%r12)
jne 0x665e1
leaq 0x6(%r12), %rdi
leaq -0x2c(%rbp), %r9
movl $0x2, %esi
xorl %edx, %edx
movl $0x3b, %ecx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x666dd
cmpl $0x1, %eax
jne 0x666cb
leaq 0x8(%r12), %r15
xorpd %xmm0, %xmm0
cmpb $0x2e, 0x8(%r12)
jne 0x665f3
movzbl 0x9(%r12), %eax
leaq -0x3a(%rax), %rcx
cmpq $-0xa, %rcx
jb 0x665f3
addq $0x9, %r12
movsd 0x12d3f(%rip), %xmm1    # 0x792d8
movsd 0x12d87(%rip), %xmm2    # 0x79328
movsd 0x12d87(%rip), %xmm3    # 0x79330
movq %r12, %r15
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 0x665ac
divsd %xmm1, %xmm0
jmp 0x665f3
addq $0x5, %r12
movl $0x0, -0x2c(%rbp)
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)
xorps %xmm1, %xmm1
cvtsi2sdl -0x2c(%rbp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rbx)
leaq 0xf993(%rip), %r12      # 0x75fb0
movzbl (%r15), %eax
incq %r15
testb $0x1, (%rax,%r12)
jne 0x6661d
movl $0x0, 0x1c(%rbx)
movzbl -0x1(%r15), %ecx
cmpl $0x2d, %ecx
je 0x66649
cmpl $0x2b, %ecx
jne 0x666a7
movl $0x1, %r13d
jmp 0x6664f
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 0x666dd
addq $0x30, %rsp
cmpl $0x2, %eax
jne 0x666cb
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 0x666b3
movl %ecx, %edx
andb $-0x21, %dl
xorl %eax, %eax
cmpb $0x5a, %dl
jne 0x666c1
movzbl (%r15), %ecx
incq %r15
testb $0x1, (%rcx,%r12)
jne 0x666b3
testb %cl, %cl
jne 0x666cb
movb %al, 0x2b(%rbx)
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq