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

```asm
<TestSetMessageBit>:
  endbr64
  push   %r15
  lea    D57(%rip),%rdi
  push   %r14
  lea    D23(%rip),%r14
  push   %r13
  push   %r12
  lea    D65(%rip),%r12
  push   %rbp
  lea    D27(%rip),%rbp
  push   %rbx
  lea    D99(%rip),%rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x26(%rsp),%r15
  lea    0x1d(%rsp),%r13
  call   <puts@plt>
  lea    D10(%rip),%rdi
  call   <puts@plt>
  lea    D67(%rip),%r9
  mov    %r9,%rdi
  call   <puts@plt>
  lea    0x2f(%rsp),%r8
  mov    $0x9,%edx
  mov    $0x1,%edi
  mov    %r8,%rsi
  mov    %r8,0x8(%rsp)
  call   <BinString@plt>
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0xff,%edi
  call   <BinString@plt>
  mov    $0xff,%esi
  mov    %r14,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0xff,%edi
  call   <BinString@plt>
  mov    $0xff,%esi
  mov    %r12,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x1,%esi
  mov    $0xff,%edi
  call   <SetMessageBit@plt>
  xor    %edi,%edi
  cmp    $0xff,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  xor    %edi,%edi
  mov    $0x9,%edx
  call   <BinString@plt>
  xor    %esi,%esi
  mov    %rbx,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0xff,%edi
  call   <BinString@plt>
  mov    $0xff,%esi
  mov    %r14,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0xfe,%edi
  call   <BinString@plt>
  mov    $0xfe,%esi
  mov    %r12,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  mov    $0xff,%edi
  call   <SetMessageBit@plt>
  xor    %edi,%edi
  cmp    $0xfe,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  mov    $0x9,%edx
  mov    $0x1,%edi
  call   <BinString@plt>
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  xor    %edi,%edi
  mov    $0x9,%edx
  mov    %r15,%rsi
  call   <BinString@plt>
  xor    %esi,%esi
  mov    %r14,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0x1,%edi
  call   <BinString@plt>
  mov    $0x1,%esi
  mov    %r12,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x1,%esi
  xor    %edi,%edi
  call   <SetMessageBit@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  xor    %edi,%edi
  mov    $0x9,%edx
  call   <BinString@plt>
  xor    %esi,%esi
  mov    %rbx,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  xor    %edi,%edi
  mov    $0x9,%edx
  mov    %r15,%rsi
  call   <BinString@plt>
  xor    %esi,%esi
  mov    %r14,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  xor    %edi,%edi
  mov    $0x9,%edx
  mov    %r13,%rsi
  call   <BinString@plt>
  xor    %esi,%esi
  mov    %r12,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  xor    %edi,%edi
  call   <SetMessageBit@plt>
  xor    %edi,%edi
  test   %eax,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  mov    $0x9,%edx
  mov    $0x1,%edi
  call   <BinString@plt>
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0xdc,%edi
  call   <BinString@plt>
  mov    $0xdc,%esi
  mov    %r14,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0xdd,%edi
  call   <BinString@plt>
  mov    $0xdd,%esi
  mov    %r12,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x1,%esi
  mov    $0xdc,%edi
  call   <SetMessageBit@plt>
  xor    %edi,%edi
  cmp    $0xdd,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  xor    %edi,%edi
  mov    $0x9,%edx
  call   <BinString@plt>
  xor    %esi,%esi
  mov    %rbx,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0xdc,%edi
  call   <BinString@plt>
  mov    $0xdc,%esi
  mov    %r14,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0xdc,%edi
  call   <BinString@plt>
  mov    $0xdc,%esi
  mov    %r12,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  mov    $0xdc,%edi
  call   <SetMessageBit@plt>
  xor    %edi,%edi
  cmp    $0xdc,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  mov    $0x9,%edx
  mov    $0x1,%edi
  call   <BinString@plt>
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0x66,%edi
  call   <BinString@plt>
  mov    $0x66,%esi
  mov    %r14,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0x67,%edi
  call   <BinString@plt>
  mov    $0x67,%esi
  mov    %r12,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x1,%esi
  mov    $0x66,%edi
  call   <SetMessageBit@plt>
  xor    %edi,%edi
  cmp    $0x67,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  xor    %edi,%edi
  mov    $0x9,%edx
  call   <BinString@plt>
  xor    %esi,%esi
  mov    %rbx,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0x66,%edi
  call   <BinString@plt>
  mov    $0x66,%esi
  mov    %r14,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0x66,%edi
  call   <BinString@plt>
  mov    $0x66,%esi
  mov    %r12,%rdi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  mov    $0x66,%edi
  call   <SetMessageBit@plt>
  xor    %edi,%edi
  cmp    $0x66,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  lea    D67(%rip),%r9
  mov    %r9,%rdi
  call   <puts@plt>
  lea    D32(%rip),%rdi
  call   <puts@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x48,%rsp
  lea    D68(%rip),%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10a0 <puts@plt>
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D57
type_guessed: string
name: unpack_data
arguments: data_tag: D23
type_guessed: string
name: unpack_data
arguments: data_tag: D65
type_guessed: string
name: unpack_data
arguments: data_tag: D27
type_guessed: string
name: unpack_data
arguments: data_tag: D99
type_guessed: string
name: unpack_data
arguments: data_tag: D10
type_guessed: string
name: unpack_data
arguments: data_tag: D67
type_guessed: string
name: unpack_data
arguments: data_tag: D32
type_guessed: string
name: unpack_data
arguments: data_tag: D68
type_guessed: string

tool: D57: 
----------------------------------------------------------------------------

tool: D23: in pix (0x%02x)"%s": 

tool: D65: (0x%02x)"%s": 

tool: D27: [OK]

tool: D99: Set msg (0x%02x)"%s" 

tool: D10:   Test GetSetMessageBit()

tool: D67: ----------------------------------------------------------------------------

tool: D32:   Done.

tool: D68: ----------------------------------------------------------------------------


assistant: ```c
void TestSetMessageBit() {
  printf("\n----------------------------------------------------------------------------\n");
  printf("  Test GetSetMessageBit()\n");
  printf("----------------------------------------------------------------------------\n");
  {
    char resBuf[9], pixBuf[9], msgBuf[9];
    printf("Set msg (0x%02x)\"%s\" ", 0x01, BinString(0x01, msgBuf, 9));
    printf("in pix (0x%02x)\"%s\": ", 0xff, BinString(0xff, pixBuf, 9));
    printf("(0x%02x)\"%s\": ", 0xff, BinString(0xff, resBuf, 9));
    assert(SetMessageBit(0xff, 0x01) == 0xff);
    printf("[OK]\n");
  };
  {
    char resBuf[9], pixBuf[9], msgBuf[9];
    printf("Set msg (0x%02x)\"%s\" ", 0x00, BinString(0x00, msgBuf, 9));
    printf("in pix (0x%02x)\"%s\": ", 0xff, BinString(0xff, pixBuf, 9));
    printf("(0x%02x)\"%s\": ", 0xfe, BinString(0xfe, resBuf, 9));
    assert(SetMessageBit(0xff, 0x00) == 0xfe);
    printf("[OK]\n");
  };
  {
    char resBuf[9], pixBuf[9], msgBuf[9];
    printf("Set msg (0x%02x)\"%s\" ", 0x01, BinString(0x01, msgBuf, 9));
    printf("in pix (0x%02x)\"%s\": ", 0x00, BinString(0x00, pixBuf, 9));
    printf("(0x%02x)\"%s\": ", 0x01, BinString(0x01, resBuf, 9));
    assert(SetMessageBit(0x00, 0x01) == 0x01);
    printf("[OK]\n");
  };
  {
    char resBuf[9], pixBuf[9], msgBuf[9];
    printf("Set msg (0x%02x)\"%s\" ", 0x00, BinString(0x00, msgBuf, 9));
    printf("in pix (0x%02x)\"%s\": ", 0x00, BinString(0x00, pixBuf, 9));
    printf("(0x%02x)\"%s\": ", 0x00, BinString(0x00, resBuf, 9));
    assert(SetMessageBit(0x00, 0x00) == 0x00);
    printf("[OK]\n");
  };
  {
    char resBuf[9], pixBuf[9], msgBuf[9];
    printf("Set msg (0x%02x)\"%s\" ", 0x01, BinString(0x01, msgBuf, 9));
    printf("in pix (0x%02x)\"%s\": ", 0xdc, BinString(0xdc, pixBuf, 9));
    printf("(0x%02x)\"%s\": ", 0xdd, BinString(0xdd, resBuf, 9));
    assert(SetMessageBit(0xdc, 0x01) == 0xdd);
    printf("[OK]\n");
  };
  {
    char resBuf[9], pixBuf[9], msgBuf[9];
    printf("Set msg (0x%02x)\"%s\" ", 0x00, BinString(0x00, msgBuf, 9));
    printf("in pix (0x%02x)\"%s\": ", 0xdc, BinString(0xdc, pixBuf, 9));
    printf("(0x%02x)\"%s\": ", 0xdc, BinString(0xdc, resBuf, 9));
    assert(SetMessageBit(0xdc, 0x00) == 0xdc);
    printf("[OK]\n");
  };
  {
    char resBuf[9], pixBuf[9], msgBuf[9];
    printf("Set msg (0x%02x)\"%s\" ", 0x01, BinString(0x01, msgBuf, 9));
    printf("in pix (0x%02x)\"%s\": ", 0x66, BinString(0x66, pixBuf, 9));
    printf("(0x%02x)\"%s\": ", 0x67, BinString(0x67, resBuf, 9));
    assert(SetMessageBit(0x66, 0x01) == 0x67);
    printf("[OK]\n");
  };
  {
    char resBuf[9], pixBuf[9], msgBuf[9];
    printf("Set msg (0x%02x)\"%s\" ", 0x00, BinString(0x00, msgBuf, 9));
    printf("in pix (0x%02x)\"%s\": ", 0x66, BinString(0x66, pixBuf, 9));
    printf("(0x%02x)\"%s\": ", 0x66, BinString(0x66, resBuf, 9));
    assert(SetMessageBit(0x66, 0x00) == 0x66);
    printf("[OK]\n");
  };
  printf("----------------------------------------------------------------------------\n");
  printf("  Done.\n");
  printf("----------------------------------------------------------------------------\n\n");
}
```