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

```asm
<connected_component_filter>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x48,%rsp
  mov    %esi,0x30(%rsp)
  imul   %edx,%esi
  movss  %xmm0,0x10(%rsp)
  mov    %esi,0x2c(%rsp)
  mov    %esi,%r14d
  call   <adsf_begin@plt>
  lea    -0x1(%rbx),%eax
  mov    %eax,0x34(%rsp)
  test   %r14d,%r14d
  jle    L102
  movslq %r14d,%rbx
  xor    %ebp,%ebp
  nopl   0x0(%rax,%rax,1)
L126:
  movss  (%r12,%rbp,4),%xmm0
  call   <isnan@plt>
  test   %rax,%rax
  je     L116
  movl   $0xffffffff,(%r15,%rbp,4)
L116:
  add    $0x1,%rbp
  cmp    %rbx,%rbp
  jne    L126
  mov    0x34(%rsp),%eax
  test   %eax,%eax
  jle    L173
  cmpl   $0x1,0x30(%rsp)
  jle    L173
L47:
  movslq 0x30(%rsp),%rax
  movl   $0x0,0x20(%rsp)
  mov    %r12,%r14
  mov    %r15,%r12
  movq   $0x0,0x18(%rsp)
  mov    %rax,%rdx
  lea    -0x1(%rax),%ebx
  shl    $0x2,%rax
  movl   $0x0,0x28(%rsp)
  mov    %rax,0x38(%rsp)
  mov    %edx,0x24(%rsp)
  nop
L223:
  mov    0x20(%rsp),%edx
  mov    0x24(%rsp),%eax
  addl   $0x1,0x28(%rsp)
  mov    0x18(%rsp),%r13
  sub    %edx,%eax
  mov    %edx,%r15d
  mov    %eax,0xc(%rsp)
  mov    %r14,%rax
  mov    %r12,%r14
  mov    %rax,%r12
  jmp    L108
  cs nopw 0x0(%rax,%rax,1)
L29:
  mov    0xc(%rsp),%eax
  lea    (%rax,%r15,1),%ecx
  movslq %ecx,%rax
  mov    (%r14,%rax,4),%r8d
  test   %r8d,%r8d
  jns    L121
L186:
  mov    %ebp,%r15d
  add    $0x4,%r13
  cmp    %ebp,%ebx
  je     L208
L108:
  mov    (%r14,%r13,1),%r10d
  lea    0x1(%r15),%ebp
  test   %r10d,%r10d
  js     L186
  movslq %ebp,%rax
  mov    (%r14,%rax,4),%r9d
  test   %r9d,%r9d
  js     L29
  movss  (%r12,%r13,1),%xmm0
  subss  (%r12,%rax,4),%xmm0
  call   <fabs@plt>
  movss  0x10(%rsp),%xmm1
  comiss %xmm0,%xmm1
  ja     L130
L218:
  mov    (%r14,%r13,1),%edi
  test   %edi,%edi
  jns    L29
  jmp    L186
  cs nopw 0x0(%rax,%rax,1)
L121:
  movss  (%r12,%r13,1),%xmm0
  subss  (%r12,%rax,4),%xmm0
  mov    %ecx,0x14(%rsp)
  call   <fabs@plt>
  movss  0x10(%rsp),%xmm2
  mov    0x14(%rsp),%ecx
  comiss %xmm0,%xmm2
  jbe    L186
  mov    0x2c(%rsp),%esi
  mov    %r15d,%edx
  mov    %r14,%rdi
  mov    %ebp,%r15d
  add    $0x4,%r13
  call   <adsf_union@plt>
  cmp    %ebp,%ebx
  jne    L108
  nopw   0x0(%rax,%rax,1)
L208:
  mov    %r12,%rax
  mov    %r14,%r12
  mov    0x38(%rsp),%rsi
  mov    0x34(%rsp),%edi
  mov    %rax,%r14
  mov    0x30(%rsp),%eax
  add    %rsi,0x18(%rsp)
  add    %eax,0x24(%rsp)
  add    %eax,0x20(%rsp)
  add    %eax,%ebx
  cmp    %edi,0x28(%rsp)
  jl     L223
  mov    0x2c(%rsp),%esi
  mov    %r12,%r15
  test   %esi,%esi
  jle    L225
L173:
  mov    0x2c(%rsp),%ebp
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L45:
  mov    (%r15,%rbx,4),%ecx
  mov    %ebx,%edx
  test   %ecx,%ecx
  js     L74
  mov    %ebp,%esi
  mov    %r15,%rdi
  call   <adsf_find@plt>
  mov    %eax,(%r15,%rbx,4)
L74:
  add    $0x1,%rbx
  cmp    %ebx,%ebp
  jg     L45
L225:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L130:
  mov    0x2c(%rsp),%esi
  mov    %ebp,%ecx
  mov    %r15d,%edx
  mov    %r14,%rdi
  call   <adsf_union@plt>
  jmp    L218
L102:
  mov    0x34(%rsp),%edx
  test   %edx,%edx
  jle    L225
  cmpl   $0x1,0x30(%rsp)
  jg     L47
  jmp    L225
```

assistant: ```c
void connected_component_filter(int *rep, int w, int h, float *in, float intensity_threshold) {
  adsf_begin(rep, w * h);
  for (int i = 0; i < w * h; i++)
    if (isnan(in[i]))
      rep[i] = -1;
  for (int j = 0; j < h - 1; j++)
    for (int i = 0; i < w - 1; i++) {
      int p0 = j * w + i;
      int p1 = j * w + i + 1;
      int p2 = (j + 1) * w + i;
      if (rep[p0] >= 0 && rep[p1] >= 0 && fabs(in[p0] - in[p1]) < intensity_threshold)
        adsf_union(rep, w * h, p0, p1);
      if (rep[p0] >= 0 && rep[p2] >= 0 && fabs(in[p0] - in[p2]) < intensity_threshold)
        adsf_union(rep, w * h, p0, p2);
    }
  for (int i = 0; i < w * h; i++)
    if (rep[i] >= 0)
      rep[i] = adsf_find(rep, w * h, i);
}
```