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

```asm
<SHA256_Update>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x60,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  jne    L253
  mov    $0x1,%eax
  jmp    L121
L253:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x68(%rbp),%rax
  shl    $0x3,%eax
  lea    (%rdx,%rax,1),%ebx
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%ebx
  jge    L243
  mov    -0x58(%rbp),%rax
  mov    0x10(%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x58(%rbp),%rax
  mov    %rdx,0x10(%rax)
L243:
  mov    -0x58(%rbp),%rax
  mov    0x10(%rax),%rax
  mov    %rax,%rdx
  mov    -0x68(%rbp),%rax
  shr    $0x1d,%rax
  add    %rdx,%rax
  mov    %rax,%rdx
  mov    -0x58(%rbp),%rax
  mov    %rdx,0x10(%rax)
  mov    -0x58(%rbp),%rax
  mov    %ebx,(%rax)
  mov    -0x58(%rbp),%rax
  mov    0x4(%rax),%eax
  test   %eax,%eax
  je     L342
  mov    -0x58(%rbp),%rax
  mov    0x8(%rax),%r12
  mov    -0x58(%rbp),%rax
  mov    0x4(%rax),%eax
  sar    $0x2,%eax
  cltq
  mov    %rax,-0x30(%rbp)
  mov    -0x58(%rbp),%rax
  mov    0x4(%rax),%eax
  cltq
  and    $0x3,%eax
  mov    %rax,-0x20(%rbp)
  mov    -0x58(%rbp),%rax
  mov    0x4(%rax),%eax
  movslq %eax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    D26(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jb     L20
  mov    -0x30(%rbp),%rax
  shl    $0x2,%rax
  add    %r12,%rax
  mov    (%rax),%ebx
  cmpq   $0x3,-0x20(%rbp)
  je     L455
  cmpq   $0x3,-0x20(%rbp)
  ja     L344
  cmpq   $0x2,-0x20(%rbp)
  je     L394
  cmpq   $0x2,-0x20(%rbp)
  ja     L344
  cmpq   $0x0,-0x20(%rbp)
  je     L327
  cmpq   $0x1,-0x20(%rbp)
  je     L50
  jmp    L344
L327:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%rax
  mov    %eax,%ebx
L50:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%rax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
L394:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%rax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
L455:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
L344:
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  shl    $0x2,%rax
  add    %r12,%rax
  mov    %ebx,(%rax)
  jmp    L334
L232:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x40(%rbp),%eax
  bswap  %eax
  mov    %eax,-0x40(%rbp)
  addq   $0x4,-0x38(%rbp)
  mov    -0x40(%rbp),%ebx
  mov    -0x30(%rbp),%rax
  shl    $0x2,%rax
  add    %r12,%rax
  mov    %ebx,(%rax)
  addq   $0x1,-0x30(%rbp)
L334:
  mov    D7(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x30(%rbp)
  jb     L232
  mov    -0x58(%rbp),%rax
  mov    $0x1,%edx
  mov    %r12,%rsi
  mov    %rax,%rdi
  call   <sha256_block_host_order@plt>
  mov    -0x58(%rbp),%rax
  mov    0x4(%rax),%eax
  movslq %eax,%rdx
  mov    D26(%rip),%rax
  mov    (%rax),%rcx
  mov    %rdx,%rax
  sub    %rcx,%rax
  add    %rax,-0x68(%rbp)
  mov    -0x58(%rbp),%rax
  movl   $0x0,0x4(%rax)
  jmp    L342
L20:
  mov    -0x58(%rbp),%rax
  mov    0x4(%rax),%eax
  mov    %eax,%edx
  mov    -0x68(%rbp),%rax
  add    %edx,%eax
  mov    %eax,%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,0x4(%rax)
  mov    -0x20(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  cmp    $0x3,%rax
  ja     L21
  mov    -0x30(%rbp),%rax
  shl    $0x2,%rax
  add    %r12,%rax
  mov    (%rax),%ebx
  cmpq   $0x2,-0x20(%rbp)
  je     L17
  cmpq   $0x2,-0x20(%rbp)
  ja     L140
  cmpq   $0x0,-0x20(%rbp)
  je     L15
  cmpq   $0x1,-0x20(%rbp)
  je     L492
  jmp    L140
L15:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%rax
  mov    %eax,%ebx
  subq   $0x1,-0x68(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  je     L26
L492:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%rax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
  subq   $0x1,-0x68(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  je     L425
L17:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%rax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
  jmp    L140
L26:
  nop
  jmp    L140
L425:
  nop
L140:
  mov    -0x30(%rbp),%rax
  shl    $0x2,%rax
  add    %r12,%rax
  mov    %ebx,(%rax)
  jmp    L65
L21:
  mov    -0x58(%rbp),%rax
  mov    0x4(%rax),%eax
  sar    $0x2,%eax
  cltq
  mov    %rax,-0x28(%rbp)
  mov    -0x58(%rbp),%rax
  mov    0x4(%rax),%eax
  cltq
  and    $0x3,%eax
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  je     L132
  mov    -0x30(%rbp),%rax
  shl    $0x2,%rax
  add    %r12,%rax
  mov    (%rax),%ebx
L132:
  cmpq   $0x3,-0x20(%rbp)
  je     L472
  cmpq   $0x3,-0x20(%rbp)
  ja     L186
  cmpq   $0x2,-0x20(%rbp)
  je     L211
  cmpq   $0x2,-0x20(%rbp)
  ja     L186
  cmpq   $0x0,-0x20(%rbp)
  je     L261
  cmpq   $0x1,-0x20(%rbp)
  je     L216
  jmp    L186
L261:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%rax
  mov    %eax,%ebx
L216:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%rax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
L211:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%rax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
L472:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
L186:
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  shl    $0x2,%rax
  add    %r12,%rax
  mov    %ebx,(%rax)
  jmp    L228
L30:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  bswap  %eax
  mov    %eax,-0x44(%rbp)
  addq   $0x4,-0x38(%rbp)
  mov    -0x44(%rbp),%ebx
  mov    -0x30(%rbp),%rax
  shl    $0x2,%rax
  add    %r12,%rax
  mov    %ebx,(%rax)
  addq   $0x1,-0x30(%rbp)
L228:
  mov    -0x30(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jb     L30
  cmpq   $0x0,-0x18(%rbp)
  je     L65
  mov    $0x0,%ebx
  mov    -0x18(%rbp),%rax
  add    %rax,-0x38(%rbp)
  cmpq   $0x3,-0x18(%rbp)
  je     L220
  cmpq   $0x3,-0x18(%rbp)
  ja     L16
  cmpq   $0x1,-0x18(%rbp)
  je     L354
  cmpq   $0x2,-0x18(%rbp)
  je     L191
  jmp    L16
L220:
  subq   $0x1,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%rax
  mov    %eax,%ebx
L191:
  subq   $0x1,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%rax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
L354:
  subq   $0x1,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%rax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
L16:
  mov    -0x30(%rbp),%rax
  shl    $0x2,%rax
  add    %r12,%rax
  mov    %ebx,(%rax)
L65:
  mov    $0x1,%eax
  jmp    L121
L342:
  mov    D26(%rip),%rax
  mov    (%rax),%rsi
  mov    -0x68(%rbp),%rax
  mov    $0x0,%edx
  div    %rsi
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  je     L474
  mov    -0x30(%rbp),%rdx
  mov    -0x38(%rbp),%rcx
  mov    -0x58(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sha256_block_data_order@plt>
  mov    D26(%rip),%rax
  mov    (%rax),%rax
  mov    -0x30(%rbp),%rdx
  imul   %rdx,%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  add    %rax,-0x38(%rbp)
  mov    -0x30(%rbp),%rax
  sub    %rax,-0x68(%rbp)
L474:
  cmpq   $0x0,-0x68(%rbp)
  je     L72
  mov    -0x58(%rbp),%rax
  mov    0x8(%rax),%r12
  mov    -0x68(%rbp),%rax
  mov    %eax,%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,0x4(%rax)
  mov    -0x68(%rbp),%rax
  shr    $0x2,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x68(%rbp),%rax
  and    $0x3,%eax
  mov    %rax,-0x18(%rbp)
  jmp    L146
L142:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x3c(%rbp),%eax
  bswap  %eax
  mov    %eax,-0x3c(%rbp)
  addq   $0x4,-0x38(%rbp)
  mov    -0x3c(%rbp),%ebx
  mov    %ebx,(%r12)
  subq   $0x1,-0x28(%rbp)
  add    $0x4,%r12
L146:
  cmpq   $0x0,-0x28(%rbp)
  jne    L142
  mov    $0x0,%ebx
  mov    -0x18(%rbp),%rax
  add    %rax,-0x38(%rbp)
  cmpq   $0x3,-0x18(%rbp)
  je     L427
  cmpq   $0x3,-0x18(%rbp)
  ja     L150
  cmpq   $0x1,-0x18(%rbp)
  je     L317
  cmpq   $0x2,-0x18(%rbp)
  je     L439
  jmp    L150
L427:
  subq   $0x1,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%rax
  mov    %eax,%ebx
L439:
  subq   $0x1,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%rax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
L317:
  subq   $0x1,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%rax
  mov    %eax,%edx
  mov    %ebx,%eax
  or     %edx,%eax
  mov    %eax,%ebx
L150:
  mov    %ebx,(%r12)
L72:
  mov    $0x1,%eax
L121:
  add    $0x60,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

assistant: ```c
int SHA256_Update(SHA256_CTX *c, const void *data_, size_t len) {
  const unsigned char *data = data_;
  register SHA_LONG *p;
  register SHA_LONG l;
  size_t sw, sc, ew, ec;
  if (len == 0)
    return 1;
  l = (c->Nl + (((SHA_LONG)len) << 3)) & 0xffffffffUL;
  if (l < c->Nl)
    c->Nh++;
  c->Nh += (len >> 29);
  c->Nl = l;
  if (c->num != 0) {
    p = c->data;
    sw = c->num >> 2;
    sc = c->num & 0x03;
    if ((c->num + len) >= SHA_CBLOCK) {
      l = p[sw];
      {
        switch (sc) {
        case 0:
          l = ((unsigned long)(*((data)++))) << 24;
        case 1:
          l |= ((unsigned long)(*((data)++))) << 16;
        case 2:
          l |= ((unsigned long)(*((data)++))) << 8;
        case 3:
          l |= ((unsigned long)(*((data)++)));
        }
      };
      p[sw++] = l;
      for (; sw < SHA_LBLOCK; sw++) {
        ({
          unsigned int r = *((const unsigned int *)(data));
          asm("bswapl %0" : "=r"(r) : "0"(r));
          (data) += 4;
          (l) = r;
        });
        p[sw] = l;
      }
      sha256_block_host_order(c, p, 1);
      len -= (SHA_CBLOCK - c->num);
      c->num = 0;
    } else {
      c->num += (unsigned int)len;
      if ((sc + len) < 4) {
        l = p[sw];
        {
          switch (sc) {
          case 0:
            l = ((unsigned long)(*((data)++))) << 24;
            if (--len == 0)
              break;
          case 1:
            l |= ((unsigned long)(*((data)++))) << 16;
            if (--len == 0)
              break;
          case 2:
            l |= ((unsigned long)(*((data)++))) << 8;
          }
        };
        p[sw] = l;
      } else {
        ew = (c->num >> 2);
        ec = (c->num & 0x03);
        if (sc)
          l = p[sw];
        {
          switch (sc) {
          case 0:
            l = ((unsigned long)(*((data)++))) << 24;
          case 1:
            l |= ((unsigned long)(*((data)++))) << 16;
          case 2:
            l |= ((unsigned long)(*((data)++))) << 8;
          case 3:
            l |= ((unsigned long)(*((data)++)));
          }
        };
        p[sw++] = l;
        for (; sw < ew; sw++) {
          ({
            unsigned int r = *((const unsigned int *)(data));
            asm("bswapl %0" : "=r"(r) : "0"(r));
            (data) += 4;
            (l) = r;
          });
          p[sw] = l;
        }
        if (ec) {
          {
            l = 0;
            (data) += ec;
            switch (ec) {
            case 3:
              l = ((unsigned long)(*(--(data)))) << 8;
            case 2:
              l |= ((unsigned long)(*(--(data)))) << 16;
            case 1:
              l |= ((unsigned long)(*(--(data)))) << 24;
            }
          };
          p[sw] = l;
        }
      }
      return 1;
    }
  }
  sw = len / SHA_CBLOCK;
  if (sw > 0) {
    {
      sha256_block_data_order(c, data, sw);
      sw *= SHA_CBLOCK;
      data += sw;
      len -= sw;
    }
  }
  if (len != 0) {
    p = c->data;
    c->num = len;
    ew = len >> 2;
    ec = len & 0x03;
    for (; ew; ew--, p++) {
      ({
        unsigned int r = *((const unsigned int *)(data));
        asm("bswapl %0" : "=r"(r) : "0"(r));
        (data) += 4;
        (l) = r;
      });
      *p = l;
    }
    {
      l = 0;
      (data) += ec;
      switch (ec) {
      case 3:
        l = ((unsigned long)(*(--(data)))) << 8;
      case 2:
        l |= ((unsigned long)(*(--(data)))) << 16;
      case 1:
        l |= ((unsigned long)(*(--(data)))) << 24;
      }
    };
    *p = l;
  }
  return 1;
}
```