user: 请将以下的汇编代码转换成C语言代码:

```asm
<W5100_Init>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0xde361600,-0xe(%rbp)
  movw   $0xf658,-0xa(%rbp)
  movl   $0xa02a8c0,-0x1a(%rbp)
  movl   $0xffffff,-0x16(%rbp)
  movl   $0x102a8c0,-0x12(%rbp)
  mov    $0x80,%esi
  mov    $0x0,%edi
  call   <SPI_Write@plt>
  movzbl -0x12(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x1,%edi
  call   <SPI_Write@plt>
  movzbl -0x11(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x2,%edi
  call   <SPI_Write@plt>
  movzbl -0x10(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x3,%edi
  call   <SPI_Write@plt>
  movzbl -0xf(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x4,%edi
  call   <SPI_Write@plt>
  movzbl -0xe(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x9,%edi
  call   <SPI_Write@plt>
  movzbl -0xd(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <SPI_Write@plt>
  movzbl -0xc(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0xb,%edi
  call   <SPI_Write@plt>
  movzbl -0xb(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0xc,%edi
  call   <SPI_Write@plt>
  movzbl -0xa(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0xd,%edi
  call   <SPI_Write@plt>
  movzbl -0x9(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0xe,%edi
  call   <SPI_Write@plt>
  movzbl -0x16(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x5,%edi
  call   <SPI_Write@plt>
  movzbl -0x15(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x6,%edi
  call   <SPI_Write@plt>
  movzbl -0x14(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x7,%edi
  call   <SPI_Write@plt>
  movzbl -0x13(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x8,%edi
  call   <SPI_Write@plt>
  movzbl -0x1a(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0xf,%edi
  call   <SPI_Write@plt>
  movzbl -0x19(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x10,%edi
  call   <SPI_Write@plt>
  movzbl -0x18(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x11,%edi
  call   <SPI_Write@plt>
  movzbl -0x17(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  mov    $0x12,%edi
  call   <SPI_Write@plt>
  mov    $0x5,%esi
  mov    $0x1a,%edi
  call   <SPI_Write@plt>
  mov    $0x5,%esi
  mov    $0x1b,%edi
  call   <SPI_Write@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L1
  call   <__stack_chk_fail@plt>
L1:
  leave
  ret
```

assistant: ```c
void W5100_Init(void) {
  unsigned char mac_addr[] = {0x00, 0x16, 0x36, 0xDE, 0x58, 0xF6};
  unsigned char ip_addr[] = {192, 168, 2, 10};
  unsigned char sub_mask[] = {255, 255, 255, 0};
  unsigned char gtw_addr[] = {192, 168, 2, 1};
  SPI_Write(0x0000, 0x80);
  SPI_Write(0x0001 + 0, gtw_addr[0]);
  SPI_Write(0x0001 + 1, gtw_addr[1]);
  SPI_Write(0x0001 + 2, gtw_addr[2]);
  SPI_Write(0x0001 + 3, gtw_addr[3]);
  SPI_Write(0x0009 + 0, mac_addr[0]);
  SPI_Write(0x0009 + 1, mac_addr[1]);
  SPI_Write(0x0009 + 2, mac_addr[2]);
  SPI_Write(0x0009 + 3, mac_addr[3]);
  SPI_Write(0x0009 + 4, mac_addr[4]);
  SPI_Write(0x0009 + 5, mac_addr[5]);
  SPI_Write(0x0005 + 0, sub_mask[0]);
  SPI_Write(0x0005 + 1, sub_mask[1]);
  SPI_Write(0x0005 + 2, sub_mask[2]);
  SPI_Write(0x0005 + 3, sub_mask[3]);
  SPI_Write(0x000F + 0, ip_addr[0]);
  SPI_Write(0x000F + 1, ip_addr[1]);
  SPI_Write(0x000F + 2, ip_addr[2]);
  SPI_Write(0x000F + 3, ip_addr[3]);
  SPI_Write(0x001A, 0x05);
  SPI_Write(0x001B, 0x05);
}
```