user: Translate the below assembly code into C programming language:

```asm
<extract_http_code>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  movl   $0x0,-0x4(%rbp)
  cmpl   $0xc,-0x1c(%rbp)
  jg     L23
  mov    -0x4(%rbp),%eax
  jmp    L64
L23:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x68,%al
  je     L118
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x48,%al
  jne    L117
L118:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x74,%al
  je     L185
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x54,%al
  jne    L117
L185:
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x74,%al
  je     L79
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x54,%al
  jne    L117
L79:
  mov    -0x18(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x70,%al
  je     L30
  mov    -0x18(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x50,%al
  jne    L117
L30:
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L117
  mov    -0x18(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L117
  mov    -0x18(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L117
  mov    -0x18(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L117
  mov    -0x18(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L117
  mov    -0x18(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L117
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L117
  mov    -0x18(%rbp),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L117
  mov    -0x18(%rbp),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L117
  mov    -0x18(%rbp),%rax
  add    $0xa,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L117
  mov    -0x18(%rbp),%rax
  add    $0xa,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L117
  mov    -0x18(%rbp),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L117
  mov    -0x18(%rbp),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L117
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L117
  mov    -0x18(%rbp),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  imul   $0x64,%eax,%eax
  add    %eax,-0x4(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0xa,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  add    %eax,-0x4(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,-0x4(%rbp)
L117:
  mov    -0x4(%rbp),%eax
L64:
  pop    %rbp
  ret
```

assistant: ```c
int extract_http_code(char *response, int response_size) {
  int code = 0;
  if (response_size < 13) {
    return code;
  }
  if ((response[0] == 'h' || response[0] == 'H') && (response[1] == 't' || response[1] == 'T') && (response[2] == 't' || response[2] == 'T') && (response[3] == 'p' || response[3] == 'P') && response[4] == '/' && (response[5] >= '0' && response[5] <= '9') && response[6] == '.' && (response[7] >= '0' && response[7] <= '9') && response[8] == ' ' && (response[9] >= '0' && response[9] <= '9') && (response[10] >= '0' && response[10] <= '9') && (response[11] >= '0' && response[11] <= '9') && response[12] == ' ') {
    code += 100 * (response[9] - '0');
    code += 10 * (response[10] - '0');
    code += response[11] - '0';
  }
  return code;
}
```