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

```asm
<TestSetMessageBit>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    D21(%rip),%rdi
  call   <puts@plt>
  lea    D46(%rip),%rdi
  call   <puts@plt>
  lea    D142(%rip),%rdi
  call   <puts@plt>
  lea    0x1f(%rsp),%r15
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0x1,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x1,%esi
  lea    D35(%rip),%r14
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x16(%rsp),%r13
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0xff,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0xff,%esi
  lea    D82(%rip),%r12
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xd(%rsp),%rbp
  mov    $0x9,%edx
  mov    %rbp,%rsi
  mov    $0xff,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0xff,%esi
  lea    D59(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%esi
  mov    $0xff,%edi
  call   <SetMessageBit@plt>
  cmp    $0xff,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    D147(%rip),%rdi
  call   <puts@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0x0,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0xff,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0xff,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %rbp,%rsi
  mov    $0xfe,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0xfe,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%esi
  mov    $0xff,%edi
  call   <SetMessageBit@plt>
  cmp    $0xfe,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    D147(%rip),%rdi
  call   <puts@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0x1,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x1,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0x0,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %rbp,%rsi
  mov    $0x1,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%esi
  mov    $0x0,%edi
  call   <SetMessageBit@plt>
  cmp    $0x1,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    D147(%rip),%rdi
  call   <puts@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0x0,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0x0,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %rbp,%rsi
  mov    $0x0,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <SetMessageBit@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    D147(%rip),%rdi
  call   <puts@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0x1,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x1,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0xdc,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0xdc,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %rbp,%rsi
  mov    $0xdd,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0xdd,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%esi
  mov    $0xdc,%edi
  call   <SetMessageBit@plt>
  cmp    $0xdd,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    D147(%rip),%rdi
  call   <puts@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0x0,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0xdc,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0xdc,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %rbp,%rsi
  mov    $0xdc,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0xdc,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%esi
  mov    $0xdc,%edi
  call   <SetMessageBit@plt>
  cmp    $0xdc,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    D147(%rip),%rdi
  call   <puts@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0x1,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x1,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0x66,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x66,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %rbp,%rsi
  mov    $0x67,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x67,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%esi
  mov    $0x66,%edi
  call   <SetMessageBit@plt>
  cmp    $0x67,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    D147(%rip),%rdi
  call   <puts@plt>
  mov    $0x9,%edx
  mov    %r15,%rsi
  mov    $0x0,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %r13,%rsi
  mov    $0x66,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x66,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edx
  mov    %rbp,%rsi
  mov    $0x66,%edi
  call   <BinString@plt>
  mov    %rax,%rdx
  mov    $0x66,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%esi
  mov    $0x66,%edi
  call   <SetMessageBit@plt>
  cmp    $0x66,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    D147(%rip),%rdi
  call   <puts@plt>
  lea    D142(%rip),%rdi
  call   <puts@plt>
  lea    D65(%rip),%rdi
  call   <puts@plt>
  lea    D115(%rip),%rdi
  call   <puts@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D21
type: string
name: extract_symbolic_data
arguments: label: D46
type: string
name: extract_symbolic_data
arguments: label: D142
type: string
name: extract_symbolic_data
arguments: label: D35
type: string
name: extract_symbolic_data
arguments: label: D82
type: string
name: extract_symbolic_data
arguments: label: D59
type: string
name: extract_symbolic_data
arguments: label: D147
type: string
name: extract_symbolic_data
arguments: label: D65
type: string
name: extract_symbolic_data
arguments: label: D115
type: string

tool: D21: 
----------------------------------------------------------------------------

tool: D46:   Test GetSetMessageBit()

tool: D142: ----------------------------------------------------------------------------

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

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

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

tool: D147: [OK]

tool: D65:   Done.

tool: D115: ----------------------------------------------------------------------------


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");
}
```