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

```asm
<grpHandle>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    $0x0,%eax
  call   <grpDump@plt>
  lea    D124(%rip),%rdi
  call   <parsingGetIntAttr@plt>
  test   %eax,%eax
  jns    L35
L6:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L35:
  mov    %eax,%ebx
  lea    D103(%rip),%rdi
  call   <parsingGetStringAttr0@plt>
  mov    %rax,%rbp
  lea    D55(%rip),%rdi
  call   <parsingGetStringAttr0@plt>
  mov    %rax,%r12
  test   %rbp,%rbp
  je     L140
  mov    %rbp,%rsi
  lea    D76(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D60(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L126
  mov    $0x1,%edx
  mov    %ebx,%esi
  mov    $0xffff,%edi
  call   <lmpgrp_OnOff@plt>
L140:
  test   %r12,%r12
  je     L124
  lea    D1(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L44
  lea    D98(%rip),%rdi
  call   <parsingGetIntAttr@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  js     L124
  mov    %eax,%edx
  mov    %r12,%rsi
  lea    D117(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    $0xffff,%edi
  call   <eZCB_RecallScene@plt>
  jmp    L124
L126:
  lea    D45(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L140
  mov    $0x0,%edx
  mov    %ebx,%esi
  mov    $0xffff,%edi
  call   <lmpgrp_OnOff@plt>
  jmp    L140
L44:
  lea    D37(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L65
L124:
  lea    D16(%rip),%rdi
  call   <parsingGetIntAttr@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  jns    L134
L48:
  lea    D110(%rip),%rdi
  call   <parsingGetIntAttr@plt>
  mov    %eax,%ebp
  lea    D94(%rip),%rdi
  call   <parsingGetIntAttr@plt>
  mov    %eax,%r12d
  mov    %ebp,%eax
  or     %r12d,%eax
  js     L6
  mov    %r12d,%edx
  mov    %ebp,%esi
  lea    D46(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x5,%r8d
  mov    %r12d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    $0xffff,%edi
  call   <lmpgrp_MoveToColour@plt>
  jmp    L6
L65:
  mov    %r12,%rsi
  lea    D81(%rip),%rdi
  call   <printf@plt>
  mov    %ebx,%esi
  mov    $0xffff,%edi
  call   <eZCB_RemoveAllScenes@plt>
  jmp    L124
L134:
  mov    %eax,%esi
  lea    D108(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebp,%eax
  shl    $0x8,%eax
  sub    %ebp,%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x25,%rdx
  sar    $0x1f,%eax
  sub    %eax,%edx
  mov    $0x5,%ecx
  mov    %ebx,%esi
  mov    $0xffff,%edi
  call   <lmpgrp_MoveToLevel@plt>
  jmp    L48
```

tool_calls: name: unpack_data
arguments: data_tag: D124
data_type: string
name: unpack_data
arguments: data_tag: D103
data_type: string
name: unpack_data
arguments: data_tag: D55
data_type: string
name: unpack_data
arguments: data_tag: D76
data_type: string
name: unpack_data
arguments: data_tag: D60
data_type: string
name: unpack_data
arguments: data_tag: D1
data_type: string
name: unpack_data
arguments: data_tag: D98
data_type: string
name: unpack_data
arguments: data_tag: D117
data_type: string
name: unpack_data
arguments: data_tag: D45
data_type: string
name: unpack_data
arguments: data_tag: D37
data_type: string
name: unpack_data
arguments: data_tag: D16
data_type: string
name: unpack_data
arguments: data_tag: D110
data_type: string
name: unpack_data
arguments: data_tag: D94
data_type: string
name: unpack_data
arguments: data_tag: D46
data_type: string
name: unpack_data
arguments: data_tag: D81
data_type: string
name: unpack_data
arguments: data_tag: D108
data_type: string

tool: D124: grpid

tool: D103: cmd

tool: D55: scn

tool: D76: Group cmd %s


tool: D60: on

tool: D1: recall

tool: D98: scnid

tool: D117: Group scn %s, %d


tool: D45: off

tool: D37: remall

tool: D16: lvl

tool: D110: xcr

tool: D94: ycr

tool: D46: Group color %d, %d


tool: D81: Group scn %s


tool: D108: Group level %d


assistant: ```c
void grpHandle(void) {
  grpDump();
  int gid = parsingGetIntAttr("grpid");
  if (gid >= 0) {
    char *cmd = parsingGetStringAttr0("cmd");
    char *scn = parsingGetStringAttr0("scn");
    if (cmd) {
      printf("Group cmd %s\n", cmd);
      if (strcmp(cmd, "on") == 0) {
        lmpgrp_OnOff(0xFFFF, gid, 1);
      } else if (strcmp(cmd, "off") == 0) {
        lmpgrp_OnOff(0xFFFF, gid, 0);
      }
    }
    if (scn) {
      if (strcmp(scn, "recall") == 0) {
        int sid = parsingGetIntAttr("scnid");
        if (sid >= 0) {
          printf("Group scn %s, %d\n", scn, sid);
          eZCB_RecallScene(0xFFFF, gid, sid);
        }
      } else if (strcmp(scn, "remall") == 0) {
        printf("Group scn %s\n", scn);
        eZCB_RemoveAllScenes(0xFFFF, gid);
      }
    }
    int lvl = parsingGetIntAttr("lvl");
    if (lvl >= 0) {
      printf("Group level %d\n", lvl);
      lvl = (lvl * 255) / 100;
      lmpgrp_MoveToLevel(0xFFFF, gid, lvl, 5);
    }
    int xcr = parsingGetIntAttr("xcr");
    int ycr = parsingGetIntAttr("ycr");
    if (xcr >= 0 && ycr >= 0) {
      printf("Group color %d, %d\n", xcr, ycr);
      lmpgrp_MoveToColour(0xFFFF, gid, xcr, ycr, 5);
    }
  }
}
```