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

```asm
<test_compressed_packet_2>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x288,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x278(%rsp)
  xor    %eax,%eax
  movabs $0x220180a429044bc0,%rax
  movabs $0x3f8789f00ec74904,%rdx
  mov    %rax,0x240(%rsp)
  mov    %rdx,0x248(%rsp)
  movabs $0x3f336244b71c8658,%rax
  movabs $0x1530817c1c13f319,%rdx
  mov    %rax,0x250(%rsp)
  mov    %rdx,0x258(%rsp)
  movabs $0x44a65489932e2684,%rax
  mov    %rax,0x260(%rsp)
  movl   $0x52a8d556,0x268(%rsp)
  movb   $0xc0,0x26c(%rsp)
  movl   $0xb,0x10(%rsp)
  movl   $0x1,0x14(%rsp)
  movl   $0x2,0x18(%rsp)
  movl   $0x2,0x1c(%rsp)
  movl   $0x2,0x30(%rsp)
  movl   $0x20,0x34(%rsp)
  movl   $0x20,0x38(%rsp)
  movl   $0x10,0x3c(%rsp)
  movl   $0x0,0x140(%rsp)
  movl   $0xffffffe8,0x144(%rsp)
  movl   $0x8,0x148(%rsp)
  movl   $0x2e,0x14c(%rsp)
  movl   $0x16,0x150(%rsp)
  movl   $0xffffffc0,0x154(%rsp)
  movl   $0xfffffffe,0x158(%rsp)
  movl   $0xfffffffc,0x15c(%rsp)
  movl   $0x2c,0x160(%rsp)
  movl   $0x32,0x164(%rsp)
  movl   $0xffffffb2,0x168(%rsp)
  movl   $0xfffffffc,0x16c(%rsp)
  movl   $0xfffffffa,0x170(%rsp)
  movl   $0x2,0x174(%rsp)
  movl   $0x1a,0x178(%rsp)
  movl   $0x28,0x17c(%rsp)
  movl   $0x0,0x180(%rsp)
  movl   $0xffffffe0,0x184(%rsp)
  movl   $0xffffffc0,0x188(%rsp)
  movl   $0xffffffe0,0x18c(%rsp)
  movl   $0x40,0x190(%rsp)
  movl   $0x20,0x194(%rsp)
  movl   $0xffffff60,0x198(%rsp)
  movl   $0x40,0x19c(%rsp)
  movl   $0x80,0x1a0(%rsp)
  movl   $0xffffffe0,0x1a4(%rsp)
  movl   $0x20,0x1a8(%rsp)
  movl   $0xffffffe0,0x1ac(%rsp)
  movl   $0xffffffa0,0x1b0(%rsp)
  movl   $0xa0,0x1b4(%rsp)
  movl   $0x0,0x1b8(%rsp)
  movl   $0x0,0x1bc(%rsp)
  movl   $0x40,0x1c0(%rsp)
  movl   $0xffffffc0,0x1c4(%rsp)
  movl   $0x0,0x1c8(%rsp)
  movl   $0xffffffe0,0x1cc(%rsp)
  movl   $0x60,0x1d0(%rsp)
  movl   $0x0,0x1d4(%rsp)
  movl   $0xffffffe0,0x1d8(%rsp)
  movl   $0x0,0x1dc(%rsp)
  movl   $0x40,0x1e0(%rsp)
  movl   $0xffffffc0,0x1e4(%rsp)
  movl   $0x60,0x1e8(%rsp)
  movl   $0xffffffa0,0x1ec(%rsp)
  movl   $0xffffffe0,0x1f0(%rsp)
  movl   $0x20,0x1f4(%rsp)
  movl   $0xffffffc0,0x1f8(%rsp)
  movl   $0x40,0x1fc(%rsp)
  movl   $0xfffffff0,0x200(%rsp)
  movl   $0xffffffd0,0x204(%rsp)
  movl   $0xfffffff0,0x208(%rsp)
  movl   $0x20,0x20c(%rsp)
  movl   $0x20,0x210(%rsp)
  movl   $0x0,0x214(%rsp)
  movl   $0xffffffe0,0x218(%rsp)
  movl   $0xffffffd0,0x21c(%rsp)
  movl   $0x50,0x220(%rsp)
  movl   $0xfffffff0,0x224(%rsp)
  movl   $0x30,0x228(%rsp)
  movl   $0xfffffff0,0x22c(%rsp)
  movl   $0xffffffe0,0x230(%rsp)
  movl   $0xfffffff0,0x234(%rsp)
  movl   $0x20,0x238(%rsp)
  movl   $0x10,0x23c(%rsp)
  mov    %rsp,%rbx
  lea    0x20(%rsp),%rbp
  lea    0x241(%rsp),%rdi
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  call   <compressed_parse_medians@plt>
  lea    0x40(%rsp),%r13
  lea    0x248(%rsp),%rdi
  mov    %r13,%rcx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  call   <compressed_parse_deltas@plt>
  mov    %eax,%r12d
  lea    0x246(%rsp),%rdi
  call   <compressed_parse_bit_length@plt>
  lea    0x30(%rsp),%rcx
  lea    0x10(%rsp),%rsi
  push   %rax
  push   %r12
  lea    0x150(%rsp),%r9
  mov    %r13,%r8
  mov    %rbp,%rdx
  mov    %rbx,%rdi
  call   <compressed_test_report@plt>
  mov    %rbx,%rsp
  mov    0x278(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x288,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L6:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void test_compressed_packet_2(void) {
  unsigned char packet[45] = {0xc0, 0x4b, 0x04, 0x29, 0xa4, 0x80, 0x01, 0x22, 0x04, 0x49, 0xc7, 0x0e, 0xf0, 0x89, 0x87, 0x3f, 0x58, 0x86, 0x1c, 0xb7, 0x44, 0x62, 0x33, 0x3f, 0x19, 0xf3, 0x13, 0x1c, 0x7c, 0x81, 0x30, 0x15, 0x84, 0x26, 0x2e, 0x93, 0x89, 0x54, 0xa6, 0x44, 0x56, 0xd5, 0xa8, 0x52, 0xc0};
  int i = 0;
  int medians[4];
  int expected_medians[4] = {11, 1, 2, 2};
  int quantizations[4];
  int expected_quantizations[4] = {2, 32, 32, 16};
  int deltas[16 * 4];
  int expected_deltas[16 * 4] = {0, -24, 8, 46, 22, -64, -2, -4, 44, 50, -78, -4, -6, 2, 26, 40, 0, -32, -64, -32, 64, 32, -160, 64, 128, -32, 32, -32, -96, 160, 0, 0, 64, -64, 0, -32, 96, 0, -32, 0, 64, -64, 96, -96, -32, 32, -64, 64, -16, -48, -16, 32, 32, 0, -32, -48, 80, -16, 48, -16, -32, -16, 32, 16};
  int bits_length = 0;
  int expected_bits_length = 0;
  compressed_parse_medians(&(packet[1]), quantizations, medians);
  bits_length = compressed_parse_deltas(&(packet[8]), medians, quantizations, deltas);
  expected_bits_length = compressed_parse_bit_length(&(packet[6]));
  compressed_test_report(medians, expected_medians, quantizations, expected_quantizations, deltas, expected_deltas, bits_length, expected_bits_length);
}
```