user: Please show me the C implementation that matches the assembly code listed below:

```asm
<grpHandle>:
  endbr64
  push   %r13
  xor    %eax,%eax
  push   %r12
  push   %rbp
  call   <grpDump@plt>
  lea    D4(%rip),%rdi
  call   <parsingGetIntAttr@plt>
  test   %eax,%eax
  jns    L28
L27:
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  cs nopw 0x0(%rax,%rax,1)
L28:
  lea    D65(%rip),%rdi
  mov    %eax,%ebp
  call   <parsingGetStringAttr0@plt>
  lea    D154(%rip),%rdi
  mov    %rax,%r12
  call   <parsingGetStringAttr0@plt>
  mov    %rax,%r13
  test   %r12,%r12
  je     L101
  mov    %r12,%rsi
  lea    D58(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D71(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L120
  mov    $0x1,%edx
  mov    %ebp,%esi
  mov    $0xffff,%edi
  call   <lmpgrp_OnOff@plt>
L101:
  test   %r13,%r13
  je     L38
  lea    D126(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L53
  lea    D105(%rip),%rdi
  call   <parsingGetIntAttr@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  jns    L125
  nopl   0x0(%rax,%rax,1)
L38:
  lea    D113(%rip),%rdi
  call   <parsingGetIntAttr@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  js     L3
  mov    %eax,%esi
  lea    D75(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12d,%edx
  mov    $0x5,%ecx
  mov    %ebp,%esi
  shl    $0x8,%edx
  mov    $0xffff,%edi
  sub    %r12d,%edx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x25,%rdx
  call   <lmpgrp_MoveToLevel@plt>
L3:
  lea    D152(%rip),%rdi
  call   <parsingGetIntAttr@plt>
  lea    D34(%rip),%rdi
  mov    %eax,%r12d
  call   <parsingGetIntAttr@plt>
  mov    %eax,%r13d
  mov    %r12d,%eax
  or     %r13d,%eax
  js     L27
  mov    %r13d,%edx
  mov    %r12d,%esi
  lea    D55(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13d,%ecx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    $0x5,%r8d
  pop    %rbp
  mov    $0xffff,%edi
  pop    %r12
  pop    %r13
  jmp    1130 <lmpgrp_MoveToColour@plt>
  nopl   0x0(%rax,%rax,1)
L53:
  lea    D122(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L38
  mov    %r13,%rsi
  lea    D22(%rip),%rdi
  call   <printf@plt>
  mov    %ebp,%esi
  mov    $0xffff,%edi
  call   <eZCB_RemoveAllScenes@plt>
  jmp    L38
  nopl   0x0(%rax,%rax,1)
L120:
  lea    D69(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L101
  xor    %edx,%edx
  mov    %ebp,%esi
  mov    $0xffff,%edi
  call   <lmpgrp_OnOff@plt>
  jmp    L101
  nopl   0x0(%rax,%rax,1)
L125:
  mov    %eax,%edx
  mov    %r13,%rsi
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    $0xffff,%edi
  call   <eZCB_RecallScene@plt>
  jmp    L38
```

tool_calls: name: parse_data
arguments: label: D4
type_infered: string
name: parse_data
arguments: label: D65
type_infered: string
name: parse_data
arguments: label: D154
type_infered: string
name: parse_data
arguments: label: D58
type_infered: string
name: parse_data
arguments: label: D71
type_infered: string
name: parse_data
arguments: label: D126
type_infered: string
name: parse_data
arguments: label: D105
type_infered: string
name: parse_data
arguments: label: D113
type_infered: string
name: parse_data
arguments: label: D75
type_infered: string
name: parse_data
arguments: label: D152
type_infered: string
name: parse_data
arguments: label: D34
type_infered: string
name: parse_data
arguments: label: D55
type_infered: string
name: parse_data
arguments: label: D122
type_infered: string
name: parse_data
arguments: label: D22
type_infered: string
name: parse_data
arguments: label: D69
type_infered: string
name: parse_data
arguments: label: D117
type_infered: string

tool: D4: grpid

tool: D65: cmd

tool: D154: scn

tool: D58: Group cmd %s


tool: D71: on

tool: D126: recall

tool: D105: scnid

tool: D113: lvl

tool: D75: Group level %d


tool: D152: xcr

tool: D34: ycr

tool: D55: Group color %d, %d


tool: D122: remall

tool: D22: Group scn %s


tool: D69: off

tool: D117: Group scn %s, %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);
    }
  }
}
```