// File: /workspace/github_c_makefile_star2_O0/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
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movl $0x2, %esi
xorl %edx, %edx
movl $0x18, %ecx
movl $0x3a, %r8d
leaq -0x1c(%rbp), %r9
leaq -0x20(%rbp), %rax
movl $0x2, (%rsp)
movl $0x0, 0x8(%rsp)
movl $0x3b, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movb $0x0, %al
callq 0x89000
cmpl $0x2, %eax
je 0x88e42
movl $0x1, -0x4(%rbp)
jmp 0x88fef
movq -0x10(%rbp), %rax
addq $0x5, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x88f72
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movl $0x2, %esi
xorl %r8d, %r8d
movl $0x3b, %ecx
leaq -0x24(%rbp), %r9
movl %r8d, %edx
movb $0x0, %al
callq 0x89000
cmpl $0x1, %eax
je 0x88e9a
movl $0x1, -0x4(%rbp)
jmp 0x88fef
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0x88f70
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
movl %eax, %ecx
leaq 0x21b79(%rip), %rax     # 0xaaa40
movzbl (%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x88f70
movsd 0x24f79(%rip), %xmm0    # 0xade58
movsd %xmm0, -0x38(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x21b40(%rip), %rax     # 0xaaa40
movzbl (%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x88f5d
movsd -0x30(%rbp), %xmm0
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cvtsi2sd %eax, %xmm1
movsd 0x24f8c(%rip), %xmm2    # 0xadeb0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd 0x24f84(%rip), %xmm1    # 0xadeb8
subsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movsd 0x24f6b(%rip), %xmm0    # 0xadeb0
mulsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x88ef0
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
jmp 0x88f79
movl $0x0, -0x24(%rbp)
movq -0x18(%rbp), %rax
movb $0x0, 0x2a(%rax)
movq -0x18(%rbp), %rax
movb $0x1, 0x29(%rax)
movl -0x1c(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x14(%rax)
movl -0x20(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x18(%rax)
cvtsi2sdl -0x24(%rbp), %xmm0
addsd -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x20(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x89340
cmpl $0x0, %eax
je 0x88fcb
movl $0x1, -0x4(%rbp)
jmp 0x88fef
movq -0x18(%rbp), %rax
movl 0x1c(%rax), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, 0x2b(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)