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

```asm
<serviceLane>:
  endbr64
  push   %r15
  lea    D9(%rip),%r15
  push   %r14
  push   %r13
  push   %r12
  lea    D15(%rip),%r12
  push   %rbp
  mov    %r12,%rdi
  xor    %ebp,%ebp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  lea    0x0(,%rax,4),%edi
  call   <malloc@plt>
  mov    %rax,%rbx
  mov    0x8(%rsp),%eax
  mov    %rbx,%r13
  lea    0x0(,%rax,4),%edi
  call   <malloc@plt>
  mov    0x8(%rsp),%edx
  mov    %rax,%r14
  test   %edx,%edx
  jle    L141
  nopl   (%rax)
L132:
  mov    %r13,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x1,%ebp
  call   <scanf@plt>
  add    $0x4,%r13
  cmp    %ebp,0x8(%rsp)
  jg     L132
L141:
  movl   $0x0,(%r14)
  mov    0x8(%rsp),%ecx
  mov    $0x1,%eax
  mov    $0x1,%edx
  cmp    $0x1,%ecx
  jle    L96
  nopl   0x0(%rax)
L60:
  mov    -0x4(%rbx,%rax,4),%edi
  cmp    %edi,(%rbx,%rax,4)
  je     L146
  movslq %edx,%rcx
  add    $0x1,%edx
  mov    %eax,(%r14,%rcx,4)
  mov    0x8(%rsp),%ecx
  add    $0x1,%rax
  cmp    %eax,%ecx
  jg     L60
L96:
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L39
  xor    %ebp,%ebp
  lea    0x14(%rsp),%r15
  lea    0x10(%rsp),%r14
  lea    D8(%rip),%r13
  nopw   0x0(%rax,%rax,1)
L57:
  mov    %r12,%rdi
  mov    %r15,%rdx
  mov    %r14,%rsi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x10(%rsp),%ecx
  mov    0x14(%rsp),%edi
  cmp    %edi,%ecx
  jg     L116
  mov    %edi,%eax
  sub    %ecx,%eax
  lea    0x1(%rax),%r8d
  cmp    $0x2,%eax
  jbe    L6
  mov    %r8d,%edx
  movslq %ecx,%rax
  movdqa D38(%rip),%xmm0
  shr    $0x2,%edx
  lea    (%rbx,%rax,4),%rax
  shl    $0x4,%rdx
  add    %rax,%rdx
  nopl   (%rax)
L108:
  movdqu (%rax),%xmm1
  movdqu (%rax),%xmm3
  add    $0x10,%rax
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm3,%xmm1
  por    %xmm1,%xmm0
  cmp    %rdx,%rax
  jne    L108
  movdqa %xmm0,%xmm2
  mov    %r8d,%eax
  psrldq $0x8,%xmm2
  and    $0xfffffffc,%eax
  movdqa %xmm2,%xmm1
  add    %eax,%ecx
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm0,%xmm1
  movd   %xmm1,%esi
  cmp    %r8d,%eax
  je     L21
L177:
  movslq %ecx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    (%rbx,%rax,4),%eax
  cmp    %eax,%esi
  cmovg  %eax,%esi
  lea    0x1(%rcx),%eax
  cmp    %edi,%eax
  jg     L21
  mov    0x4(%rbx,%rdx,1),%eax
  cmp    %eax,%esi
  cmovg  %eax,%esi
  lea    0x2(%rcx),%eax
  cmp    %eax,%edi
  jl     L21
  mov    0x8(%rbx,%rdx,1),%eax
  cmp    %eax,%esi
  cmovg  %eax,%esi
L21:
  mov    %r13,%rdi
  add    $0x1,%ebp
  call   <printf@plt>
  cmp    %ebp,0xc(%rsp)
  jg     L57
L39:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L146:
  add    $0x1,%rax
  cmp    %eax,%ecx
  jg     L60
  jmp    L96
  nopl   0x0(%rax)
L116:
  mov    $0x3,%esi
  jmp    L21
L6:
  mov    $0x3,%esi
  jmp    L177
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D9
data_type: string
name: retrieve_data
arguments: tag: D15
data_type: string
name: retrieve_data
arguments: tag: D8
data_type: string
name: retrieve_data
arguments: tag: D38
data_type: byte[16]

tool: D9: %d

tool: D15: %d %d

tool: D8: %d


tool: {"D38": [0x03,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

assistant: ```c
int serviceLane(void) {
  int roadLength, numCases;
  int numChanges;
  scanf("%d %d", &roadLength, &numCases);
  int *widths = malloc(sizeof(int) * roadLength);
  int *changeIndexes = malloc(sizeof(int) * roadLength);
  for (int i = 0; i < roadLength; i++) {
    scanf("%d", &widths[i]);
  }
  changeIndexes[0] = 0;
  numChanges = 1;
  for (int i = 1; i < roadLength; i++) {
    if (widths[i] != widths[i - 1]) {
      changeIndexes[numChanges] = i;
      numChanges++;
    }
  }
  for (int i = 0; i < numCases; i++) {
    int start, end;
    scanf("%d %d", &start, &end);
    int minWidth = 3;
    for (int j = start; j <= end; j++) {
      if (widths[j] < minWidth) {
        minWidth = widths[j];
      }
    }
    printf("%d\n", minWidth);
  }
  return 0;
}
```