user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<send_rtp_packet>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x28,%rsp
  mov    %rsi,0x8(%rsp)
  lea    0x10(%rsp),%r15
  mov    %r9d,%ebp
  xor    %esi,%esi
  lea    0x14(%rdx),%r9d
  mov    %rdi,%r14
  mov    %edx,%r12d
  mov    %r15,%rdi
  mov    $0x2000,%edx
  mov    %r8d,%ebx
  mov    %ecx,%r13d
  mov    %fs:0x28,%rax
  mov    %rax,0x2018(%rsp)
  xor    %eax,%eax
  mov    %r9d,0x4(%rsp)
  call   <memset@plt>
  mov    0x2060(%rsp),%eax
  movzbl %r13b,%ecx
  mov    0x2088(%rsp),%edx
  mov    %ecx,0x1c(%rsp)
  mov    0x2068(%rsp),%ecx
  lea    0x60(%rsp),%rdi
  shl    $0x7,%eax
  mov    0x2070(%rsp),%esi
  movd   0x2080(%rsp),%xmm0
  movl   $0x80,0x10(%rsp)
  add    $0x1a,%eax
  movl   $0x0,0x40(%rsp)
  mov    %eax,0x14(%rsp)
  mov    %r13d,%eax
  sar    $0x8,%eax
  mov    %eax,0x18(%rsp)
  mov    %ebx,%eax
  shr    $0x18,%eax
  mov    %eax,0x20(%rsp)
  mov    %ebx,%eax
  sar    $0x10,%eax
  and    $0xff,%eax
  mov    %eax,0x24(%rsp)
  movzbl %bh,%eax
  and    $0xff,%ebx
  mov    %eax,0x28(%rsp)
  movabs $0xf900000013,%rax
  mov    %rax,0x30(%rsp)
  movabs $0x670000007e,%rax
  mov    %rax,0x38(%rsp)
  mov    %ebp,%eax
  sar    $0x10,%eax
  mov    %ebx,0x2c(%rsp)
  and    $0xff,%eax
  mov    %eax,0x44(%rsp)
  mov    %ebp,%eax
  and    $0xff,%ebp
  movzbl %ah,%eax
  mov    %ebp,0x4c(%rsp)
  mov    %eax,0x48(%rsp)
  mov    0x2078(%rsp),%eax
  or     $0x40,%eax
  test   %edx,%edx
  cmove  0x2078(%rsp),%eax
  mov    %r12d,%edx
  mov    %eax,0x50(%rsp)
  mov    0x2068(%rsp),%eax
  add    $0x7,%eax
  test   %ecx,%ecx
  cmovns 0x2068(%rsp),%eax
  sar    $0x3,%eax
  movd   %eax,%xmm1
  mov    0x2070(%rsp),%eax
  punpckldq %xmm1,%xmm0
  add    $0x7,%eax
  test   %esi,%esi
  cmovns 0x2070(%rsp),%eax
  mov    0x8(%rsp),%rsi
  movq   %xmm0,0x54(%rsp)
  sar    $0x3,%eax
  mov    %eax,0x5c(%rsp)
  call   <memcpy@plt>
  mov    0x4(%rsp),%edx
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <udp_write@plt>
  mov    0x2018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x2028,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L7:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void send_rtp_packet(struct UdpSocket *sock, uint8_t *Jpeg, int JpegLen, uint32_t m_SequenceNumber, uint32_t m_Timestamp, uint32_t m_offset, uint8_t marker_bit, int w, int h, uint8_t format_code, uint8_t quality_code, uint8_t has_dri_header) {
  uint8_t RtpBuf[2048];
  int RtpPacketSize = JpegLen + 12 + 8;
  memset(RtpBuf, 0x00, sizeof(RtpBuf));
  RtpBuf[0] = 0x80;
  RtpBuf[1] = 0x1a + (marker_bit << 7);
  RtpBuf[2] = m_SequenceNumber >> 8;
  RtpBuf[3] = m_SequenceNumber & 0x0FF;
  RtpBuf[4] = (m_Timestamp & 0xFF000000) >> 24;
  RtpBuf[5] = (m_Timestamp & 0x00FF0000) >> 16;
  RtpBuf[6] = (m_Timestamp & 0x0000FF00) >> 8;
  RtpBuf[7] = (m_Timestamp & 0x000000FF);
  RtpBuf[8] = 0x13;
  RtpBuf[9] = 0xf9;
  RtpBuf[10] = 0x7e;
  RtpBuf[11] = 0x67;
  RtpBuf[12] = 0x00;
  RtpBuf[13] = (m_offset & 0x00FF0000) >> 16;
  RtpBuf[14] = (m_offset & 0x0000FF00) >> 8;
  RtpBuf[15] = (m_offset & 0x000000FF);
  RtpBuf[16] = 0x00;
  RtpBuf[17] = 60;
  RtpBuf[16] = format_code;
  if (has_dri_header)
    RtpBuf[16] |= 0x40;
  RtpBuf[17] = quality_code;
  RtpBuf[18] = w / 8;
  RtpBuf[19] = h / 8;
  memcpy(&RtpBuf[20], Jpeg, JpegLen);
  udp_write(sock, RtpBuf, RtpPacketSize);
}
```