// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: parseHhMmSs
static int parseHhMmSs(const char *zDate, DateTime *p){
  int h, m, s;
  double ms = 0.0;
  if( getDigits(zDate, "20c:20e", &h, &m)!=2 ){
    return 1;
  }
  zDate += 5;
  if( *zDate==':' ){
    zDate++;
    if( getDigits(zDate, "20e", &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->rawS = 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 $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x142fab(%rip), %rsi    # 0x5af62e
leaq -0x1c(%rbp), %rdx
leaq -0x20(%rbp), %rcx
movb $0x0, %al
callq 0x46c940
cmpl $0x2, %eax
je 0x46c6a3
movl $0x1, -0x4(%rbp)
jmp 0x46c84f
movq -0x10(%rbp), %rax
addq $0x5, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x46c7ca
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x142e70(%rip), %rsi    # 0x5af546
leaq -0x24(%rbp), %rdx
movb $0x0, %al
callq 0x46c940
cmpl $0x1, %eax
je 0x46c6f2
movl $0x1, -0x4(%rbp)
jmp 0x46c84f
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0x46c7c8
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
movl %eax, %ecx
leaq 0x13a4b1(%rip), %rax    # 0x5a6bd0
movzbl (%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x46c7c8
movsd 0xaab09(%rip), %xmm0    # 0x517240
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 0x13a478(%rip), %rax    # 0x5a6bd0
movzbl (%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x46c7b5
movsd -0x30(%rbp), %xmm0
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cvtsi2sd %eax, %xmm1
movsd 0xb9904(%rip), %xmm2    # 0x526080
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd 0x13e534(%rip), %xmm1   # 0x5aacc0
subsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movsd 0xb98e3(%rip), %xmm0    # 0x526080
mulsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x46c748
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
jmp 0x46c7d1
movl $0x0, -0x24(%rbp)
movq -0x18(%rbp), %rax
movb $0x0, 0x28(%rax)
movq -0x18(%rbp), %rax
movb $0x0, 0x29(%rax)
movq -0x18(%rbp), %rax
movb $0x1, 0x2b(%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 0x46cb50
cmpl $0x0, %eax
je 0x46c82b
movl $0x1, -0x4(%rbp)
jmp 0x46c84f
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, 0x2c(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)