user: What would the C source look like for the assembly code provided here?

```asm
<getbranchtime>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rsi,0x8(%rsp)
  lea    0x20(%rsp),%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  mov    $0x18,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  mov    %eax,%ebx
  call   <memset@plt>
  and    $0xfffffff6,%ebx
  cmp    $0x4,%ebx
  jne    L75
  lea    0x2c(%rsp),%r15
  lea    0x28(%rsp),%rbx
  mov    %rbp,%rdi
  mov    %r13,%rdx
  lea    0x24(%rsp),%r14
  sub    $0x8,%rsp
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    0x38(%rsp),%r12
  lea    D36(%rip),%rsi
  mov    %r14,%rcx
  xor    %eax,%eax
  push   %r12
  call   <sscanf@plt>
  pop    %rsi
  pop    %rdi
  cmp    $0x5,%eax
  jne    L168
L145:
  movq   D35(%rip),%xmm1
  movq   0x20(%rsp),%xmm0
  paddd  %xmm0,%xmm1
  pshufd $0xe5,%xmm0,%xmm2
  movd   %xmm2,%eax
  sub    $0x1,%eax
  movq   %xmm1,0x20(%rsp)
  cmp    $0xb,%eax
  ja     L75
  movd   %xmm1,%eax
  cmp    $0x63,%eax
  jg     L157
  nopl   0x0(%rax)
L75:
  xor    %eax,%eax
L52:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L43
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L168:
  sub    $0x8,%rsp
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    %r15,%r9
  push   %r12
  mov    %rbx,%r8
  lea    D19(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <sscanf@plt>
  pop    %rdx
  pop    %rcx
  cmp    $0x5,%eax
  je     L145
  lea    0x1c(%rsp),%r14
  lea    0x18(%rsp),%r13
  xor    %eax,%eax
  mov    %rbp,%rdi
  mov    %r14,%rcx
  mov    %r13,%rdx
  lea    D5(%rip),%rsi
  call   <sscanf@plt>
  cmp    $0x2,%eax
  je     L126
  xor    %eax,%eax
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    %rbp,%rdi
  lea    D41(%rip),%rsi
  call   <sscanf@plt>
  cmp    $0x2,%eax
  jne    L75
L126:
  mov    0x18(%rsp),%eax
  cmp    $0x17,%eax
  ja     L75
  mov    0x1c(%rsp),%edx
  cmp    $0x3b,%edx
  ja     L75
  mov    0x8(%rsp),%rcx
  imul   $0xe10,%eax,%eax
  imul   $0x3c,%edx,%edx
  mov    (%rcx),%edi
  lea    (%rax,%rdx,1),%esi
  cmp    $0x15180,%edi
  jg     L103
  mov    %esi,(%rcx)
  mov    $0x1,%eax
  jmp    L52
  nopl   (%rax)
L157:
  mov    0x28(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x1e,%eax
  ja     L75
  cmpl   $0x17,0x2c(%rsp)
  ja     L75
  cmpl   $0x3b,0x30(%rsp)
  ja     L75
  mov    %r13,%rdi
  movl   $0xffffffff,0x34(%rsp)
  call   <mktime@plt>
  cmp    $0xffffffff,%eax
  je     L75
L106:
  mov    0x8(%rsp),%rcx
  mov    %eax,(%rcx)
  mov    $0x1,%eax
  jmp    L52
  nopl   0x0(%rax,%rax,1)
L103:
  call   <normalize_epoch@plt>
  jmp    L106
L43:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D36
type_guessed: string
name: retrieve_data
arguments: data_tag: D35
type_guessed: byte[8]
name: retrieve_data
arguments: data_tag: D19
type_guessed: string
name: retrieve_data
arguments: data_tag: D5
type_guessed: string
name: retrieve_data
arguments: data_tag: D41
type_guessed: string

tool: D36: %4d%2d%2d%2d:%2d

tool: {"D35": [0x94,0xf8,0xff,0xff,0xff,0xff,0xff,0xff]}

tool: D19: %4d%2d%2d%2d%2d

tool: D5: %2d:%2d

tool: D41: %2d%2d

assistant: ```c
int getbranchtime(char *itim, time_t *newtime) {
  register int ilen = strlen(itim);
  int hours, minutes;
  time_t epoch;
  struct tm tm;
  memset(&tm, 0, sizeof tm);
  if (ilen != 4 && ilen != 5 && ilen != 12 && ilen != 13)
    return 0;
  if (sscanf(itim, "%4d%2d%2d%2d:%2d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min) == 5 || sscanf(itim, "%4d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min) == 5) {
    tm.tm_year -= 1900;
    tm.tm_mon -= 1;
    if (tm.tm_year < 100 || tm.tm_mon < 0 || tm.tm_mon > 11 || tm.tm_mday < 1 || tm.tm_mday > 31 || tm.tm_hour < 0 || tm.tm_hour > 23 || tm.tm_min < 0 || tm.tm_min > 59) {
      return 0;
    }
    tm.tm_isdst = -1;
    if ((epoch = mktime(&tm)) == -1)
      return 0;
    *newtime = epoch;
    return 1;
  }
  if (sscanf(itim, "%2d:%2d", &hours, &minutes) == 2 || sscanf(itim, "%2d%2d", &hours, &minutes) == 2) {
    if (hours < 0 || hours > 23 || minutes < 0 || minutes > 59)
      return 0;
    if (*newtime <= 86400) {
      *newtime = (hours * 3600) + (minutes * 60);
      if (*newtime >= 86400)
        *newtime = 86400 - 1;
      return 1;
    } else {
      *newtime = normalize_epoch(*newtime, (hours * 3600) + (minutes * 60));
      return 1;
    }
  }
  return 0;
}
```