#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 */
struct passwd {
  char *pw_name;
  char *pw_gecos;
  char *pw_dir;
  char *pw_shell;
  char *pw_passwd;
  void *pw_gid;
  void *pw_uid;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
char fgetc(int /*<<< orphan*/ *);
void *strtoul(char *, int /*<<< orphan*/ *, int);
int __pwnextent(FILE *fp, struct passwd *pwd, char *buffer) {
  pwd->pw_name = buffer;
  size_t nameSize = 0;
  while (1) {
    int c = fgetc(fp);
    if (c == EOF) {
      return -1;
    };
    if (c == ':') {
      *buffer++ = 0;
      break;
    };
    *buffer++ = (char)c;
    if ((++nameSize) == 128) {
      return -1;
    };
  };
  if (fgetc(fp) != 'x')
    return -1;
  if (fgetc(fp) != ':')
    return -1;
  char numbuf[8];
  char *put = numbuf;
  while (1) {
    int c = fgetc(fp);
    if (c == EOF) {
      return -1;
    };
    if (c == ':') {
      *put++ = 0;
      break;
    };
    if ((c < '0') || (c > '9')) {
      return -1;
    };
    *put++ = (char)c;
    if (put == &numbuf[7]) {
      return -1;
    };
  };
  pwd->pw_uid = strtoul(numbuf, NULL, 10);
  put = numbuf;
  while (1) {
    int c = fgetc(fp);
    if (c == EOF) {
      return -1;
    };
    if (c == ':') {
      *put++ = 0;
      break;
    };
    if ((c < '0') || (c > '9')) {
      return -1;
    };
    *put++ = (char)c;
    if (put == &numbuf[7]) {
      return -1;
    };
  };
  pwd->pw_gid = strtoul(numbuf, NULL, 10);
  pwd->pw_gecos = buffer;
  nameSize = 0;
  while (1) {
    int c = fgetc(fp);
    if (c == EOF) {
      return -1;
    };
    if (c == ':') {
      *buffer++ = 0;
      break;
    };
    *buffer++ = (char)c;
    if ((++nameSize) == 256) {
      return -1;
    };
  };
  pwd->pw_dir = buffer;
  nameSize = 0;
  while (1) {
    int c = fgetc(fp);
    if (c == EOF) {
      return -1;
    };
    if (c == ':') {
      *buffer++ = 0;
      break;
    };
    *buffer++ = (char)c;
    if ((++nameSize) == 256) {
      return -1;
    };
  };
  pwd->pw_shell = buffer;
  nameSize = 0;
  while (1) {
    int c = fgetc(fp);
    if (c == EOF) {
      return -1;
    };
    if (c == '\n') {
      *buffer++ = 0;
      break;
    };
    *buffer++ = (char)c;
    if ((++nameSize) == 256) {
      return -1;
    };
  };
  pwd->pw_passwd = "x";
  return 0;
}


x86 assembly (clang, -O0):
<__pwnextent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x20(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
movq   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    0x2e88(%rip),%rcx
cmp    (%rcx),%eax
jne    1174 <__pwnextent+0x54>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
cmpl   $0x3a,-0x2c(%rbp)
jne    1195 <__pwnextent+0x75>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x0,(%rax)
jmp    11d4 <__pwnextent+0xb4>
mov    -0x2c(%rbp),%eax
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    %cl,(%rax)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
cmp    $0x80,%rax
jne    11cf <__pwnextent+0xaf>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
jmp    1147 <__pwnextent+0x27>
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
movsbl %al,%eax
cmp    $0x78,%eax
je     11f5 <__pwnextent+0xd5>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
movsbl %al,%eax
cmp    $0x3a,%eax
je     1216 <__pwnextent+0xf6>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
lea    -0x34(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    0x2db1(%rip),%rcx
cmp    (%rcx),%eax
jne    124b <__pwnextent+0x12b>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
cmpl   $0x3a,-0x44(%rbp)
jne    126c <__pwnextent+0x14c>
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x40(%rbp)
movb   $0x0,(%rax)
jmp    12c8 <__pwnextent+0x1a8>
cmpl   $0x30,-0x44(%rbp)
jl     1280 <__pwnextent+0x160>
cmpl   $0x39,-0x44(%rbp)
jle    128c <__pwnextent+0x16c>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
mov    -0x44(%rbp),%eax
mov    %al,%cl
mov    -0x40(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x40(%rbp)
mov    %cl,(%rax)
mov    -0x40(%rbp),%rax
lea    -0x34(%rbp),%rcx
add    $0x7,%rcx
cmp    %rcx,%rax
jne    12c3 <__pwnextent+0x1a3>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
jmp    121e <__pwnextent+0xfe>
lea    -0x34(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1040 <strtoul@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x30(%rax)
lea    -0x34(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
mov    0x2ce2(%rip),%rcx
cmp    (%rcx),%eax
jne    131a <__pwnextent+0x1fa>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
cmpl   $0x3a,-0x48(%rbp)
jne    133b <__pwnextent+0x21b>
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x40(%rbp)
movb   $0x0,(%rax)
jmp    1397 <__pwnextent+0x277>
cmpl   $0x30,-0x48(%rbp)
jl     134f <__pwnextent+0x22f>
cmpl   $0x39,-0x48(%rbp)
jle    135b <__pwnextent+0x23b>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
mov    -0x48(%rbp),%eax
mov    %al,%cl
mov    -0x40(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x40(%rbp)
mov    %cl,(%rax)
mov    -0x40(%rbp),%rax
lea    -0x34(%rbp),%rcx
add    $0x7,%rcx
cmp    %rcx,%rax
jne    1392 <__pwnextent+0x272>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
jmp    12ed <__pwnextent+0x1cd>
lea    -0x34(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1040 <strtoul@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x28(%rax)
mov    -0x20(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x8(%rax)
movq   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    0x2c07(%rip),%rcx
cmp    (%rcx),%eax
jne    13f5 <__pwnextent+0x2d5>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
cmpl   $0x3a,-0x4c(%rbp)
jne    1416 <__pwnextent+0x2f6>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x0,(%rax)
jmp    1455 <__pwnextent+0x335>
mov    -0x4c(%rbp),%eax
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    %cl,(%rax)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
cmp    $0x100,%rax
jne    1450 <__pwnextent+0x330>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
jmp    13c8 <__pwnextent+0x2a8>
mov    -0x20(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x10(%rax)
movq   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
mov    0x2b66(%rip),%rcx
cmp    (%rcx),%eax
jne    1496 <__pwnextent+0x376>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
cmpl   $0x3a,-0x50(%rbp)
jne    14b7 <__pwnextent+0x397>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x0,(%rax)
jmp    14f6 <__pwnextent+0x3d6>
mov    -0x50(%rbp),%eax
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    %cl,(%rax)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
cmp    $0x100,%rax
jne    14f1 <__pwnextent+0x3d1>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
jmp    1469 <__pwnextent+0x349>
mov    -0x20(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x18(%rax)
movq   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    0x2ac5(%rip),%rcx
cmp    (%rcx),%eax
jne    1537 <__pwnextent+0x417>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
cmpl   $0xa,-0x54(%rbp)
jne    1558 <__pwnextent+0x438>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x0,(%rax)
jmp    1597 <__pwnextent+0x477>
mov    -0x54(%rbp),%eax
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    %cl,(%rax)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
cmp    $0x100,%rax
jne    1592 <__pwnextent+0x472>
movl   $0xffffffff,-0x4(%rbp)
jmp    15ad <__pwnextent+0x48d>
jmp    150a <__pwnextent+0x3ea>
mov    -0x18(%rbp),%rax
lea    0xa5e(%rip),%rcx
mov    %rcx,0x20(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__pwnextent>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    %rdx,(%rsi)
lea    0x3(%rdx),%rax
mov    %rax,0x10(%rsp)
add    $0x1,%rbx
xor    %r13d,%r13d
mov    0x2e97(%rip),%r12
mov    $0xffffffff,%ebp
cs nopw 0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
je     118f <__pwnextent+0x6f>
mov    %al,-0x1(%rbx)
add    $0xffffffffffffffff,%r13
add    $0x1,%rbx
cmp    $0xffffffffffffff80,%r13
jne    1160 <__pwnextent+0x40>
jmp    13ec <__pwnextent+0x2cc>
movb   $0x0,-0x1(%rbx)
mov    %r15,%rdi
call   1030 <fgetc@plt>
cmp    $0x78,%al
jne    13ec <__pwnextent+0x2cc>
mov    %r15,%rdi
call   1030 <fgetc@plt>
cmp    $0x3a,%al
jne    13ec <__pwnextent+0x2cc>
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
mov    $0xffffffff,%ebp
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    126f <__pwnextent+0x14f>
mov    %rsp,%rax
movb   $0x0,(%rax)
mov    %rsp,%rdi
mov    %rdi,0x8(%rsp)
xor    %esi,%esi
mov    $0xa,%edx
call   1040 <strtoul@plt>
mov    %rax,0x30(%r14)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    12a1 <__pwnextent+0x181>
mov    0x10(%rsp),%rax
sub    %r13,%rax
mov    %rax,%r13
mov    0x8(%rsp),%rax
movb   $0x0,(%rax)
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1040 <strtoul@plt>
mov    %rax,0x28(%r14)
mov    %rbx,0x8(%r14)
mov    $0x100,%ebx
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
je     1313 <__pwnextent+0x1f3>
mov    %al,-0x2(%r13)
add    $0x1,%r13
add    $0xffffffffffffffff,%rbx
jne    123f <__pwnextent+0x11f>
jmp    13ec <__pwnextent+0x2cc>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    12dc <__pwnextent+0x1bc>
lea    0x1(%rsp),%rax
jmp    11d8 <__pwnextent+0xb8>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    1384 <__pwnextent+0x264>
lea    0x1(%rsp),%rax
mov    %rax,0x8(%rsp)
jmp    1210 <__pwnextent+0xf0>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x1(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    13af <__pwnextent+0x28f>
lea    0x2(%rsp),%rax
jmp    11d8 <__pwnextent+0xb8>
movb   $0x0,-0x2(%r13)
lea    -0x1(%r13),%rax
mov    %rax,0x10(%r14)
mov    $0x100,%ebx
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
je     1351 <__pwnextent+0x231>
mov    %al,-0x1(%r13)
add    $0x1,%r13
add    $0xffffffffffffffff,%rbx
jne    1325 <__pwnextent+0x205>
jmp    13ec <__pwnextent+0x2cc>
movb   $0x0,-0x1(%r13)
mov    %r13,0x18(%r14)
mov    $0x100,%ebx
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0xa,%al
je     13da <__pwnextent+0x2ba>
mov    %al,0x0(%r13)
add    $0x1,%r13
add    $0xffffffffffffffff,%rbx
jne    135f <__pwnextent+0x23f>
jmp    13ec <__pwnextent+0x2cc>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x1(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    13fd <__pwnextent+0x2dd>
lea    0x2(%rsp),%rax
jmp    12d2 <__pwnextent+0x1b2>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x2(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    1428 <__pwnextent+0x308>
lea    0x3(%rsp),%rax
jmp    11d8 <__pwnextent+0xb8>
movb   $0x0,0x0(%r13)
lea    0xc1a(%rip),%rax
mov    %rax,0x20(%r14)
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x2(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    1453 <__pwnextent+0x333>
lea    0x3(%rsp),%rax
jmp    12d2 <__pwnextent+0x1b2>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x3(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    1482 <__pwnextent+0x362>
lea    0x4(%rsp),%rax
jmp    11d8 <__pwnextent+0xb8>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x3(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    14b5 <__pwnextent+0x395>
lea    0x4(%rsp),%rax
jmp    12d2 <__pwnextent+0x1b2>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x4(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    14e8 <__pwnextent+0x3c8>
lea    0x5(%rsp),%rax
jmp    11d8 <__pwnextent+0xb8>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x4(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    151b <__pwnextent+0x3fb>
lea    0x5(%rsp),%rax
jmp    12d2 <__pwnextent+0x1b2>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x5(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    154e <__pwnextent+0x42e>
lea    0x6(%rsp),%rax
jmp    11d8 <__pwnextent+0xb8>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x5(%rsp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movsbl %al,%ecx
cmp    %ecx,(%r12)
je     13ec <__pwnextent+0x2cc>
cmp    $0x3a,%al
jne    154e <__pwnextent+0x42e>
lea    0x6(%rsp),%rax
jmp    12d2 <__pwnextent+0x1b2>
lea    -0x3a(%rax),%ecx
cmp    $0xf6,%cl
jb     13ec <__pwnextent+0x2cc>
mov    %al,0x6(%rsp)
jmp    13ec <__pwnextent+0x2cc>

LLVM IR (-O0):
%struct.passwd = type { i8*, i8*, i8*, i8*, i8*, i8*, i8* }
@EOF = global i32 0
@.str = [2 x i8] c"x\00"
define i32 @__pwnextent(i32* %0, %struct.passwd* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca %struct.passwd*
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
%10 = alloca [8 x i8]
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32* %0, i32** %5
store %struct.passwd* %1, %struct.passwd** %6
store i8* %2, i8** %7
%17 = load i8*, i8** %7
%18 = load %struct.passwd*, %struct.passwd** %6
%19 = getelementptr inbounds %struct.passwd, %struct.passwd* %18, i32 0, i32 0
store i8* %17, i8** %19
store i64 0, i64* %8
br label %20
20: ; preds = %3, %43
%21 = load i32*, i32** %5
%22 = call signext i8 @fgetc(i32* %21)
%23 = sext i8 %22 to i32
store i32 %23, i32* %9
%24 = load i32, i32* %9
%25 = load i32, i32* @EOF
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %20
store i32 -1, i32* %4
br label %217
28: ; preds = %20
%29 = load i32, i32* %9
%30 = icmp eq i32 %29, 58
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load i8*, i8** %7
%33 = getelementptr inbounds i8, i8* %32, i32 1
store i8* %33, i8** %7
store i8 0, i8* %32
br label %44
34: ; preds = %28
%35 = load i32, i32* %9
%36 = trunc i32 %35 to i8
%37 = load i8*, i8** %7
%38 = getelementptr inbounds i8, i8* %37, i32 1
store i8* %38, i8** %7
store i8 %36, i8* %37
%39 = load i64, i64* %8
%40 = add i64 %39, 1
store i64 %40, i64* %8
%41 = icmp eq i64 %40, 128
br i1 %41, label %42, label %43
42: ; preds = %34
store i32 -1, i32* %4
br label %217
43: ; preds = %34
br label %20
44: ; preds = %31
%45 = load i32*, i32** %5
%46 = call signext i8 @fgetc(i32* %45)
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %47, 120
br i1 %48, label %49, label %50
49: ; preds = %44
store i32 -1, i32* %4
br label %217
50: ; preds = %44
%51 = load i32*, i32** %5
%52 = call signext i8 @fgetc(i32* %51)
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %53, 58
br i1 %54, label %55, label %56
55: ; preds = %50
store i32 -1, i32* %4
br label %217
56: ; preds = %50
%57 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 0
store i8* %57, i8** %11
br label %58
58: ; preds = %56, %88
%59 = load i32*, i32** %5
%60 = call signext i8 @fgetc(i32* %59)
%61 = sext i8 %60 to i32
store i32 %61, i32* %12
%62 = load i32, i32* %12
%63 = load i32, i32* @EOF
%64 = icmp eq i32 %62, %63
br i1 %64, label %65, label %66
65: ; preds = %58
store i32 -1, i32* %4
br label %217
66: ; preds = %58
%67 = load i32, i32* %12
%68 = icmp eq i32 %67, 58
br i1 %68, label %69, label %72
69: ; preds = %66
%70 = load i8*, i8** %11
%71 = getelementptr inbounds i8, i8* %70, i32 1
store i8* %71, i8** %11
store i8 0, i8* %70
br label %89
72: ; preds = %66
%73 = load i32, i32* %12
%74 = icmp slt i32 %73, 48
br i1 %74, label %78, label %75
75: ; preds = %72
%76 = load i32, i32* %12
%77 = icmp sgt i32 %76, 57
br i1 %77, label %78, label %79
78: ; preds = %75, %72
store i32 -1, i32* %4
br label %217
79: ; preds = %75
%80 = load i32, i32* %12
%81 = trunc i32 %80 to i8
%82 = load i8*, i8** %11
%83 = getelementptr inbounds i8, i8* %82, i32 1
store i8* %83, i8** %11
store i8 %81, i8* %82
%84 = load i8*, i8** %11
%85 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 7
%86 = icmp eq i8* %84, %85
br i1 %86, label %87, label %88
87: ; preds = %79
store i32 -1, i32* %4
br label %217
88: ; preds = %79
br label %58
89: ; preds = %69
%90 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 0
%91 = call i8* @strtoul(i8* %90, i32* null, i32 10)
%92 = load %struct.passwd*, %struct.passwd** %6
%93 = getelementptr inbounds %struct.passwd, %struct.passwd* %92, i32 0, i32 6
store i8* %91, i8** %93
%94 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 0
store i8* %94, i8** %11
br label %95
95: ; preds = %89, %125
%96 = load i32*, i32** %5
%97 = call signext i8 @fgetc(i32* %96)
%98 = sext i8 %97 to i32
store i32 %98, i32* %13
%99 = load i32, i32* %13
%100 = load i32, i32* @EOF
%101 = icmp eq i32 %99, %100
br i1 %101, label %102, label %103
102: ; preds = %95
store i32 -1, i32* %4
br label %217
103: ; preds = %95
%104 = load i32, i32* %13
%105 = icmp eq i32 %104, 58
br i1 %105, label %106, label %109
106: ; preds = %103
%107 = load i8*, i8** %11
%108 = getelementptr inbounds i8, i8* %107, i32 1
store i8* %108, i8** %11
store i8 0, i8* %107
br label %126
109: ; preds = %103
%110 = load i32, i32* %13
%111 = icmp slt i32 %110, 48
br i1 %111, label %115, label %112
112: ; preds = %109
%113 = load i32, i32* %13
%114 = icmp sgt i32 %113, 57
br i1 %114, label %115, label %116
115: ; preds = %112, %109
store i32 -1, i32* %4
br label %217
116: ; preds = %112
%117 = load i32, i32* %13
%118 = trunc i32 %117 to i8
%119 = load i8*, i8** %11
%120 = getelementptr inbounds i8, i8* %119, i32 1
store i8* %120, i8** %11
store i8 %118, i8* %119
%121 = load i8*, i8** %11
%122 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 7
%123 = icmp eq i8* %121, %122
br i1 %123, label %124, label %125
124: ; preds = %116
store i32 -1, i32* %4
br label %217
125: ; preds = %116
br label %95
126: ; preds = %106
%127 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 0
%128 = call i8* @strtoul(i8* %127, i32* null, i32 10)
%129 = load %struct.passwd*, %struct.passwd** %6
%130 = getelementptr inbounds %struct.passwd, %struct.passwd* %129, i32 0, i32 5
store i8* %128, i8** %130
%131 = load i8*, i8** %7
%132 = load %struct.passwd*, %struct.passwd** %6
%133 = getelementptr inbounds %struct.passwd, %struct.passwd* %132, i32 0, i32 1
store i8* %131, i8** %133
store i64 0, i64* %8
br label %134
134: ; preds = %126, %157
%135 = load i32*, i32** %5
%136 = call signext i8 @fgetc(i32* %135)
%137 = sext i8 %136 to i32
store i32 %137, i32* %14
%138 = load i32, i32* %14
%139 = load i32, i32* @EOF
%140 = icmp eq i32 %138, %139
br i1 %140, label %141, label %142
141: ; preds = %134
store i32 -1, i32* %4
br label %217
142: ; preds = %134
%143 = load i32, i32* %14
%144 = icmp eq i32 %143, 58
br i1 %144, label %145, label %148
145: ; preds = %142
%146 = load i8*, i8** %7
%147 = getelementptr inbounds i8, i8* %146, i32 1
store i8* %147, i8** %7
store i8 0, i8* %146
br label %158
148: ; preds = %142
%149 = load i32, i32* %14
%150 = trunc i32 %149 to i8
%151 = load i8*, i8** %7
%152 = getelementptr inbounds i8, i8* %151, i32 1
store i8* %152, i8** %7
store i8 %150, i8* %151
%153 = load i64, i64* %8
%154 = add i64 %153, 1
store i64 %154, i64* %8
%155 = icmp eq i64 %154, 256
br i1 %155, label %156, label %157
156: ; preds = %148
store i32 -1, i32* %4
br label %217
157: ; preds = %148
br label %134
158: ; preds = %145
%159 = load i8*, i8** %7
%160 = load %struct.passwd*, %struct.passwd** %6
%161 = getelementptr inbounds %struct.passwd, %struct.passwd* %160, i32 0, i32 2
store i8* %159, i8** %161
store i64 0, i64* %8
br label %162
162: ; preds = %158, %185
%163 = load i32*, i32** %5
%164 = call signext i8 @fgetc(i32* %163)
%165 = sext i8 %164 to i32
store i32 %165, i32* %15
%166 = load i32, i32* %15
%167 = load i32, i32* @EOF
%168 = icmp eq i32 %166, %167
br i1 %168, label %169, label %170
169: ; preds = %162
store i32 -1, i32* %4
br label %217
170: ; preds = %162
%171 = load i32, i32* %15
%172 = icmp eq i32 %171, 58
br i1 %172, label %173, label %176
173: ; preds = %170
%174 = load i8*, i8** %7
%175 = getelementptr inbounds i8, i8* %174, i32 1
store i8* %175, i8** %7
store i8 0, i8* %174
br label %186
176: ; preds = %170
%177 = load i32, i32* %15
%178 = trunc i32 %177 to i8
%179 = load i8*, i8** %7
%180 = getelementptr inbounds i8, i8* %179, i32 1
store i8* %180, i8** %7
store i8 %178, i8* %179
%181 = load i64, i64* %8
%182 = add i64 %181, 1
store i64 %182, i64* %8
%183 = icmp eq i64 %182, 256
br i1 %183, label %184, label %185
184: ; preds = %176
store i32 -1, i32* %4
br label %217
185: ; preds = %176
br label %162
186: ; preds = %173
%187 = load i8*, i8** %7
%188 = load %struct.passwd*, %struct.passwd** %6
%189 = getelementptr inbounds %struct.passwd, %struct.passwd* %188, i32 0, i32 3
store i8* %187, i8** %189
store i64 0, i64* %8
br label %190
190: ; preds = %186, %213
%191 = load i32*, i32** %5
%192 = call signext i8 @fgetc(i32* %191)
%193 = sext i8 %192 to i32
store i32 %193, i32* %16
%194 = load i32, i32* %16
%195 = load i32, i32* @EOF
%196 = icmp eq i32 %194, %195
br i1 %196, label %197, label %198
197: ; preds = %190
store i32 -1, i32* %4
br label %217
198: ; preds = %190
%199 = load i32, i32* %16
%200 = icmp eq i32 %199, 10
br i1 %200, label %201, label %204
201: ; preds = %198
%202 = load i8*, i8** %7
%203 = getelementptr inbounds i8, i8* %202, i32 1
store i8* %203, i8** %7
store i8 0, i8* %202
br label %214
204: ; preds = %198
%205 = load i32, i32* %16
%206 = trunc i32 %205 to i8
%207 = load i8*, i8** %7
%208 = getelementptr inbounds i8, i8* %207, i32 1
store i8* %208, i8** %7
store i8 %206, i8* %207
%209 = load i64, i64* %8
%210 = add i64 %209, 1
store i64 %210, i64* %8
%211 = icmp eq i64 %210, 256
br i1 %211, label %212, label %213
212: ; preds = %204
store i32 -1, i32* %4
br label %217
213: ; preds = %204
br label %190
214: ; preds = %201
%215 = load %struct.passwd*, %struct.passwd** %6
%216 = getelementptr inbounds %struct.passwd, %struct.passwd* %215, i32 0, i32 4
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %216
store i32 0, i32* %4
br label %217
217: ; preds = %214, %212, %197, %184, %169, %156, %141, %124, %115, %102, %87, %78, %65, %55, %49, %42, %27
%218 = load i32, i32* %4
ret i32 %218
}

LLVM IR (-O2):
%struct.passwd = type { i8*, i8*, i8*, i8*, i8*, i8*, i8* }
@EOF = global i32 0
@.str = [2 x i8] c"x\00"
define i32 @__pwnextent(i32* nocapture %0, %struct.passwd* nocapture writeonly %1, i8* %2) {
%4 = alloca [8 x i8]
%5 = getelementptr inbounds %struct.passwd, %struct.passwd* %1, i64 0, i32 0
store i8* %2, i8** %5
br label %6
6: ; preds = %16, %3
%7 = phi i64 [ 0, %3 ], [ %17, %16 ]
%8 = phi i8* [ %2, %3 ], [ %15, %16 ]
%9 = tail call signext i8 @fgetc(i32* %0)
%10 = sext i8 %9 to i32
%11 = load i32, i32* @EOF
%12 = icmp eq i32 %11, %10
br i1 %12, label %235, label %13
13: ; preds = %6
%14 = icmp eq i8 %9, 58
%15 = getelementptr inbounds i8, i8* %8, i64 1
br i1 %14, label %19, label %16
16: ; preds = %13
store i8 %9, i8* %8
%17 = add nuw nsw i64 %7, 1
%18 = icmp eq i64 %17, 128
br i1 %18, label %235, label %6
19: ; preds = %13
store i8 0, i8* %8
%20 = tail call signext i8 @fgetc(i32* %0)
%21 = icmp eq i8 %20, 120
br i1 %21, label %22, label %235
22: ; preds = %19
%23 = tail call signext i8 @fgetc(i32* %0)
%24 = icmp eq i8 %23, 58
br i1 %24, label %25, label %235
25: ; preds = %22
%26 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%27 = call signext i8 @fgetc(i32* %0)
%28 = sext i8 %27 to i32
%29 = load i32, i32* @EOF
%30 = icmp eq i32 %29, %28
br i1 %30, label %233, label %31
31: ; preds = %25
%32 = icmp eq i8 %27, 58
br i1 %32, label %103, label %33
33: ; preds = %31
%34 = add i8 %27, -58
%35 = icmp ult i8 %34, -10
br i1 %35, label %233, label %36
36: ; preds = %33
%37 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 1
store i8 %27, i8* %26
%38 = call signext i8 @fgetc(i32* %0)
%39 = sext i8 %38 to i32
%40 = load i32, i32* @EOF
%41 = icmp eq i32 %40, %39
br i1 %41, label %233, label %42
42: ; preds = %36
%43 = icmp eq i8 %38, 58
br i1 %43, label %103, label %44
44: ; preds = %42
%45 = add i8 %38, -58
%46 = icmp ult i8 %45, -10
br i1 %46, label %233, label %47
47: ; preds = %44
%48 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 2
store i8 %38, i8* %37
%49 = call signext i8 @fgetc(i32* %0)
%50 = sext i8 %49 to i32
%51 = load i32, i32* @EOF
%52 = icmp eq i32 %51, %50
br i1 %52, label %233, label %53
53: ; preds = %47
%54 = icmp eq i8 %49, 58
br i1 %54, label %103, label %55
55: ; preds = %53
%56 = add i8 %49, -58
%57 = icmp ult i8 %56, -10
br i1 %57, label %233, label %58
58: ; preds = %55
%59 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 3
store i8 %49, i8* %48
%60 = call signext i8 @fgetc(i32* %0)
%61 = sext i8 %60 to i32
%62 = load i32, i32* @EOF
%63 = icmp eq i32 %62, %61
br i1 %63, label %233, label %64
64: ; preds = %58
%65 = icmp eq i8 %60, 58
br i1 %65, label %103, label %66
66: ; preds = %64
%67 = add i8 %60, -58
%68 = icmp ult i8 %67, -10
br i1 %68, label %233, label %69
69: ; preds = %66
%70 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 4
store i8 %60, i8* %59
%71 = call signext i8 @fgetc(i32* %0)
%72 = sext i8 %71 to i32
%73 = load i32, i32* @EOF
%74 = icmp eq i32 %73, %72
br i1 %74, label %233, label %75
75: ; preds = %69
%76 = icmp eq i8 %71, 58
br i1 %76, label %103, label %77
77: ; preds = %75
%78 = add i8 %71, -58
%79 = icmp ult i8 %78, -10
br i1 %79, label %233, label %80
80: ; preds = %77
%81 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 5
store i8 %71, i8* %70
%82 = call signext i8 @fgetc(i32* %0)
%83 = sext i8 %82 to i32
%84 = load i32, i32* @EOF
%85 = icmp eq i32 %84, %83
br i1 %85, label %233, label %86
86: ; preds = %80
%87 = icmp eq i8 %82, 58
br i1 %87, label %103, label %88
88: ; preds = %86
%89 = add i8 %82, -58
%90 = icmp ult i8 %89, -10
br i1 %90, label %233, label %91
91: ; preds = %88
%92 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 6
store i8 %82, i8* %81
%93 = call signext i8 @fgetc(i32* %0)
%94 = sext i8 %93 to i32
%95 = load i32, i32* @EOF
%96 = icmp eq i32 %95, %94
br i1 %96, label %233, label %97
97: ; preds = %91
%98 = icmp eq i8 %93, 58
br i1 %98, label %103, label %99
99: ; preds = %97
%100 = add i8 %93, -58
%101 = icmp ult i8 %100, -10
br i1 %101, label %233, label %102
102: ; preds = %99
store i8 %93, i8* %92
br label %233
103: ; preds = %97, %86, %75, %64, %53, %42, %31
%104 = phi i8* [ %26, %31 ], [ %37, %42 ], [ %48, %53 ], [ %59, %64 ], [ %70, %75 ], [ %81, %86 ], [ %92, %97 ]
store i8 0, i8* %104
%105 = call i8* @strtoul(i8* nocapture %26, i32* null, i32 10)
%106 = getelementptr inbounds %struct.passwd, %struct.passwd* %1, i64 0, i32 6
store i8* %105, i8** %106
%107 = call signext i8 @fgetc(i32* %0)
%108 = sext i8 %107 to i32
%109 = load i32, i32* @EOF
%110 = icmp eq i32 %109, %108
br i1 %110, label %233, label %111
111: ; preds = %103
%112 = icmp eq i8 %107, 58
br i1 %112, label %183, label %113
113: ; preds = %111
%114 = add i8 %107, -58
%115 = icmp ult i8 %114, -10
br i1 %115, label %233, label %116
116: ; preds = %113
%117 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 1
store i8 %107, i8* %26
%118 = call signext i8 @fgetc(i32* %0)
%119 = sext i8 %118 to i32
%120 = load i32, i32* @EOF
%121 = icmp eq i32 %120, %119
br i1 %121, label %233, label %122
122: ; preds = %116
%123 = icmp eq i8 %118, 58
br i1 %123, label %183, label %124
124: ; preds = %122
%125 = add i8 %118, -58
%126 = icmp ult i8 %125, -10
br i1 %126, label %233, label %127
127: ; preds = %124
%128 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 2
store i8 %118, i8* %117
%129 = call signext i8 @fgetc(i32* %0)
%130 = sext i8 %129 to i32
%131 = load i32, i32* @EOF
%132 = icmp eq i32 %131, %130
br i1 %132, label %233, label %133
133: ; preds = %127
%134 = icmp eq i8 %129, 58
br i1 %134, label %183, label %135
135: ; preds = %133
%136 = add i8 %129, -58
%137 = icmp ult i8 %136, -10
br i1 %137, label %233, label %138
138: ; preds = %135
%139 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 3
store i8 %129, i8* %128
%140 = call signext i8 @fgetc(i32* %0)
%141 = sext i8 %140 to i32
%142 = load i32, i32* @EOF
%143 = icmp eq i32 %142, %141
br i1 %143, label %233, label %144
144: ; preds = %138
%145 = icmp eq i8 %140, 58
br i1 %145, label %183, label %146
146: ; preds = %144
%147 = add i8 %140, -58
%148 = icmp ult i8 %147, -10
br i1 %148, label %233, label %149
149: ; preds = %146
%150 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 4
store i8 %140, i8* %139
%151 = call signext i8 @fgetc(i32* %0)
%152 = sext i8 %151 to i32
%153 = load i32, i32* @EOF
%154 = icmp eq i32 %153, %152
br i1 %154, label %233, label %155
155: ; preds = %149
%156 = icmp eq i8 %151, 58
br i1 %156, label %183, label %157
157: ; preds = %155
%158 = add i8 %151, -58
%159 = icmp ult i8 %158, -10
br i1 %159, label %233, label %160
160: ; preds = %157
%161 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 5
store i8 %151, i8* %150
%162 = call signext i8 @fgetc(i32* %0)
%163 = sext i8 %162 to i32
%164 = load i32, i32* @EOF
%165 = icmp eq i32 %164, %163
br i1 %165, label %233, label %166
166: ; preds = %160
%167 = icmp eq i8 %162, 58
br i1 %167, label %183, label %168
168: ; preds = %166
%169 = add i8 %162, -58
%170 = icmp ult i8 %169, -10
br i1 %170, label %233, label %171
171: ; preds = %168
%172 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 6
store i8 %162, i8* %161
%173 = call signext i8 @fgetc(i32* %0)
%174 = sext i8 %173 to i32
%175 = load i32, i32* @EOF
%176 = icmp eq i32 %175, %174
br i1 %176, label %233, label %177
177: ; preds = %171
%178 = icmp eq i8 %173, 58
br i1 %178, label %183, label %179
179: ; preds = %177
%180 = add i8 %173, -58
%181 = icmp ult i8 %180, -10
br i1 %181, label %233, label %182
182: ; preds = %179
store i8 %173, i8* %172
br label %233
183: ; preds = %177, %166, %155, %144, %133, %122, %111
%184 = phi i8* [ %26, %111 ], [ %117, %122 ], [ %128, %133 ], [ %139, %144 ], [ %150, %155 ], [ %161, %166 ], [ %172, %177 ]
store i8 0, i8* %184
%185 = call i8* @strtoul(i8* nocapture %26, i32* null, i32 10)
%186 = getelementptr inbounds %struct.passwd, %struct.passwd* %1, i64 0, i32 5
store i8* %185, i8** %186
%187 = getelementptr inbounds %struct.passwd, %struct.passwd* %1, i64 0, i32 1
store i8* %15, i8** %187
br label %188
188: ; preds = %198, %183
%189 = phi i64 [ 0, %183 ], [ %199, %198 ]
%190 = phi i8* [ %15, %183 ], [ %197, %198 ]
%191 = call signext i8 @fgetc(i32* %0)
%192 = sext i8 %191 to i32
%193 = load i32, i32* @EOF
%194 = icmp eq i32 %193, %192
br i1 %194, label %233, label %195
195: ; preds = %188
%196 = icmp eq i8 %191, 58
%197 = getelementptr inbounds i8, i8* %190, i64 1
br i1 %196, label %201, label %198
198: ; preds = %195
store i8 %191, i8* %190
%199 = add nuw nsw i64 %189, 1
%200 = icmp eq i64 %199, 256
br i1 %200, label %233, label %188
201: ; preds = %195
store i8 0, i8* %190
%202 = getelementptr inbounds %struct.passwd, %struct.passwd* %1, i64 0, i32 2
store i8* %197, i8** %202
br label %203
203: ; preds = %213, %201
%204 = phi i64 [ 0, %201 ], [ %214, %213 ]
%205 = phi i8* [ %197, %201 ], [ %212, %213 ]
%206 = call signext i8 @fgetc(i32* %0)
%207 = sext i8 %206 to i32
%208 = load i32, i32* @EOF
%209 = icmp eq i32 %208, %207
br i1 %209, label %233, label %210
210: ; preds = %203
%211 = icmp eq i8 %206, 58
%212 = getelementptr inbounds i8, i8* %205, i64 1
br i1 %211, label %216, label %213
213: ; preds = %210
store i8 %206, i8* %205
%214 = add nuw nsw i64 %204, 1
%215 = icmp eq i64 %214, 256
br i1 %215, label %233, label %203
216: ; preds = %210
store i8 0, i8* %205
%217 = getelementptr inbounds %struct.passwd, %struct.passwd* %1, i64 0, i32 3
store i8* %212, i8** %217
br label %218
218: ; preds = %227, %216
%219 = phi i64 [ 0, %216 ], [ %229, %227 ]
%220 = phi i8* [ %212, %216 ], [ %228, %227 ]
%221 = call signext i8 @fgetc(i32* %0)
%222 = sext i8 %221 to i32
%223 = load i32, i32* @EOF
%224 = icmp eq i32 %223, %222
br i1 %224, label %233, label %225
225: ; preds = %218
%226 = icmp eq i8 %221, 10
br i1 %226, label %231, label %227
227: ; preds = %225
%228 = getelementptr inbounds i8, i8* %220, i64 1
store i8 %221, i8* %220
%229 = add nuw nsw i64 %219, 1
%230 = icmp eq i64 %229, 256
br i1 %230, label %233, label %218
231: ; preds = %225
store i8 0, i8* %220
%232 = getelementptr inbounds %struct.passwd, %struct.passwd* %1, i64 0, i32 4
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %232
br label %233
233: ; preds = %198, %188, %213, %203, %227, %218, %33, %25, %36, %44, %47, %55, %58, %66, %69, %77, %80, %88, %91, %99, %102, %113, %103, %116, %124, %127, %135, %138, %146, %149, %157, %160, %168, %171, %179, %182, %231
%234 = phi i32 [ 0, %231 ], [ -1, %182 ], [ -1, %179 ], [ -1, %171 ], [ -1, %168 ], [ -1, %160 ], [ -1, %157 ], [ -1, %149 ], [ -1, %146 ], [ -1, %138 ], [ -1, %135 ], [ -1, %127 ], [ -1, %124 ], [ -1, %116 ], [ -1, %103 ], [ -1, %113 ], [ -1, %102 ], [ -1, %99 ], [ -1, %91 ], [ -1, %88 ], [ -1, %80 ], [ -1, %77 ], [ -1, %69 ], [ -1, %66 ], [ -1, %58 ], [ -1, %55 ], [ -1, %47 ], [ -1, %44 ], [ -1, %36 ], [ -1, %25 ], [ -1, %33 ], [ -1, %218 ], [ -1, %227 ], [ -1, %203 ], [ -1, %213 ], [ -1, %188 ], [ -1, %198 ]
br label %235
235: ; preds = %16, %6, %22, %19, %233
%236 = phi i32 [ %234, %233 ], [ -1, %19 ], [ -1, %22 ], [ -1, %6 ], [ -1, %16 ]
ret i32 %236
}