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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x100,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <acc_create@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L107
  mov    $0x0,%eax
  call   <abort@plt>
L107:
  movl   $0x0,-0x18(%rbp)
  jmp    L60
L72:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <acc_is_present@plt>
  cmp    $0x1,%eax
  je     L42
  mov    $0x0,%eax
  call   <abort@plt>
L42:
  addl   $0x1,-0x18(%rbp)
L60:
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L72
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <acc_delete@plt>
  movl   $0x0,-0x18(%rbp)
  jmp    L6
L71:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <acc_is_present@plt>
  test   %eax,%eax
  je     L111
  mov    $0x0,%eax
  call   <abort@plt>
L111:
  addl   $0x1,-0x18(%rbp)
L6:
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L71
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <acc_create@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L83
  mov    $0x0,%eax
  call   <abort@plt>
L83:
  movl   $0x0,-0x18(%rbp)
  jmp    L112
L110:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <acc_is_present@plt>
  cmp    $0x1,%eax
  je     L28
  mov    $0x0,%eax
  call   <abort@plt>
L28:
  addl   $0x1,-0x18(%rbp)
L112:
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L110
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <acc_delete@plt>
  movl   $0x0,-0x18(%rbp)
  jmp    L11
L80:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <acc_is_present@plt>
  test   %eax,%eax
  je     L21
  mov    $0x0,%eax
  call   <abort@plt>
L21:
  addl   $0x1,-0x18(%rbp)
L11:
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L80
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  leave
  ret
```

assistant: ```c
int main(int argc, char **argv) {
  const int N = 256;
  int i;
  unsigned char *h;
  void *d;
  h = (unsigned char *)malloc(N);
  d = acc_create(h, N);
  if (!d)
    abort();
  for (i = 0; i < N; i++) {
    if (acc_is_present(h + i, 1) != 1)
      abort();
  }
  acc_delete(h, N);
  for (i = 0; i < N; i++) {
    if (acc_is_present(h + i, 1) != 0)
      abort();
  }
  d = acc_create(h, N);
  if (!d)
    abort();
  for (i = 0; i < N; i++) {
    if (acc_is_present(h + i, 1) != 1)
      abort();
  }
  acc_delete(h, N);
  for (i = 0; i < N; i++) {
    if (acc_is_present(h + i, 1) != 0)
      abort();
  }
  free(h);
  return 0;
}
```