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

```asm
<trnspt>:
  endbr64
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    $0x1,%edi
  call   <ivector@plt>
  mov    0x4(%rbp),%ecx
  mov    %rax,%rdi
  mov    0x8(%rbp),%eax
  sub    %ecx,%eax
  add    %r12d,%eax
  cltd
  idiv   %r12d
  mov    0x14(%rbp),%eax
  add    %r12d,%eax
  sub    0x10(%rbp),%eax
  mov    %edx,%r9d
  cltd
  idiv   %r12d
  mov    0xc(%rbp),%eax
  add    %r12d,%eax
  sub    0x18(%rbp),%eax
  mov    %edx,%r11d
  cltd
  idiv   %r12d
  mov    %edx,%r8d
  test   %r9d,%r9d
  js     L141
  lea    -0x1(%rcx),%eax
  lea    0x2(%r9),%esi
  mov    $0x2,%ecx
  cltd
  mov    %rsi,%r10
  idiv   %r12d
  add    $0x1,%edx
  movslq %edx,%rdx
  mov    (%rbx,%rdx,4),%eax
  mov    %eax,0x4(%rdi)
  test   %r9d,%r9d
  jle    L44
  nopl   (%rax)
L11:
  mov    0x4(%rbp),%eax
  add    %ecx,%eax
  sub    $0x2,%eax
  cltd
  idiv   %r12d
  add    $0x1,%edx
  movslq %edx,%rdx
  mov    (%rbx,%rdx,4),%eax
  mov    %eax,(%rdi,%rcx,4)
  add    $0x1,%rcx
  cmp    %rcx,%rsi
  jne    L11
L44:
  test   %r11d,%r11d
  js     L129
  movslq %r10d,%rax
  lea    0x2(%r11),%r9d
  mov    $0x1,%ecx
  lea    (%rdi,%rax,4),%rsi
  cs nopw 0x0(%rax,%rax,1)
L37:
  mov    0x10(%rbp),%eax
  add    $0x4,%rsi
  add    %ecx,%eax
  add    $0x1,%ecx
  sub    $0x2,%eax
  cltd
  idiv   %r12d
  add    $0x1,%edx
  movslq %edx,%rdx
  mov    (%rbx,%rdx,4),%eax
  mov    %eax,-0x4(%rsi)
  cmp    %ecx,%r9d
  jne    L37
  lea    0x1(%r10,%r11,1),%r10d
L129:
  test   %r8d,%r8d
  js     L99
  movslq %r10d,%r10
  add    $0x2,%r8d
  mov    $0x1,%ecx
  lea    (%rdi,%r10,4),%rsi
  xchg   %ax,%ax
L59:
  mov    0x18(%rbp),%eax
  add    $0x4,%rsi
  add    %ecx,%eax
  add    $0x1,%ecx
  sub    $0x2,%eax
  cltd
  idiv   %r12d
  add    $0x1,%edx
  movslq %edx,%rdx
  mov    (%rbx,%rdx,4),%eax
  mov    %eax,-0x4(%rsi)
  cmp    %r8d,%ecx
  jne    L59
L99:
  test   %r12d,%r12d
  jle    L31
  mov    %rbx,%rax
  sub    %rdi,%rax
  sub    $0x4,%rax
  cmp    $0x8,%rax
  jbe    L140
  lea    -0x1(%r12),%eax
  cmp    $0x2,%eax
  jbe    L140
  mov    %r12d,%eax
  shr    $0x2,%eax
  lea    -0x1(%rax),%edx
  mov    $0x4,%eax
  shl    $0x4,%rdx
  add    $0x14,%rdx
  nopl   (%rax)
L146:
  movdqu (%rdi,%rax,1),%xmm0
  movups %xmm0,(%rbx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L146
  mov    %r12d,%eax
  and    $0xfffffffc,%eax
  lea    0x1(%rax),%edx
  cmp    %r12d,%eax
  je     L31
  movslq %edx,%rdx
  mov    (%rdi,%rdx,4),%esi
  lea    0x0(,%rdx,4),%rcx
  mov    %esi,(%rbx,%rdx,4)
  lea    0x2(%rax),%edx
  cmp    %edx,%r12d
  jl     L31
  mov    0x4(%rdi,%rcx,1),%edx
  add    $0x3,%eax
  mov    %edx,0x4(%rbx,%rcx,1)
  cmp    %eax,%r12d
  jl     L31
  mov    0x8(%rdi,%rcx,1),%eax
  mov    %eax,0x8(%rbx,%rcx,1)
L31:
  pop    %rbx
  mov    %r12d,%edx
  pop    %rbp
  mov    $0x1,%esi
  pop    %r12
  jmp    1070 <free_ivector@plt>
  nopw   0x0(%rax,%rax,1)
L140:
  lea    0x1(%r12),%ecx
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L158:
  mov    (%rdi,%rax,4),%edx
  mov    %edx,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L158
  jmp    L31
  nopl   0x0(%rax)
L141:
  mov    $0x1,%r10d
  jmp    L44
```

assistant: ```c
void trnspt(int iorder[], int ncity, int n[]) {
  int m1, m2, m3, nn, j, jj, *jorder;
  jorder = ivector(1, ncity);
  m1 = 1 + ((n[2] - n[1] + ncity) % ncity);
  m2 = 1 + ((n[5] - n[4] + ncity) % ncity);
  m3 = 1 + ((n[3] - n[6] + ncity) % ncity);
  nn = 1;
  for (j = 1; j <= m1; j++) {
    jj = 1 + ((j + n[1] - 2) % ncity);
    jorder[nn++] = iorder[jj];
  }
  for (j = 1; j <= m2; j++) {
    jj = 1 + ((j + n[4] - 2) % ncity);
    jorder[nn++] = iorder[jj];
  }
  for (j = 1; j <= m3; j++) {
    jj = 1 + ((j + n[6] - 2) % ncity);
    jorder[nn++] = iorder[jj];
  }
  for (j = 1; j <= ncity; j++)
    iorder[j] = jorder[j];
  free_ivector(jorder, 1, ncity);
}
```