user: Demonstrate the C code that generates the assembly output below:

```asm
<setAccountPassword>:
  endbr64
  push   %r14
  mov    %rsi,%r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  mov    $0x5b,%edi
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  mov    %r12,%rsi
  call   <mib_get@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L50
  lea    0x20(%rsp),%rbp
  mov    $0x5c,%edi
  mov    %rbp,%rsi
  call   <mib_get@plt>
  test   %eax,%eax
  je     L39
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L20
  mov    %r13,%rsi
  mov    $0x5c,%edi
  call   <mib_set@plt>
  test   %eax,%eax
  je     L23
L40:
  xor    %eax,%eax
  call   <writePasswdFile@plt>
  xor    %eax,%eax
  call   <write_etcPassword@plt>
  xor    %eax,%eax
L59:
  mov    0x48(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L8
  add    $0x58,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L50:
  mov    %r12,%rsi
  mov    $0x26,%edi
  call   <mib_get@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L76
  lea    0x20(%rsp),%rbp
  mov    $0x27,%edi
  mov    %rbp,%rsi
  call   <mib_get@plt>
  test   %eax,%eax
  je     L43
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L20
  mov    %r13,%rsi
  mov    $0x27,%edi
  call   <mib_set@plt>
  test   %eax,%eax
  jne    L40
  lea    D56(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L59
  xchg   %ax,%ax
L20:
  lea    D51(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L59
L76:
  lea    D35(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L59
L43:
  lea    D46(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L59
L39:
  lea    D22(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L59
L23:
  lea    D32(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L59
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D56
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D51
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D35
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D46
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D22
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D32
type_guessed: string

tool: D56: Set user password to MIB database failed.


tool: D51: old password is not correct!


tool: D35: username is not correct!


tool: D46: Get user password from MIB database failed.


tool: D22: Get super user password from MIB database error!


tool: D32: Set Super user password to MIB database failed.


assistant: ```c
int setAccountPassword(char *user, char *oldpasswd, char *newpasswd) {
  char usName[30];
  char oldMIBpass[30];
  int selnum = 0;
  mib_get(0 + 91, (void *)usName);
  if (!strcmp(user, usName)) {
    selnum = 1;
    goto check_oldpwd;
  }
  mib_get(0 + 38, (void *)usName);
  if (!strcmp(user, usName)) {
    selnum = 2;
    goto check_oldpwd;
  }
check_oldpwd:
  if (selnum == 0) {
    printf("username is not correct!\n");
    return -1;
  }
  if (selnum == 1) {
    if (!mib_get(0 + 92, (void *)oldMIBpass)) {
      printf("Get super user password from MIB database error!\n");
      return -1;
    }
  } else if (selnum == 2) {
    if (!mib_get(0 + 39, (void *)oldMIBpass)) {
      printf("Get user password from MIB database failed.\n");
      return -1;
    }
  }
  if (strcmp(oldpasswd, oldMIBpass) != 0) {
    printf("old password is not correct!\n");
    return -1;
  }
  if (selnum == 1) {
    if (!mib_set(0 + 92, (void *)newpasswd)) {
      printf("Set Super user password to MIB database failed.\n");
      return -1;
    }
  } else if (selnum == 2) {
    if (!mib_set(0 + 39, (void *)newpasswd)) {
      printf("Set user password to MIB database failed.\n");
      return -1;
    }
  }
  writePasswdFile();
  write_etcPassword();
  return 0;
}
```