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

```asm
<AnalyzeUDPString>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8,-0x38(%rbp)
  mov    %r9,-0x40(%rbp)
  mov    -0x20(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x30(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    %dl,(%rax)
  mov    0x18(%rbp),%rax
  movl   $0x0,(%rax)
  mov    0x18(%rbp),%rax
  mov    (%rax),%edx
  mov    0x10(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%rax
  movl   $0x0,(%rax)
  mov    0x20(%rbp),%rax
  movl   $0x5208,(%rax)
  movl   $0x3,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  mov    $0x7,%edx
  lea    D35(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L812
  mov    -0x18(%rbp),%rax
  mov    $0x7,%edx
  lea    D141(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L812
  mov    -0x18(%rbp),%rax
  mov    $0x7,%edx
  lea    D40(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L517
L812:
  movl   $0x7,-0xc(%rbp)
  mov    -0x20(%rbp),%rax
  movl   $0x5,(%rax)
  jmp    L883
L517:
  mov    -0x18(%rbp),%rax
  mov    $0x6,%edx
  lea    D83(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L378
  mov    -0x18(%rbp),%rax
  mov    $0x6,%edx
  lea    D51(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L378
  mov    -0x18(%rbp),%rax
  mov    $0x6,%edx
  lea    D47(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L287
L378:
  movl   $0x6,-0xc(%rbp)
  mov    -0x20(%rbp),%rax
  movl   $0x4,(%rax)
  jmp    L883
L287:
  mov    -0x18(%rbp),%rax
  mov    $0x3,%edx
  lea    D113(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L762
  mov    -0x18(%rbp),%rax
  mov    $0x3,%edx
  lea    D145(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L762
  mov    -0x18(%rbp),%rax
  mov    $0x3,%edx
  lea    D92(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L201
L762:
  mov    -0x20(%rbp),%rax
  movl   $0x1,(%rax)
  jmp    L883
L201:
  mov    -0x18(%rbp),%rax
  mov    $0x3,%edx
  lea    D67(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L748
  mov    -0x18(%rbp),%rax
  mov    $0x3,%edx
  lea    D39(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L748
  mov    -0x18(%rbp),%rax
  mov    $0x3,%edx
  lea    D125(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L170
L748:
  mov    -0x20(%rbp),%rax
  movl   $0x2,(%rax)
  jmp    L883
L170:
  mov    -0x18(%rbp),%rax
  mov    $0x4,%edx
  lea    D75(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L304
  mov    -0x18(%rbp),%rax
  mov    $0x4,%edx
  lea    D90(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L304
  mov    -0x18(%rbp),%rax
  mov    $0x4,%edx
  lea    D85(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L612
L304:
  mov    -0x20(%rbp),%rax
  movl   $0x3,(%rax)
  movl   $0x4,-0xc(%rbp)
  jmp    L193
L178:
  addl   $0x1,-0xc(%rbp)
L193:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L178
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L429
L483:
  addl   $0x1,-0xc(%rbp)
L429:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L91
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  jne    L483
L91:
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x70,%al
  je     L858
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x50,%al
  jne    L402
L858:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <atoi@plt>
  mov    0x20(%rbp),%rdx
  mov    %eax,(%rdx)
L402:
  mov    $0x0,%eax
  jmp    L773
L612:
  mov    $0x25,%eax
  jmp    L773
L883:
  jmp    L296
L426:
  addl   $0x1,-0xc(%rbp)
L296:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L426
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x4,%eax
  je     L206
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x5,%eax
  jne    L527
L206:
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L285
L292:
  addl   $0x1,-0xc(%rbp)
L285:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L808
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  jne    L292
L808:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L882
L527:
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L0
L94:
  addl   $0x1,-0xc(%rbp)
L0:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L567
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  jne    L94
L567:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L806
  mov    $0x25,%eax
  jmp    L773
L806:
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  mov    $0x50,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L101
L231:
  addl   $0x1,-0xc(%rbp)
L101:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L814
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  jne    L231
L814:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x30(%rbp),%rax
  mov    $0x14,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
L882:
  jmp    L707
L602:
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L784
L439:
  addl   $0x1,-0xc(%rbp)
L784:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L585
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  je     L585
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L439
L585:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x6c,%al
  je     L229
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x4c,%al
  jne    L461
L229:
  addl   $0x1,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x69,%al
  je     L365
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x49,%al
  jne    L405
L365:
  mov    0x18(%rbp),%rax
  movl   $0x1,(%rax)
  jmp    L580
L405:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x65,%al
  je     L871
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x45,%al
  jne    L525
L871:
  mov    0x18(%rbp),%rax
  movl   $0x2,(%rax)
  jmp    L580
L525:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x62,%al
  je     L117
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x42,%al
  jne    L662
L117:
  mov    0x18(%rbp),%rax
  movl   $0x3,(%rax)
  jmp    L580
L662:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  jne    L336
  mov    0x18(%rbp),%rax
  movl   $0x4,(%rax)
  jmp    L707
L336:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x32,%al
  jne    L861
  mov    0x18(%rbp),%rax
  movl   $0x5,(%rax)
  jmp    L707
L861:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x33,%al
  jne    L35
  mov    0x18(%rbp),%rax
  movl   $0x6,(%rax)
  jmp    L707
L35:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x34,%al
  jne    L51
  mov    0x18(%rbp),%rax
  movl   $0x7,(%rax)
  jmp    L707
L51:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x35,%al
  jne    L134
  mov    0x18(%rbp),%rax
  movl   $0x8,(%rax)
  jmp    L707
L134:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x36,%al
  jne    L736
  mov    0x18(%rbp),%rax
  movl   $0x9,(%rax)
  jmp    L707
L736:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x37,%al
  jne    L557
  mov    0x18(%rbp),%rax
  movl   $0xa,(%rax)
  jmp    L707
L557:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x38,%al
  jne    L607
  mov    0x18(%rbp),%rax
  movl   $0xb,(%rax)
  jmp    L707
L607:
  mov    $0x25,%eax
  jmp    L773
L580:
  jmp    L707
L461:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x62,%al
  je     L83
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x42,%al
  jne    L575
L83:
  addl   $0x1,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <atoi@plt>
  mov    0x10(%rbp),%rdx
  mov    %eax,(%rdx)
  mov    0x10(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0xff,%eax
  jle    L707
  mov    $0x25,%eax
  jmp    L773
L575:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x6d,%al
  je     L750
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x4d,%al
  jne    L100
L750:
  addl   $0x1,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <atoi@plt>
  mov    -0x40(%rbp),%rdx
  mov    %eax,(%rdx)
  jmp    L707
L100:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x70,%al
  je     L737
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x50,%al
  jne    L290
L737:
  addl   $0x1,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <atoi@plt>
  mov    0x20(%rbp),%rdx
  mov    %eax,(%rdx)
  jmp    L707
L290:
  mov    $0x25,%eax
  jmp    L773
L707:
  cmpl   $0x0,-0x8(%rbp)
  jne    L602
  mov    $0x0,%eax
L773:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D35
datatype: string
name: disassemble_data
arguments: label: D141
datatype: string
name: disassemble_data
arguments: label: D40
datatype: string
name: disassemble_data
arguments: label: D83
datatype: string
name: disassemble_data
arguments: label: D51
datatype: string
name: disassemble_data
arguments: label: D47
datatype: string
name: disassemble_data
arguments: label: D113
datatype: string
name: disassemble_data
arguments: label: D145
datatype: string
name: disassemble_data
arguments: label: D92
datatype: string
name: disassemble_data
arguments: label: D67
datatype: string
name: disassemble_data
arguments: label: D39
datatype: string
name: disassemble_data
arguments: label: D125
datatype: string
name: disassemble_data
arguments: label: D75
datatype: string
name: disassemble_data
arguments: label: D90
datatype: string
name: disassemble_data
arguments: label: D85
datatype: string

tool: D35: sndccfr

tool: D141: Sndccfr

tool: D40: SNDCCFR

tool: D83: sndccf

tool: D51: Sndccf

tool: D47: SNDCCF

tool: D113: snd

tool: D145: Snd

tool: D92: SND

tool: D67: lrn

tool: D39: Lrn

tool: D125: LRN

tool: D75: ping

tool: D90: Ping

tool: D85: PING

assistant: ```c
int AnalyzeUDPString(char *st, int *netcom, char *remote, char *command, char *ccf, int *netmask, int *bus, int *led, int *port) {
  int i, p, v;
  *netcom = 0;
  ccf[0] = remote[0] = command[0] = 0;
  *bus = *led = 0;
  *netmask = 0;
  *port = 21000;
  i = 3;
  if (!strncmp(st, "sndccfr", 7) || !strncmp(st, "Sndccfr", 7) || !strncmp(st, "SNDCCFR", 7)) {
    i = 7;
    *netcom = 5;
  } else if (!strncmp(st, "sndccf", 6) || !strncmp(st, "Sndccf", 6) || !strncmp(st, "SNDCCF", 6)) {
    i = 6;
    *netcom = 4;
  } else if (!strncmp(st, "snd", 3) || !strncmp(st, "Snd", 3) || !strncmp(st, "SND", 3))
    *netcom = 1;
  else if (!strncmp(st, "lrn", 3) || !strncmp(st, "Lrn", 3) || !strncmp(st, "LRN", 3))
    *netcom = 2;
  else if (!strncmp(st, "ping", 4) || !strncmp(st, "Ping", 4) || !strncmp(st, "PING", 4)) {
    *netcom = 3;
    i = 4;
    while (st[i] == ' ')
      i++;
    p = i;
    while (st[i] && st[i] != ',')
      i++;
    st[i++] = 0;
    if (st[p] == 'p' || st[p] == 'P')
      *port = atoi(st + p + 1);
    return (0);
  } else
    return 37;
  while (st[i] == ' ')
    i++;
  if (*netcom == 4 || *netcom == 5) {
    p = i;
    while (st[i] && st[i] != ',')
      i++;
    v = st[i];
    st[i++] = 0;
    strcpy(ccf, st + p);
  } else {
    p = i;
    while (st[i] && st[i] != ',')
      i++;
    if (!st[i])
      return 37;
    st[i++] = 0;
    strncpy(remote, st + p, 80);
    p = i;
    while (st[i] && st[i] != ',')
      i++;
    v = st[i];
    st[i++] = 0;
    strncpy(command, st + p, 20);
  }
  while (v) {
    p = i;
    while (st[i] && st[i] != ',' && st[i] != ' ')
      i++;
    v = st[i];
    st[i++] = 0;
    if (st[p] == 'l' || st[p] == 'L') {
      p++;
      if (st[p] == 'i' || st[p] == 'I')
        *led = 1;
      else if (st[p] == 'e' || st[p] == 'E')
        *led = 2;
      else if (st[p] == 'b' || st[p] == 'B')
        *led = 3;
      else if (st[p] == '1')
        *led = 4;
      else if (st[p] == '2')
        *led = 5;
      else if (st[p] == '3')
        *led = 6;
      else if (st[p] == '4')
        *led = 7;
      else if (st[p] == '5')
        *led = 8;
      else if (st[p] == '6')
        *led = 9;
      else if (st[p] == '7')
        *led = 10;
      else if (st[p] == '8')
        *led = 11;
      else
        return 37;
    } else if (st[p] == 'b' || st[p] == 'B') {
      p++;
      *bus = atoi(st + p);
      if (*bus > 255)
        return 37;
    } else if (st[p] == 'm' || st[p] == 'M') {
      p++;
      *netmask = atoi(st + p);
    } else if (st[p] == 'p' || st[p] == 'P') {
      p++;
      *port = atoi(st + p);
    } else
      return 37;
  }
  return (0);
}
```