#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
char getCharacter(char **);
int parse_Letter(char **xml, char *letter) {
  char *pos1;
  char c = '\0';
  pos1 = *xml;
  c = getCharacter(xml);
  *letter = c;
  if (!((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'))) {
    *xml = pos1;
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<parse_Letter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movb   $0x0,-0x21(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <getCharacter@plt>
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
movsbl -0x21(%rbp),%eax
cmp    $0x41,%eax
jl     115e <parse_Letter+0x4e>
movsbl -0x21(%rbp),%eax
cmp    $0x5a,%eax
jle    118f <parse_Letter+0x7f>
movsbl -0x21(%rbp),%eax
cmp    $0x61,%eax
jl     1178 <parse_Letter+0x68>
movsbl -0x21(%rbp),%eax
cmp    $0x7a,%eax
jle    118f <parse_Letter+0x7f>
mov    -0x20(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1196 <parse_Letter+0x86>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_Letter>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rdi),%r15
call   1030 <getCharacter@plt>
mov    %eax,%ecx
mov    %al,(%r14)
and    $0xdf,%cl
add    $0xbf,%cl
xor    %eax,%eax
cmp    $0x1a,%cl
jb     113d <parse_Letter+0x2d>
mov    %r15,(%rbx)
mov    $0x1,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @parse_Letter(i8** %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8
store i8** %0, i8*** %4
store i8* %1, i8** %5
store i8 0, i8* %7
%8 = load i8**, i8*** %4
%9 = load i8*, i8** %8
store i8* %9, i8** %6
%10 = load i8**, i8*** %4
%11 = call signext i8 @getCharacter(i8** %10)
store i8 %11, i8* %7
%12 = load i8, i8* %7
%13 = load i8*, i8** %5
store i8 %12, i8* %13
%14 = load i8, i8* %7
%15 = sext i8 %14 to i32
%16 = icmp sge i32 %15, 65
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = load i8, i8* %7
%19 = sext i8 %18 to i32
%20 = icmp sle i32 %19, 90
br i1 %20, label %32, label %21
21: ; preds = %17, %2
%22 = load i8, i8* %7
%23 = sext i8 %22 to i32
%24 = icmp sge i32 %23, 97
br i1 %24, label %25, label %29
25: ; preds = %21
%26 = load i8, i8* %7
%27 = sext i8 %26 to i32
%28 = icmp sle i32 %27, 122
br i1 %28, label %32, label %29
29: ; preds = %25, %21
%30 = load i8*, i8** %6
%31 = load i8**, i8*** %4
store i8* %30, i8** %31
store i32 1, i32* %3
br label %33
32: ; preds = %25, %17
store i32 0, i32* %3
br label %33
33: ; preds = %32, %29
%34 = load i32, i32* %3
ret i32 %34
}

LLVM IR (-O2):
define i32 @parse_Letter(i8** %0, i8* nocapture writeonly %1) {
%3 = load i8*, i8** %0
%4 = tail call signext i8 @getCharacter(i8** %0)
store i8 %4, i8* %1
%5 = and i8 %4, -33
%6 = add i8 %5, -65
%7 = icmp ult i8 %6, 26
br i1 %7, label %9, label %8
8: ; preds = %2
store i8* %3, i8** %0
br label %9
9: ; preds = %2, %8
%10 = phi i32 [ 1, %8 ], [ 0, %2 ]
ret i32 %10
}