user: Converte this assembly snippet into its equivalent C code:

```asm
<set_bnd>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  movl   $0x1,-0x4(%rbp)
  jmp    L27
L71:
  cmpl   $0x1,-0x18(%rbp)
  jne    L2
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x4(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  D28(%rip),%xmm1
  xorps  %xmm1,%xmm0
  jmp    L42
L2:
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x4(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
L42:
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  %xmm0,(%rax)
  cmpl   $0x1,-0x18(%rbp)
  jne    L58
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  D28(%rip),%xmm1
  xorps  %xmm1,%xmm0
  jmp    L28
L58:
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
L28:
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  %xmm0,(%rax)
  cmpl   $0x2,-0x18(%rbp)
  jne    L3
  mov    -0x14(%rbp),%eax
  lea    0x2(%rax),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  D28(%rip),%xmm1
  xorps  %xmm1,%xmm0
  jmp    L96
L3:
  mov    -0x14(%rbp),%eax
  lea    0x2(%rax),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
L96:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  %xmm0,(%rax)
  cmpl   $0x2,-0x18(%rbp)
  jne    L52
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  D28(%rip),%xmm1
  xorps  %xmm1,%xmm0
  jmp    L16
L52:
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
L16:
  mov    -0x14(%rbp),%eax
  lea    0x2(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  imul   %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  %xmm0,(%rax)
  addl   $0x1,-0x4(%rbp)
L27:
  mov    -0x4(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L71
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm0,%xmm1
  movss  D62(%rip),%xmm0
  mulss  %xmm1,%xmm0
  mov    -0x20(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%eax
  lea    0x2(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  imul   %edx,%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm0,%xmm1
  mov    -0x14(%rbp),%eax
  lea    0x2(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  imul   %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  D62(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm0,%xmm1
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  D62(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%eax
  lea    0x2(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  imul   %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm0,%xmm1
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0x14(%rbp),%eax
  lea    0x2(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  imul   %edx,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  D62(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  nop
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D28
data_type: byte[4]
name: unpack_data
arguments: data_label: D62
data_type: byte[4]

tool: {"D28": [0x00,0x00,0x00,0x80]}

tool: {"D62": [0x00,0x00,0x00,0x3f]}

assistant: ```c
void set_bnd(int N, int b, float *x) {
  int i;
  for (i = 1; i <= N; i++) {
    x[((0) + (N + 2) * (i))] = b == 1 ? -x[((1) + (N + 2) * (i))] : x[((1) + (N + 2) * (i))];
    x[((N + 1) + (N + 2) * (i))] = b == 1 ? -x[((N) + (N + 2) * (i))] : x[((N) + (N + 2) * (i))];
    x[((i) + (N + 2) * (0))] = b == 2 ? -x[((i) + (N + 2) * (1))] : x[((i) + (N + 2) * (1))];
    x[((i) + (N + 2) * (N + 1))] = b == 2 ? -x[((i) + (N + 2) * (N))] : x[((i) + (N + 2) * (N))];
  }
  x[((0) + (N + 2) * (0))] = 0.5f * (x[((1) + (N + 2) * (0))] + x[((0) + (N + 2) * (1))]);
  x[((0) + (N + 2) * (N + 1))] = 0.5f * (x[((1) + (N + 2) * (N + 1))] + x[((0) + (N + 2) * (N))]);
  x[((N + 1) + (N + 2) * (0))] = 0.5f * (x[((N) + (N + 2) * (0))] + x[((N + 1) + (N + 2) * (1))]);
  x[((N + 1) + (N + 2) * (N + 1))] = 0.5f * (x[((N) + (N + 2) * (N + 1))] + x[((N + 1) + (N + 2) * (N))]);
}
```