short pede_maxusers(maxusers)
char *maxusers;
{
  char Maxusers[128];
  short ret;
  ret = 0;
  while (1) {
    printf("\n\nMaximo de Usuarios (Maximo 3 digitos):\n");
    gets(Maxusers);
    eliminabr(Maxusers);
    if (maxusers_Ok(Maxusers)) {
      strcpy(maxusers, Maxusers);
      ret = 1;
      break;
    }
  }
  return ret;
}


x86 assembly (clang, -O0):
<pede_maxusers>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
movw   $0x0,-0x92(%rbp)
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
mov    $0x0,%al
call   1050 <gets@plt>
lea    -0x90(%rbp),%rdi
mov    $0x0,%al
call   1070 <eliminabr@plt>
lea    -0x90(%rbp),%rdi
mov    $0x0,%al
call   1060 <maxusers_Ok@plt>
cmp    $0x0,%eax
je     11c7 <pede_maxusers+0x77>
mov    -0x8(%rbp),%rdi
lea    -0x90(%rbp),%rsi
call   1030 <strcpy@plt>
movw   $0x1,-0x92(%rbp)
jmp    11cc <pede_maxusers+0x7c>
jmp    1168 <pede_maxusers+0x18>
movswl -0x92(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pede_maxusers>:
push   %r15
push   %r14
push   %rbx
sub    $0x80,%rsp
mov    %rdi,%r14
lea    0xe9a(%rip),%r15
mov    %rsp,%rbx
nopl   0x0(%rax)
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <gets@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <eliminabr@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <maxusers_Ok@plt>
test   %eax,%eax
je     1170 <pede_maxusers+0x20>
mov    %rsp,%rsi
mov    %r14,%rdi
call   1030 <strcpy@plt>
mov    $0x1,%ax
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [42 x i8] c"\0A\0AMaximo de Usuarios (Maximo 3 digitos):\0A\00"
define signext i16 @pede_maxusers(i8* %0) {
%2 = alloca i8*
%3 = alloca [128 x i8]
%4 = alloca i16
store i8* %0, i8** %2
store i16 0, i16* %4
br label %5
5: ; preds = %1, %18
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @gets to i32 (i8*, ...)*)(i8* %7)
%9 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @eliminabr to i32 (i8*, ...)*)(i8* %9)
%11 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @maxusers_Ok to i32 (i8*, ...)*)(i8* %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %5
%15 = load i8*, i8** %2
%16 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%17 = call i8* @strcpy(i8* %15, i8* %16)
store i16 1, i16* %4
br label %19
18: ; preds = %5
br label %5
19: ; preds = %14
%20 = load i16, i16* %4
ret i16 %20
}

LLVM IR (-O2):
@str = [41 x i8] c"\0A\0AMaximo de Usuarios (Maximo 3 digitos):\00"
define signext i16 @pede_maxusers(i8* %0) {
%2 = alloca [128 x i8]
%3 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
br label %4
4: ; preds = %4, %1
%5 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @gets to i32 (i8*, ...)*)(i8* %3)
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @eliminabr to i32 (i8*, ...)*)(i8* %3)
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @maxusers_Ok to i32 (i8*, ...)*)(i8* %3)
%9 = icmp eq i32 %8, 0
br i1 %9, label %4, label %10
10: ; preds = %4
%11 = call i8* @strcpy(i8* dereferenceable(1) %0, i8* %3)
ret i16 1
}