user: Translate the below assembly code into C programming language:

```asm
<step>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    %r8d,-0x28(%rbp)
  mov    %r9d,%esi
  mov    0x10(%rbp),%ecx
  mov    0x18(%rbp),%edx
  mov    0x20(%rbp),%eax
  mov    %sil,-0x2c(%rbp)
  mov    %cl,-0x30(%rbp)
  mov    %dl,-0x34(%rbp)
  mov    %al,-0x38(%rbp)
  movl   $0x0,-0x4(%rbp)
  mov    -0x24(%rbp),%eax
  sub    -0x1c(%rbp),%eax
  test   %eax,%eax
  jns    L294
  mov    -0x28(%rbp),%eax
  sub    -0x20(%rbp),%eax
  jmp    L164
L294:
  mov    -0x24(%rbp),%eax
  sub    -0x1c(%rbp),%eax
L164:
  mov    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x34(%rbp)
  jne    L78
  cmpl   $0x7,-0x24(%rbp)
  je     L429
  cmpl   $0x0,-0x24(%rbp)
  jne    L427
L429:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x30(%rbp)
  je     L414
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x38(%rbp)
  jne    L427
L414:
  mov    $0xffffffff,%eax
  jmp    L497
L427:
  mov    -0x24(%rbp),%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L78
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x30(%rbp)
  je     L338
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x38(%rbp)
  jne    L135
L338:
  mov    -0x28(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jle    L547
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L127
  mov    -0x24(%rbp),%eax
  sub    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  sub    -0x4(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L127
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rax,%rdx
  movzbl -0x34(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    $0x1,%eax
  jmp    L497
L127:
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L224
  mov    -0x24(%rbp),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  sub    -0x4(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L224
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rax,%rdx
  movzbl -0x34(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    $0x1,%eax
  jmp    L497
L547:
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  sub    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L392
  mov    -0x24(%rbp),%eax
  sub    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  sub    -0x4(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L392
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  sub    $0x1,%rax
  add    %rax,%rdx
  movzbl -0x34(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    $0x1,%eax
  jmp    L497
L392:
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  sub    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L224
  mov    -0x24(%rbp),%eax
  sub    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%ecx
  mov    -0x4(%rbp),%eax
  add    %ecx,%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L224
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  sub    $0x1,%rax
  add    %rax,%rdx
  movzbl -0x34(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    $0x1,%eax
  jmp    L497
L135:
  movsbl -0x34(%rbp),%edi
  movsbl -0x30(%rbp),%r9d
  mov    -0x28(%rbp),%r8d
  mov    -0x24(%rbp),%ecx
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rax
  sub    $0x8,%rsp
  push   %rdi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <restricaodama@plt>
  add    $0x10,%rsp
  cmp    $0x2,%eax
  jne    L79
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rax,%rdx
  movzbl -0x34(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    $0x1,%eax
  jmp    L497
L79:
  mov    $0xffffffff,%eax
  jmp    L497
L224:
  nop
L78:
  mov    -0x24(%rbp),%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L52
  cmpl   $0x7,-0x24(%rbp)
  je     L541
  cmpl   $0x0,-0x24(%rbp)
  jne    L387
L541:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x30(%rbp)
  je     L125
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x38(%rbp)
  jne    L387
L125:
  mov    $0xffffffff,%eax
  jmp    L497
L387:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x2c(%rbp)
  jne    L530
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x2c(%rbp)
  jne    L530
  mov    $0xffffffff,%eax
  jmp    L497
L530:
  cmpb   $0x42,-0x2c(%rbp)
  jne    L476
  mov    -0x24(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jg     L322
L476:
  cmpb   $0x50,-0x2c(%rbp)
  jne    L54
  mov    -0x24(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jge    L54
L322:
  mov    $0xffffffff,%eax
  jmp    L497
L54:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x2c(%rbp)
  jne    L544
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x1c(%rbp)
  je     L382
L544:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x2c(%rbp)
  jne    L52
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x1c(%rbp)
  jne    L52
L382:
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x28(%rbp)
  je     L652
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x28(%rbp)
  jne    L303
L652:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L303
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rax,%rdx
  movzbl -0x2c(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    $0x1,%eax
  jmp    L497
L303:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x30(%rbp)
  jne    L52
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L581
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x28(%rbp)
  jne    L581
  cmpb   $0x42,-0x2c(%rbp)
  jne    L581
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rax,%rdx
  movzbl -0x2c(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    $0x1,%eax
  jmp    L497
L581:
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  sub    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L480
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x28(%rbp)
  jne    L480
  cmpb   $0x42,-0x2c(%rbp)
  jne    L480
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  sub    $0x1,%rax
  add    %rax,%rdx
  movzbl -0x2c(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    $0x1,%eax
  jmp    L497
L480:
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L87
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x28(%rbp)
  jne    L87
  cmpb   $0x50,-0x2c(%rbp)
  jne    L87
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rax,%rdx
  movzbl -0x2c(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    $0x1,%eax
  jmp    L497
L87:
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  sub    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L52
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x28(%rbp)
  jne    L52
  cmpb   $0x50,-0x2c(%rbp)
  jne    L52
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  sub    $0x1,%rax
  add    %rax,%rdx
  movzbl -0x2c(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  mov    $0x1,%eax
  jmp    L497
L52:
  mov    $0xffffffff,%eax
L497:
  leave
  ret
```

assistant: ```c
int step(char **matriz, int lin, int col, int linp, int colp, char jogador, char oposto, char dama, char odama) {
  int num = 0;
  num = (linp - lin < 0) ? (colp - col) : (linp - lin);
  if (matriz[lin][col] == dama) {
    if ((linp == 7 || linp == 0) && (matriz[linp][colp] == oposto || matriz[linp][colp] == odama))
      return -1;
    if ((linp + colp) % 2 == 0) {
      if (matriz[linp][colp] == oposto || matriz[linp][colp] == odama) {
        if (colp > col) {
          if (matriz[linp + 1][colp + 1] == '-' && matriz[linp - num][colp - num] == matriz[lin][col]) {
            matriz[linp + 1][colp + 1] = dama;
            matriz[lin][col] = '-';
            matriz[linp][colp] = '-';
            return 1;
          }
          if (matriz[linp - 1][colp + 1] == '-' && matriz[linp + num][colp - num] == matriz[lin][col]) {
            matriz[linp - 1][colp + 1] = dama;
            matriz[lin][col] = '-';
            matriz[linp][colp] = '-';
            return 1;
          }
        } else {
          if (matriz[linp - 1][colp - 1] == '-' && matriz[linp - num][colp - num] == matriz[lin][col]) {
            matriz[linp - 1][colp - 1] = dama;
            matriz[lin][col] = '-';
            matriz[linp][colp] = '-';
            return 1;
          }
          if (matriz[linp + 1][colp - 1] == '-' && matriz[linp - num][colp + num] == matriz[lin][col]) {
            matriz[linp + 1][colp - 1] = dama;
            matriz[lin][col] = '-';
            matriz[linp][colp] = '-';
            return 1;
          }
        }
      } else if (restricaodama(matriz, lin, col, linp, colp, oposto, dama) == 2) {
        matriz[linp][colp] = dama;
        matriz[lin][col] = '-';
        return 1;
      } else
        return -1;
    }
  }
  if ((linp + colp) % 2 == 0) {
    if ((linp == 7 || linp == 0) && (matriz[linp][colp] == oposto || matriz[linp][colp] == odama))
      return -1;
    if (matriz[lin][col] == jogador && matriz[linp][colp] == jogador)
      return -1;
    if ((jogador == 'B' && linp > lin) || (jogador == 'P' && linp < lin))
      return -1;
    if ((matriz[lin][col] == jogador && linp - 1 == lin) || (matriz[lin][col] == jogador && linp + 1 == lin)) {
      if (colp == col + 1 || colp == col - 1) {
        if (matriz[linp][colp] == '-') {
          matriz[linp][colp] = jogador;
          matriz[lin][col] = '-';
          return 1;
        }
      }
      if (matriz[linp][colp] == oposto) {
        if (matriz[linp - 1][colp + 1] == '-' && colp + 1 == col + 2 && jogador == 'B') {
          matriz[linp - 1][colp + 1] = jogador;
          matriz[lin][col] = '-';
          matriz[linp][colp] = '-';
          return 1;
        }
        if (matriz[linp - 1][colp - 1] == '-' && colp - 1 == col - 2 && jogador == 'B') {
          matriz[linp - 1][colp - 1] = jogador;
          matriz[lin][col] = '-';
          matriz[linp][colp] = '-';
          return 1;
        }
        if (matriz[linp + 1][colp + 1] == '-' && colp + 1 == col + 2 && jogador == 'P') {
          matriz[linp + 1][colp + 1] = jogador;
          matriz[lin][col] = '-';
          matriz[linp][colp] = '-';
          return 1;
        }
        if (matriz[linp + 1][colp - 1] == '-' && colp - 1 == col - 2 && jogador == 'P') {
          matriz[linp + 1][colp - 1] = jogador;
          matriz[lin][col] = '-';
          matriz[linp][colp] = '-';
          return 1;
        }
      }
    }
  }
  return -1;
}
```