user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<array_modify>:
  endbr64
  mov    %edx,%eax
  cltd
  idiv   %esi
  test   %eax,%eax
  jle    L29
  push   %r15
  add    $0x1,%eax
  movslq %esi,%r15
  xor    %r9d,%r9d
  push   %r14
  lea    0x0(,%r15,4),%rcx
  mov    $0x1,%r14d
  push   %r13
  mov    %esi,%r13d
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  mov    %esi,%ebx
  shr    $0x1f,%ebx
  add    %esi,%ebx
  mov    %eax,-0x1c(%rsp)
  lea    -0x4(%rdi),%rax
  sar    %ebx
  mov    %rcx,-0x18(%rsp)
  mov    %ebx,%r12d
  mov    %rax,-0x10(%rsp)
  shl    $0x2,%r12
  nopl   0x0(%rax)
L104:
  lea    (%r9,%r13,1),%r11d
  cmp    %ebx,%r9d
  jge    L1
  mov    %ebx,%esi
  movslq %r11d,%r8
  lea    0x0(,%rbp,4),%rax
  sub    %r9d,%esi
  shl    $0x2,%r8
  mov    %esi,%edx
  neg    %rdx
  lea    (%r8,%rdx,4),%rdx
  cmp    %r12,%rdx
  setge  %cl
  cmp    %r8,%rax
  setge  %dl
  or     %cl,%dl
  je     L93
  cmp    $0x1,%esi
  je     L93
  lea    -0x1(%rsi),%edx
  cmp    $0x2,%edx
  jbe    L63
  mov    %esi,%ecx
  add    %rdi,%rax
  lea    -0x10(%rdi,%r8,1),%rdx
  shr    $0x2,%ecx
  lea    -0x1(%rcx),%r10d
  lea    0x10(%rax),%rcx
  shl    $0x4,%r10
  add    %rcx,%r10
  jmp    L95
  nopl   0x0(%rax)
L86:
  add    $0x10,%rcx
L95:
  movdqu (%rax),%xmm0
  movdqu (%rdx),%xmm2
  sub    $0x10,%rdx
  pshufd $0x1b,%xmm2,%xmm1
  pshufd $0x1b,%xmm0,%xmm0
  movups %xmm1,(%rax)
  mov    %rcx,%rax
  movups %xmm0,0x10(%rdx)
  cmp    %r10,%rcx
  jne    L86
  mov    %esi,%edx
  and    $0xfffffffc,%edx
  lea    (%rdx,%r9,1),%eax
  cmp    %edx,%esi
  je     L1
  sub    %edx,%esi
  cmp    $0x1,%esi
  je     L79
L70:
  lea    (%rdx,%rbp,1),%rcx
  neg    %rdx
  lea    -0x8(%r8,%rdx,4),%rdx
  lea    (%rdi,%rcx,4),%rcx
  add    %rdi,%rdx
  movq   (%rcx),%xmm0
  movq   (%rdx),%xmm1
  pshufd $0xe1,%xmm0,%xmm0
  pshufd $0xe1,%xmm1,%xmm1
  movq   %xmm1,(%rcx)
  movq   %xmm0,(%rdx)
  mov    %esi,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %edx,%esi
  je     L1
L79:
  movslq %eax,%rdx
  mov    %r11d,%esi
  sub    %r9d,%eax
  sub    %eax,%esi
  lea    (%rdi,%rdx,4),%rdx
  movslq %esi,%rax
  mov    (%rdx),%ecx
  lea    -0x4(%rdi,%rax,4),%rax
  mov    (%rax),%esi
  mov    %esi,(%rdx)
  mov    %ecx,(%rax)
L1:
  add    $0x1,%r14d
  mov    %r11d,%r9d
  add    %r13d,%ebx
  add    -0x18(%rsp),%r12
  add    %r15,%rbp
  cmp    %r14d,-0x1c(%rsp)
  jne    L104
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L93:
  lea    -0x1(%rbx),%ecx
  lea    (%rdi,%r8,1),%rdx
  add    -0x10(%rsp),%r8
  add    %rdi,%rax
  sub    %r9d,%ecx
  shl    $0x2,%rcx
  sub    %rcx,%r8
  nopl   0x0(%rax)
L38:
  mov    (%rax),%ecx
  mov    -0x4(%rdx),%esi
  sub    $0x4,%rdx
  add    $0x4,%rax
  mov    %esi,-0x4(%rax)
  mov    %ecx,(%rdx)
  cmp    %r8,%rdx
  jne    L38
  jmp    L1
L63:
  mov    %r9d,%eax
  xor    %edx,%edx
  jmp    L70
L29:
  ret
```

assistant: ```c
void array_modify(int *inp, int n, int k) {
  int m, i, j, tmp;
  m = k / n;
  for (i = 1; i <= m; i++) {
    for (j = n * (i - 1); j < n * (i - 1) + n / 2; j++) {
      tmp = inp[j];
      inp[j] = inp[n * i - (j - n * (i - 1)) - 1];
      inp[n * i - (j - n * (i - 1)) - 1] = tmp;
    }
  }
}
```