int parsetranspose(s, word, gottranspose, transpose)
char **s;
char *word;
int *gottranspose;
int *transpose;
{
  if (strcasecmp(word, "transpose") != 0)
    return 0;
  skipspace(s);
  if (**s != '=') {
    event_error("transpose must be followed by '='");
  } else {
    *s = *s + 1;
    skipspace(s);
    *transpose = readsnump(s);
    *gottranspose = 1;
  };
  return 1;
}


x86 assembly (clang, -O0):
<parsetranspose>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe9d(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
je     117d <parsetranspose+0x3d>
movl   $0x0,-0x4(%rbp)
jmp    11ef <parsetranspose+0xaf>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <skipspace@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     11ae <parsetranspose+0x6e>
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1040 <event_error@plt>
jmp    11e8 <parsetranspose+0xa8>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <skipspace@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1050 <readsnump@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parsetranspose>:
push   %r15
push   %r14
push   %rbx
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rax
mov    %rdi,%rbx
lea    0xea8(%rip),%rsi
mov    %rax,%rdi
call   1030 <strcasecmp@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
jne    11b4 <parsetranspose+0x74>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <skipspace@plt>
mov    (%rbx),%rax
cmpb   $0x3d,(%rax)
jne    11a1 <parsetranspose+0x61>
add    $0x1,%rax
mov    %rax,(%rbx)
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <skipspace@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <readsnump@plt>
mov    %eax,(%r14)
movl   $0x1,(%r15)
jmp    11af <parsetranspose+0x6f>
lea    0xe62(%rip),%rdi
xor    %eax,%eax
call   1040 <event_error@plt>
mov    $0x1,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [10 x i8] c"transpose\00"
@.str.1 = [34 x i8] c"transpose must be followed by '='\00"
define i32 @parsetranspose(i8** %0, i8* %1, i32* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i32*
store i8** %0, i8*** %6
store i8* %1, i8** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
%10 = load i8*, i8** %7
%11 = call i32 @strcasecmp(i8* %10, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %4
store i32 0, i32* %5
br label %36
14: ; preds = %4
%15 = load i8**, i8*** %6
%16 = call i32 (i8**, ...) bitcast (i32 (...)* @skipspace to i32 (i8**, ...)*)(i8** %15)
%17 = load i8**, i8*** %6
%18 = load i8*, i8** %17
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 61
br i1 %21, label %22, label %24
22: ; preds = %14
%23 = call i32 (i8*, ...) bitcast (i32 (...)* @event_error to i32 (i8*, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
br label %35
24: ; preds = %14
%25 = load i8**, i8*** %6
%26 = load i8*, i8** %25
%27 = getelementptr inbounds i8, i8* %26, i64 1
%28 = load i8**, i8*** %6
store i8* %27, i8** %28
%29 = load i8**, i8*** %6
%30 = call i32 (i8**, ...) bitcast (i32 (...)* @skipspace to i32 (i8**, ...)*)(i8** %29)
%31 = load i8**, i8*** %6
%32 = call i32 (i8**, ...) bitcast (i32 (...)* @readsnump to i32 (i8**, ...)*)(i8** %31)
%33 = load i32*, i32** %9
store i32 %32, i32* %33
%34 = load i32*, i32** %8
store i32 1, i32* %34
br label %35
35: ; preds = %24, %22
store i32 1, i32* %5
br label %36
36: ; preds = %35, %13
%37 = load i32, i32* %5
ret i32 %37
}

LLVM IR (-O2):
@.str = [10 x i8] c"transpose\00"
@.str.1 = [34 x i8] c"transpose must be followed by '='\00"
define i32 @parsetranspose(i8** %0, i8* nocapture %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3) {
%5 = tail call i32 @strcasecmp(i8* %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %18
7: ; preds = %4
%8 = tail call i32 (i8**, ...) bitcast (i32 (...)* @skipspace to i32 (i8**, ...)*)(i8** %0)
%9 = load i8*, i8** %0
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 61
br i1 %11, label %14, label %12
12: ; preds = %7
%13 = tail call i32 (i8*, ...) bitcast (i32 (...)* @event_error to i32 (i8*, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
br label %18
14: ; preds = %7
%15 = getelementptr inbounds i8, i8* %9, i64 1
store i8* %15, i8** %0
%16 = tail call i32 (i8**, ...) bitcast (i32 (...)* @skipspace to i32 (i8**, ...)*)(i8** %0)
%17 = tail call i32 (i8**, ...) bitcast (i32 (...)* @readsnump to i32 (i8**, ...)*)(i8** %0)
store i32 %17, i32* %3
store i32 1, i32* %2
br label %18
18: ; preds = %12, %14, %4
%19 = phi i32 [ 0, %4 ], [ 1, %14 ], [ 1, %12 ]
ret i32 %19
}