#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 */
typedef struct TYPE_7__ TYPE_3__;
typedef struct TYPE_6__ TYPE_2__;
typedef struct TYPE_5__ TYPE_1__;

/* Type definitions */
typedef size_t u_int;
typedef int /*<<< orphan*/ nis_result;
typedef int /*<<< orphan*/ leafbuf;
typedef int /*<<< orphan*/ domainbuf;
typedef char *const_nis_name;
struct TYPE_5__ {
  size_t gr_members_len;
  char **gr_members_val;
};
struct TYPE_6__ {
  TYPE_1__ gr_members;
};
struct TYPE_7__ {
  TYPE_2__ GR_data;
};

/* Variables and functions */
int EXPAND_NAME;
int FOLLOW_LINKS;
scalar_t__ NIS_GROUP_OBJ;
int NIS_RES_NUMOBJ(int /*<<< orphan*/ *);
TYPE_3__ *NIS_RES_OBJECT(int /*<<< orphan*/ *);
scalar_t__ NIS_RES_STATUS(int /*<<< orphan*/ *);
scalar_t__ NIS_SUCCESS;
scalar_t__ __type_of(TYPE_3__ *);
char *nis_domain_of_r(char *, char *, int);
int /*<<< orphan*/ nis_freeresult(int /*<<< orphan*/ *);
char *nis_leaf_of_r(char *, char *, int);
int /*<<< orphan*/ *nis_lookup(char *, int);
char *stpcpy(char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int internal_ismember(const_nis_name principal, const_nis_name group) {
  size_t grouplen = strlen(group);
  char buf[grouplen + 50];
  char leafbuf[grouplen + 2];
  char domainbuf[grouplen + 2];
  nis_result *res;
  char *cp, *cp2;
  u_int i;
  cp = stpcpy(buf, nis_leaf_of_r(group, leafbuf, sizeof(leafbuf) - 1));
  cp = stpcpy(cp, ".groups_dir");
  cp2 = nis_domain_of_r(group, domainbuf, sizeof(domainbuf) - 1);
  if (cp2 != NULL && cp2[0] != '\0') {
    *cp++ = '.';
    strcpy(cp, cp2);
  }
  res = nis_lookup(buf, EXPAND_NAME | FOLLOW_LINKS);
  if (res == NULL || NIS_RES_STATUS(res) != NIS_SUCCESS) {
    nis_freeresult(res);
    return 0;
  }
  if ((NIS_RES_NUMOBJ(res) != 1) ||
      (__type_of(NIS_RES_OBJECT(res)) != NIS_GROUP_OBJ)) {
    nis_freeresult(res);
    return 0;
  }
  for (i = 0; i < NIS_RES_OBJECT(res)->GR_data.gr_members.gr_members_len; ++i) {
    cp = NIS_RES_OBJECT(res)->GR_data.gr_members.gr_members_val[i];
    if (cp[0] == '-') {
      if (strcmp(&cp[1], principal) == 0) {
        nis_freeresult(res);
        return -1;
      }
      if (cp[1] == '@')
        switch (internal_ismember(principal, &cp[2])) {
        case -1:
          nis_freeresult(res);
          return -1;
        case 1:
          nis_freeresult(res);
          return 1;
        default:
          break;
        }
      else if (cp[1] == '*') {
        char buf1[strlen(principal) + 2];
        char buf2[strlen(cp) + 2];
        if (strcmp(nis_domain_of_r(principal, buf1, sizeof buf1),
                   nis_domain_of_r(cp, buf2, sizeof buf2)) == 0) {
          nis_freeresult(res);
          return -1;
        }
      }
    }
  }
  for (i = 0; i < NIS_RES_OBJECT(res)->GR_data.gr_members.gr_members_len; ++i) {
    cp = NIS_RES_OBJECT(res)->GR_data.gr_members.gr_members_val[i];
    if (cp[0] != '-') {
      if (strcmp(cp, principal) == 0) {
        nis_freeresult(res);
        return 1;
      }
      if (cp[0] == '@')
        switch (internal_ismember(principal, &cp[1])) {
        case -1:
          nis_freeresult(res);
          return -1;
        case 1:
          nis_freeresult(res);
          return 1;
        default:
          break;
        }
      else if (cp[0] == '*') {
        char buf1[strlen(principal) + 2];
        char buf2[strlen(cp) + 2];
        if (strcmp(nis_domain_of_r(principal, buf1, sizeof buf1),
                   nis_domain_of_r(cp, buf2, sizeof buf2)) == 0) {
          nis_freeresult(res);
          return 1;
        }
      }
    }
  }
  nis_freeresult(res);
  return 0;
}


x86 assembly (clang, -O0):
<internal_ismember>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1070 <strlen@plt>
cltq
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdx
mov    %rdx,%rax
add    $0x32,%rax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
add    $0x41,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xb0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rcx
mov    %rcx,%rax
add    $0x2,%rax
add    $0x11,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
mov    %rdi,%rcx
add    $0x2,%rcx
mov    %rcx,-0xa0(%rbp)
add    $0x11,%rdi
and    $0xfffffffffffffff0,%rdi
mov    %rsp,%rdx
sub    %rdi,%rdx
mov    %rdx,-0xa8(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
sub    $0x1,%rax
mov    %eax,%edx
call   1080 <nis_leaf_of_r@plt>
mov    -0xb0(%rbp),%rdi
mov    %rax,%rsi
call   1060 <stpcpy@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rdi
lea    0xd65(%rip),%rsi
call   1060 <stpcpy@plt>
mov    -0xa8(%rbp),%rsi
mov    %rax,%rcx
mov    -0xa0(%rbp),%rax
mov    %rcx,-0x50(%rbp)
mov    -0x18(%rbp),%rdi
sub    $0x1,%rax
mov    %eax,%edx
call   1050 <nis_domain_of_r@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
je     1302 <internal_ismember+0x132>
mov    -0x58(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1302 <internal_ismember+0x132>
mov    -0x50(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x50(%rbp)
movb   $0x2e,(%rax)
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0xb0(%rbp),%rdi
mov    0x2cd0(%rip),%rax
mov    (%rax),%esi
mov    0x2cbf(%rip),%rax
or     (%rax),%esi
call   10e0 <nis_lookup@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
je     1348 <internal_ismember+0x178>
mov    -0x48(%rbp),%rdi
call   10d0 <NIS_RES_STATUS@plt>
mov    0x2ca9(%rip),%rcx
cmp    (%rcx),%rax
je     1364 <internal_ismember+0x194>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    186e <internal_ismember+0x69e>
mov    -0x48(%rbp),%rdi
call   10b0 <NIS_RES_NUMOBJ@plt>
cmp    $0x1,%eax
jne    1397 <internal_ismember+0x1c7>
mov    -0x48(%rbp),%rdi
call   10c0 <NIS_RES_OBJECT@plt>
mov    %rax,%rdi
call   1030 <__type_of@plt>
mov    0x2c3a(%rip),%rcx
cmp    (%rcx),%rax
je     13b3 <internal_ismember+0x1e3>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    186e <internal_ismember+0x69e>
movq   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0x48(%rbp),%rdi
call   10c0 <NIS_RES_OBJECT@plt>
mov    %rax,%rcx
mov    -0xb8(%rbp),%rax
cmp    (%rcx),%rax
jae    1602 <internal_ismember+0x432>
mov    -0x48(%rbp),%rdi
call   10c0 <NIS_RES_OBJECT@plt>
mov    0x8(%rax),%rax
mov    -0x60(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    15ec <internal_ismember+0x41c>
mov    -0x50(%rbp),%rdi
add    $0x1,%rdi
mov    -0x10(%rbp),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1442 <internal_ismember+0x272>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    186e <internal_ismember+0x69e>
mov    -0x50(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x40,%eax
jne    14d0 <internal_ismember+0x300>
mov    -0x10(%rbp),%rdi
mov    -0x50(%rbp),%rsi
add    $0x2,%rsi
call   10a0 <internal_ismember@plt>
mov    %eax,%ecx
mov    %ecx,-0xbc(%rbp)
sub    $0xffffffff,%eax
je     148e <internal_ismember+0x2be>
jmp    147a <internal_ismember+0x2aa>
mov    -0xbc(%rbp),%eax
sub    $0x1,%eax
je     14aa <internal_ismember+0x2da>
jmp    14c6 <internal_ismember+0x2f6>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    186e <internal_ismember+0x69e>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    186e <internal_ismember+0x69e>
jmp    14cb <internal_ismember+0x2fb>
jmp    15e7 <internal_ismember+0x417>
mov    -0x50(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x2a,%eax
jne    15e2 <internal_ismember+0x412>
mov    -0x10(%rbp),%rdi
call   1070 <strlen@plt>
add    $0x2,%eax
mov    %rax,-0xe0(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xe8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x78(%rbp)
mov    -0x50(%rbp),%rdi
call   1070 <strlen@plt>
mov    -0xe8(%rbp),%rsi
mov    %eax,%ecx
mov    -0xe0(%rbp),%rax
add    $0x2,%ecx
mov    %rcx,-0xd0(%rbp)
mov    %rcx,%rdi
add    $0xf,%rdi
and    $0xfffffffffffffff0,%rdi
mov    %rsp,%rdx
sub    %rdi,%rdx
mov    %rdx,-0xd8(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x80(%rbp)
mov    -0x10(%rbp),%rdi
mov    %eax,%edx
call   1050 <nis_domain_of_r@plt>
mov    -0xd8(%rbp),%rsi
mov    %rax,%rcx
mov    -0xd0(%rbp),%rax
mov    %rcx,-0xc8(%rbp)
mov    -0x50(%rbp),%rdi
mov    %eax,%edx
call   1050 <nis_domain_of_r@plt>
mov    -0xc8(%rbp),%rdi
mov    %rax,%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    15bf <internal_ismember+0x3ef>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    15c6 <internal_ismember+0x3f6>
movl   $0x0,-0x64(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,%rsp
mov    -0x64(%rbp),%eax
test   %eax,%eax
jne    186e <internal_ismember+0x69e>
jmp    15dd <internal_ismember+0x40d>
jmp    15e2 <internal_ismember+0x412>
jmp    15e7 <internal_ismember+0x417>
jmp    15ec <internal_ismember+0x41c>
jmp    15f1 <internal_ismember+0x421>
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    13bb <internal_ismember+0x1eb>
movq   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0xf0(%rbp)
mov    -0x48(%rbp),%rdi
call   10c0 <NIS_RES_OBJECT@plt>
mov    %rax,%rcx
mov    -0xf0(%rbp),%rax
cmp    (%rcx),%rax
jae    1857 <internal_ismember+0x687>
mov    -0x48(%rbp),%rdi
call   10c0 <NIS_RES_OBJECT@plt>
mov    0x8(%rax),%rax
mov    -0x60(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
je     1841 <internal_ismember+0x671>
mov    -0x50(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    168d <internal_ismember+0x4bd>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    186e <internal_ismember+0x69e>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x40,%eax
jne    171a <internal_ismember+0x54a>
mov    -0x10(%rbp),%rdi
mov    -0x50(%rbp),%rsi
add    $0x1,%rsi
call   10a0 <internal_ismember@plt>
mov    %eax,%ecx
mov    %ecx,-0xf4(%rbp)
sub    $0xffffffff,%eax
je     16d8 <internal_ismember+0x508>
jmp    16c4 <internal_ismember+0x4f4>
mov    -0xf4(%rbp),%eax
sub    $0x1,%eax
je     16f4 <internal_ismember+0x524>
jmp    1710 <internal_ismember+0x540>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    186e <internal_ismember+0x69e>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    186e <internal_ismember+0x69e>
jmp    1715 <internal_ismember+0x545>
jmp    183c <internal_ismember+0x66c>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
jne    1837 <internal_ismember+0x667>
mov    -0x10(%rbp),%rdi
call   1070 <strlen@plt>
add    $0x2,%eax
mov    %rax,-0x118(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x88(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x120(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x90(%rbp)
mov    -0x50(%rbp),%rdi
call   1070 <strlen@plt>
mov    -0x120(%rbp),%rsi
mov    %eax,%ecx
mov    -0x118(%rbp),%rax
add    $0x2,%ecx
mov    %rcx,-0x108(%rbp)
mov    %rcx,%rdi
add    $0xf,%rdi
and    $0xfffffffffffffff0,%rdi
mov    %rsp,%rdx
sub    %rdi,%rdx
mov    %rdx,-0x110(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x98(%rbp)
mov    -0x10(%rbp),%rdi
mov    %eax,%edx
call   1050 <nis_domain_of_r@plt>
mov    -0x110(%rbp),%rsi
mov    %rax,%rcx
mov    -0x108(%rbp),%rax
mov    %rcx,-0x100(%rbp)
mov    -0x50(%rbp),%rdi
mov    %eax,%edx
call   1050 <nis_domain_of_r@plt>
mov    -0x100(%rbp),%rdi
mov    %rax,%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1811 <internal_ismember+0x641>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    1818 <internal_ismember+0x648>
movl   $0x0,-0x64(%rbp)
mov    -0x88(%rbp),%rax
mov    %rax,%rsp
mov    -0x64(%rbp),%eax
test   %eax,%eax
jne    186e <internal_ismember+0x69e>
jmp    1832 <internal_ismember+0x662>
jmp    1837 <internal_ismember+0x667>
jmp    183c <internal_ismember+0x66c>
jmp    1841 <internal_ismember+0x671>
jmp    1846 <internal_ismember+0x676>
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    160a <internal_ismember+0x43a>
mov    -0x48(%rbp),%rdi
call   10f0 <nis_freeresult@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_ismember>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r15
mov    %rdi,-0x48(%rbp)
mov    %rsi,%rdi
call   1070 <strlen@plt>
movslq %eax,%rbx
mov    %rsp,%r12
lea    0x41(%rbx),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    %rsp,%rsi
lea    0x11(%rbx),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rsi
mov    %rsi,%rsp
mov    %rsp,%r14
sub    %rax,%r14
mov    %r14,%rsp
add    $0x1,%ebx
mov    %r15,%rdi
mov    %ebx,%edx
call   1080 <nis_leaf_of_r@plt>
mov    %r12,%rdi
mov    %rax,%rsi
call   1060 <stpcpy@plt>
mov    %rax,%r13
movabs $0x5f7370756f72672e,%rax
70 73 5f
mov    %rax,0x0(%r13)
movl   $0x726964,0x8(%r13)
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1050 <nis_domain_of_r@plt>
test   %rax,%rax
je     127a <internal_ismember+0xaa>
cmpb   $0x0,(%rax)
je     127a <internal_ismember+0xaa>
mov    %r13,%rdi
add    $0xc,%rdi
movb   $0x2e,0xb(%r13)
mov    %rax,%rsi
call   1040 <strcpy@plt>
mov    0x2d5f(%rip),%rax
mov    0x2d50(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    %r12,%rdi
call   10e0 <nis_lookup@plt>
mov    %rax,%r15
test   %rax,%rax
je     151d <internal_ismember+0x34d>
mov    %r15,%rdi
call   10d0 <NIS_RES_STATUS@plt>
mov    0x2d39(%rip),%rcx
cmp    (%rcx),%rax
jne    151d <internal_ismember+0x34d>
mov    %r15,%rdi
call   10b0 <NIS_RES_NUMOBJ@plt>
cmp    $0x1,%eax
jne    151d <internal_ismember+0x34d>
mov    %r15,%rdi
call   10c0 <NIS_RES_OBJECT@plt>
mov    %rax,%rdi
call   1030 <__type_of@plt>
mov    0x2ce8(%rip),%rcx
cmp    (%rcx),%rax
jne    151d <internal_ismember+0x34d>
mov    %r15,%rdi
call   10c0 <NIS_RES_OBJECT@plt>
cmpq   $0x0,(%rax)
mov    -0x48(%rbp),%r12
je     140a <internal_ismember+0x23a>
xor    %r14d,%r14d
jmp    13a1 <internal_ismember+0x1d1>
mov    %r12,%rdi
call   1070 <strlen@plt>
mov    %rsp,-0x38(%rbp)
add    $0x2,%eax
mov    %rax,-0x40(%rbp)
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %r13,%rdi
call   1070 <strlen@plt>
add    $0x2,%eax
mov    %rax,-0x30(%rbp)
mov    %r12,%rdi
mov    %rsp,%r12
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    %rbx,%rsi
mov    -0x40(%rbp),%rdx
call   1050 <nis_domain_of_r@plt>
mov    %rax,%rbx
mov    %r13,%rdi
mov    %r12,%rsi
mov    -0x30(%rbp),%rdx
call   1050 <nis_domain_of_r@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1545 <internal_ismember+0x375>
mov    -0x38(%rbp),%rsp
mov    -0x48(%rbp),%r12
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14
mov    %r15,%rdi
call   10c0 <NIS_RES_OBJECT@plt>
cmp    (%rax),%r14
jae    140a <internal_ismember+0x23a>
mov    %r15,%rdi
call   10c0 <NIS_RES_OBJECT@plt>
mov    0x8(%rax),%rax
mov    (%rax,%r14,8),%r13
cmpb   $0x2d,0x0(%r13)
jne    1390 <internal_ismember+0x1c0>
lea    0x1(%r13),%rbx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13f8 <internal_ismember+0x228>
movzbl (%rbx),%eax
cmp    $0x2a,%al
je     1307 <internal_ismember+0x137>
cmp    $0x40,%al
jne    1390 <internal_ismember+0x1c0>
add    $0x2,%r13
mov    %r12,%rdi
mov    %r13,%rsi
call   10a0 <internal_ismember@plt>
cmp    $0x1,%eax
je     1536 <internal_ismember+0x366>
cmp    $0xffffffff,%eax
jne    1390 <internal_ismember+0x1c0>
mov    %r15,%rdi
call   10f0 <nis_freeresult@plt>
mov    $0xffffffff,%eax
jmp    1527 <internal_ismember+0x357>
mov    %r15,%rdi
call   10c0 <NIS_RES_OBJECT@plt>
cmpq   $0x0,(%rax)
je     151d <internal_ismember+0x34d>
xor    %r13d,%r13d
jmp    1445 <internal_ismember+0x275>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
mov    %r15,%rdi
call   10c0 <NIS_RES_OBJECT@plt>
cmp    (%rax),%r13
jae    151d <internal_ismember+0x34d>
mov    %r15,%rdi
call   10c0 <NIS_RES_OBJECT@plt>
mov    0x8(%rax),%rax
mov    (%rax,%r13,8),%rbx
cmpb   $0x2d,(%rbx)
je     1430 <internal_ismember+0x260>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1536 <internal_ismember+0x366>
movzbl (%rbx),%eax
cmp    $0x2a,%al
je     149b <internal_ismember+0x2cb>
cmp    $0x40,%al
jne    1430 <internal_ismember+0x260>
add    $0x1,%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
call   10a0 <internal_ismember@plt>
cmp    $0x1,%eax
je     1536 <internal_ismember+0x366>
cmp    $0xffffffff,%eax
jne    1430 <internal_ismember+0x260>
jmp    13f8 <internal_ismember+0x228>
mov    %r12,%rdi
call   1070 <strlen@plt>
mov    %rsp,-0x30(%rbp)
add    $0x2,%eax
mov    %rax,-0x38(%rbp)
mov    %rsp,%r14
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
mov    %rbx,%rdi
call   1070 <strlen@plt>
add    $0x2,%eax
mov    %rax,-0x40(%rbp)
mov    %r12,%rdi
mov    %rsp,%r12
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    %r14,%rsi
mov    -0x38(%rbp),%rdx
call   1050 <nis_domain_of_r@plt>
mov    %rax,%r14
mov    %rbx,%rdi
mov    %r12,%rsi
mov    -0x40(%rbp),%rdx
call   1050 <nis_domain_of_r@plt>
mov    %r14,%rdi
mov    %rax,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1558 <internal_ismember+0x388>
mov    -0x30(%rbp),%rsp
mov    -0x48(%rbp),%r12
jmp    1430 <internal_ismember+0x260>
mov    %r15,%rdi
call   10f0 <nis_freeresult@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r15,%rdi
call   10f0 <nis_freeresult@plt>
mov    $0x1,%eax
jmp    1527 <internal_ismember+0x357>
mov    %r15,%rdi
call   10f0 <nis_freeresult@plt>
mov    $0xffffffff,%eax
mov    -0x38(%rbp),%rsp
jmp    1527 <internal_ismember+0x357>
mov    %r15,%rdi
call   10f0 <nis_freeresult@plt>
mov    $0x1,%eax
mov    -0x30(%rbp),%rsp
jmp    1527 <internal_ismember+0x357>

LLVM IR (-O0):
%struct.TYPE_7__ = type { %struct.TYPE_6__ }
%struct.TYPE_6__ = type { %struct.TYPE_5__ }
%struct.TYPE_5__ = type { i64, i8** }
@.str = [12 x i8] c".groups_dir\00"
@EXPAND_NAME = global i32 0
@FOLLOW_LINKS = global i32 0
@NIS_SUCCESS = global i64 0
@NIS_GROUP_OBJ = global i64 0
define i32 @internal_ismember(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i32*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i64
%15 = alloca i32
%16 = alloca i8*
%17 = alloca i64
%18 = alloca i64
%19 = alloca i8*
%20 = alloca i64
%21 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
%22 = load i8*, i8** %5
%23 = call i32 @strlen(i8* %22)
%24 = sext i32 %23 to i64
store i64 %24, i64* %6
%25 = load i64, i64* %6
%26 = add i64 %25, 50
%27 = call i8* @llvm.stacksave()
store i8* %27, i8** %7
%28 = alloca i8, i64 %26
store i64 %26, i64* %8
%29 = load i64, i64* %6
%30 = add i64 %29, 2
%31 = alloca i8, i64 %30
store i64 %30, i64* %9
%32 = load i64, i64* %6
%33 = add i64 %32, 2
%34 = alloca i8, i64 %33
store i64 %33, i64* %10
%35 = load i8*, i8** %5
%36 = sub i64 %30, 1
%37 = trunc i64 %36 to i32
%38 = call i8* @nis_leaf_of_r(i8* %35, i8* %31, i32 %37)
%39 = call i8* @stpcpy(i8* %28, i8* %38)
store i8* %39, i8** %12
%40 = load i8*, i8** %12
%41 = call i8* @stpcpy(i8* %40, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
store i8* %41, i8** %12
%42 = load i8*, i8** %5
%43 = sub i64 %33, 1
%44 = trunc i64 %43 to i32
%45 = call i8* @nis_domain_of_r(i8* %42, i8* %34, i32 %44)
store i8* %45, i8** %13
%46 = load i8*, i8** %13
%47 = icmp ne i8* %46, null
br i1 %47, label %48, label %60
48: ; preds = %2
%49 = load i8*, i8** %13
%50 = getelementptr inbounds i8, i8* %49, i64 0
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %60
54: ; preds = %48
%55 = load i8*, i8** %12
%56 = getelementptr inbounds i8, i8* %55, i32 1
store i8* %56, i8** %12
store i8 46, i8* %55
%57 = load i8*, i8** %12
%58 = load i8*, i8** %13
%59 = call i32 @strcpy(i8* %57, i8* %58)
br label %60
60: ; preds = %54, %48, %2
%61 = load i32, i32* @EXPAND_NAME
%62 = load i32, i32* @FOLLOW_LINKS
%63 = or i32 %61, %62
%64 = call i32* @nis_lookup(i8* %28, i32 %63)
store i32* %64, i32** %11
%65 = load i32*, i32** %11
%66 = icmp eq i32* %65, null
br i1 %66, label %72, label %67
67: ; preds = %60
%68 = load i32*, i32** %11
%69 = call i64 @NIS_RES_STATUS(i32* %68)
%70 = load i64, i64* @NIS_SUCCESS
%71 = icmp ne i64 %69, %70
br i1 %71, label %72, label %75
72: ; preds = %67, %60
%73 = load i32*, i32** %11
%74 = call i32 @nis_freeresult(i32* %73)
store i32 0, i32* %3
store i32 1, i32* %15
br label %276
75: ; preds = %67
%76 = load i32*, i32** %11
%77 = call i32 @NIS_RES_NUMOBJ(i32* %76)
%78 = icmp ne i32 %77, 1
br i1 %78, label %85, label %79
79: ; preds = %75
%80 = load i32*, i32** %11
%81 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %80)
%82 = call i64 @__type_of(%struct.TYPE_7__* %81)
%83 = load i64, i64* @NIS_GROUP_OBJ
%84 = icmp ne i64 %82, %83
br i1 %84, label %85, label %88
85: ; preds = %79, %75
%86 = load i32*, i32** %11
%87 = call i32 @nis_freeresult(i32* %86)
store i32 0, i32* %3
store i32 1, i32* %15
br label %276
88: ; preds = %79
store i64 0, i64* %14
br label %89
89: ; preds = %178, %88
%90 = load i64, i64* %14
%91 = load i32*, i32** %11
%92 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %91)
%93 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %92, i32 0, i32 0
%94 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %93, i32 0, i32 0
%95 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %94, i32 0, i32 0
%96 = load i64, i64* %95
%97 = icmp ult i64 %90, %96
br i1 %97, label %98, label %181
98: ; preds = %89
%99 = load i32*, i32** %11
%100 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %99)
%101 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %100, i32 0, i32 0
%102 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %101, i32 0, i32 0
%103 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %102, i32 0, i32 1
%104 = load i8**, i8*** %103
%105 = load i64, i64* %14
%106 = getelementptr inbounds i8*, i8** %104, i64 %105
%107 = load i8*, i8** %106
store i8* %107, i8** %12
%108 = load i8*, i8** %12
%109 = getelementptr inbounds i8, i8* %108, i64 0
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = icmp eq i32 %111, 45
br i1 %112, label %113, label %177
113: ; preds = %98
%114 = load i8*, i8** %12
%115 = getelementptr inbounds i8, i8* %114, i64 1
%116 = load i8*, i8** %4
%117 = call i64 @strcmp(i8* %115, i8* %116)
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %113
%120 = load i32*, i32** %11
%121 = call i32 @nis_freeresult(i32* %120)
store i32 -1, i32* %3
store i32 1, i32* %15
br label %276
122: ; preds = %113
%123 = load i8*, i8** %12
%124 = getelementptr inbounds i8, i8* %123, i64 1
%125 = load i8, i8* %124
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 64
br i1 %127, label %128, label %141
128: ; preds = %122
%129 = load i8*, i8** %4
%130 = load i8*, i8** %12
%131 = getelementptr inbounds i8, i8* %130, i64 2
%132 = call i32 @internal_ismember(i8* %129, i8* %131)
switch i32 %132, label %139 [
i32 -1, label %133
i32 1, label %136
]
133: ; preds = %128
%134 = load i32*, i32** %11
%135 = call i32 @nis_freeresult(i32* %134)
store i32 -1, i32* %3
store i32 1, i32* %15
br label %276
136: ; preds = %128
%137 = load i32*, i32** %11
%138 = call i32 @nis_freeresult(i32* %137)
store i32 1, i32* %3
store i32 1, i32* %15
br label %276
139: ; preds = %128
br label %140
140: ; preds = %139
br label %176
141: ; preds = %122
%142 = load i8*, i8** %12
%143 = getelementptr inbounds i8, i8* %142, i64 1
%144 = load i8, i8* %143
%145 = sext i8 %144 to i32
%146 = icmp eq i32 %145, 42
br i1 %146, label %147, label %175
147: ; preds = %141
%148 = load i8*, i8** %4
%149 = call i32 @strlen(i8* %148)
%150 = add nsw i32 %149, 2
%151 = zext i32 %150 to i64
%152 = call i8* @llvm.stacksave()
store i8* %152, i8** %16
%153 = alloca i8, i64 %151
store i64 %151, i64* %17
%154 = load i8*, i8** %12
%155 = call i32 @strlen(i8* %154)
%156 = add nsw i32 %155, 2
%157 = zext i32 %156 to i64
%158 = alloca i8, i64 %157
store i64 %157, i64* %18
%159 = load i8*, i8** %4
%160 = trunc i64 %151 to i32
%161 = call i8* @nis_domain_of_r(i8* %159, i8* %153, i32 %160)
%162 = load i8*, i8** %12
%163 = trunc i64 %157 to i32
%164 = call i8* @nis_domain_of_r(i8* %162, i8* %158, i32 %163)
%165 = call i64 @strcmp(i8* %161, i8* %164)
%166 = icmp eq i64 %165, 0
br i1 %166, label %167, label %170
167: ; preds = %147
%168 = load i32*, i32** %11
%169 = call i32 @nis_freeresult(i32* %168)
store i32 -1, i32* %3
store i32 1, i32* %15
br label %171
170: ; preds = %147
store i32 0, i32* %15
br label %171
171: ; preds = %170, %167
%172 = load i8*, i8** %16
%173 = load i32, i32* %15
switch i32 %173, label %276 [
i32 0, label %174
]
174: ; preds = %171
br label %175
175: ; preds = %174, %141
br label %176
176: ; preds = %175, %140
br label %177
177: ; preds = %176, %98
br label %178
178: ; preds = %177
%179 = load i64, i64* %14
%180 = add i64 %179, 1
store i64 %180, i64* %14
br label %89
181: ; preds = %89
store i64 0, i64* %14
br label %182
182: ; preds = %270, %181
%183 = load i64, i64* %14
%184 = load i32*, i32** %11
%185 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %184)
%186 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %185, i32 0, i32 0
%187 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %186, i32 0, i32 0
%188 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %187, i32 0, i32 0
%189 = load i64, i64* %188
%190 = icmp ult i64 %183, %189
br i1 %190, label %191, label %273
191: ; preds = %182
%192 = load i32*, i32** %11
%193 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %192)
%194 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %193, i32 0, i32 0
%195 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %194, i32 0, i32 0
%196 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %195, i32 0, i32 1
%197 = load i8**, i8*** %196
%198 = load i64, i64* %14
%199 = getelementptr inbounds i8*, i8** %197, i64 %198
%200 = load i8*, i8** %199
store i8* %200, i8** %12
%201 = load i8*, i8** %12
%202 = getelementptr inbounds i8, i8* %201, i64 0
%203 = load i8, i8* %202
%204 = sext i8 %203 to i32
%205 = icmp ne i32 %204, 45
br i1 %205, label %206, label %269
206: ; preds = %191
%207 = load i8*, i8** %12
%208 = load i8*, i8** %4
%209 = call i64 @strcmp(i8* %207, i8* %208)
%210 = icmp eq i64 %209, 0
br i1 %210, label %211, label %214
211: ; preds = %206
%212 = load i32*, i32** %11
%213 = call i32 @nis_freeresult(i32* %212)
store i32 1, i32* %3
store i32 1, i32* %15
br label %276
214: ; preds = %206
%215 = load i8*, i8** %12
%216 = getelementptr inbounds i8, i8* %215, i64 0
%217 = load i8, i8* %216
%218 = sext i8 %217 to i32
%219 = icmp eq i32 %218, 64
br i1 %219, label %220, label %233
220: ; preds = %214
%221 = load i8*, i8** %4
%222 = load i8*, i8** %12
%223 = getelementptr inbounds i8, i8* %222, i64 1
%224 = call i32 @internal_ismember(i8* %221, i8* %223)
switch i32 %224, label %231 [
i32 -1, label %225
i32 1, label %228
]
225: ; preds = %220
%226 = load i32*, i32** %11
%227 = call i32 @nis_freeresult(i32* %226)
store i32 -1, i32* %3
store i32 1, i32* %15
br label %276
228: ; preds = %220
%229 = load i32*, i32** %11
%230 = call i32 @nis_freeresult(i32* %229)
store i32 1, i32* %3
store i32 1, i32* %15
br label %276
231: ; preds = %220
br label %232
232: ; preds = %231
br label %268
233: ; preds = %214
%234 = load i8*, i8** %12
%235 = getelementptr inbounds i8, i8* %234, i64 0
%236 = load i8, i8* %235
%237 = sext i8 %236 to i32
%238 = icmp eq i32 %237, 42
br i1 %238, label %239, label %267
239: ; preds = %233
%240 = load i8*, i8** %4
%241 = call i32 @strlen(i8* %240)
%242 = add nsw i32 %241, 2
%243 = zext i32 %242 to i64
%244 = call i8* @llvm.stacksave()
store i8* %244, i8** %19
%245 = alloca i8, i64 %243
store i64 %243, i64* %20
%246 = load i8*, i8** %12
%247 = call i32 @strlen(i8* %246)
%248 = add nsw i32 %247, 2
%249 = zext i32 %248 to i64
%250 = alloca i8, i64 %249
store i64 %249, i64* %21
%251 = load i8*, i8** %4
%252 = trunc i64 %243 to i32
%253 = call i8* @nis_domain_of_r(i8* %251, i8* %245, i32 %252)
%254 = load i8*, i8** %12
%255 = trunc i64 %249 to i32
%256 = call i8* @nis_domain_of_r(i8* %254, i8* %250, i32 %255)
%257 = call i64 @strcmp(i8* %253, i8* %256)
%258 = icmp eq i64 %257, 0
br i1 %258, label %259, label %262
259: ; preds = %239
%260 = load i32*, i32** %11
%261 = call i32 @nis_freeresult(i32* %260)
store i32 1, i32* %3
store i32 1, i32* %15
br label %263
262: ; preds = %239
store i32 0, i32* %15
br label %263
263: ; preds = %262, %259
%264 = load i8*, i8** %19
%265 = load i32, i32* %15
switch i32 %265, label %276 [
i32 0, label %266
]
266: ; preds = %263
br label %267
267: ; preds = %266, %233
br label %268
268: ; preds = %267, %232
br label %269
269: ; preds = %268, %191
br label %270
270: ; preds = %269
%271 = load i64, i64* %14
%272 = add i64 %271, 1
store i64 %272, i64* %14
br label %182
273: ; preds = %182
%274 = load i32*, i32** %11
%275 = call i32 @nis_freeresult(i32* %274)
store i32 0, i32* %3
store i32 1, i32* %15
br label %276
276: ; preds = %273, %263, %228, %225, %211, %171, %136, %133, %119, %85, %72
%277 = load i8*, i8** %7
%278 = load i32, i32* %3
ret i32 %278
}

LLVM IR (-O2):
%struct.TYPE_7__ = type { %struct.TYPE_6__ }
%struct.TYPE_6__ = type { %struct.TYPE_5__ }
%struct.TYPE_5__ = type { i64, i8** }
@.str = [12 x i8] c".groups_dir\00"
@EXPAND_NAME = global i32 0
@FOLLOW_LINKS = global i32 0
@NIS_SUCCESS = global i64 0
@NIS_GROUP_OBJ = global i64 0
define i32 @internal_ismember(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = sext i32 %3 to i64
%5 = add nsw i64 %4, 50
%6 = alloca i8, i64 %5
%7 = add nsw i64 %4, 2
%8 = alloca i8, i64 %7
%9 = alloca i8, i64 %7
%10 = add i32 %3, 1
%11 = call i8* @nis_leaf_of_r(i8* %1, i8* %8, i32 %10)
%12 = call i8* @stpcpy(i8* %6, i8* %11)
%13 = getelementptr i8, i8* %12, i64 11
%14 = call i8* @nis_domain_of_r(i8* %1, i8* %9, i32 %10)
%15 = icmp eq i8* %14, null
br i1 %15, label %22, label %16
16: ; preds = %2
%17 = load i8, i8* %14
%18 = icmp eq i8 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = getelementptr i8, i8* %12, i64 12
store i8 46, i8* %13
%21 = call i32 @strcpy(i8* %20, i8* %14)
br label %22
22: ; preds = %19, %16, %2
%23 = load i32, i32* @EXPAND_NAME
%24 = load i32, i32* @FOLLOW_LINKS
%25 = or i32 %24, %23
%26 = call i32* @nis_lookup(i8* %6, i32 %25)
%27 = icmp eq i32* %26, null
br i1 %27, label %32, label %28
28: ; preds = %22
%29 = call i64 @NIS_RES_STATUS(i32* %26)
%30 = load i64, i64* @NIS_SUCCESS
%31 = icmp eq i64 %29, %30
br i1 %31, label %34, label %32
32: ; preds = %28, %22
%33 = call i32 @nis_freeresult(i32* %26)
br label %149
34: ; preds = %28
%35 = call i32 @NIS_RES_NUMOBJ(i32* %26)
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %47
37: ; preds = %34
%38 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %26)
%39 = call i64 @__type_of(%struct.TYPE_7__* %38)
%40 = load i64, i64* @NIS_GROUP_OBJ
%41 = icmp eq i64 %39, %40
br i1 %41, label %42, label %47
42: ; preds = %37
%43 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %26)
%44 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %43, i64 0, i32 0, i32 0, i32 0
%45 = load i64, i64* %44
%46 = icmp eq i64 %45, 0
br i1 %46, label %49, label %54
47: ; preds = %37, %34
%48 = call i32 @nis_freeresult(i32* %26)
br label %149
49: ; preds = %95, %42
%50 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %26)
%51 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %50, i64 0, i32 0, i32 0, i32 0
%52 = load i64, i64* %51
%53 = icmp eq i64 %52, 0
br i1 %53, label %147, label %101
54: ; preds = %42, %95
%55 = phi i64 [ %96, %95 ], [ 0, %42 ]
%56 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %26)
%57 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %56, i64 0, i32 0, i32 0, i32 1
%58 = load i8**, i8*** %57
%59 = getelementptr inbounds i8*, i8** %58, i64 %55
%60 = load i8*, i8** %59
%61 = load i8, i8* %60
%62 = icmp eq i8 %61, 45
br i1 %62, label %63, label %95
63: ; preds = %54
%64 = getelementptr inbounds i8, i8* %60, i64 1
%65 = call i64 @strcmp(i8* %64, i8* %0)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i32 @nis_freeresult(i32* %26)
br label %149
69: ; preds = %63
%70 = load i8, i8* %64
switch i8 %70, label %95 [
i8 64, label %71
i8 42, label %78
]
71: ; preds = %69
%72 = getelementptr inbounds i8, i8* %60, i64 2
%73 = call i32 @internal_ismember(i8* %0, i8* %72)
switch i32 %73, label %95 [
i32 -1, label %74
i32 1, label %76
]
74: ; preds = %71
%75 = call i32 @nis_freeresult(i32* %26)
br label %149
76: ; preds = %71
%77 = call i32 @nis_freeresult(i32* %26)
br label %149
78: ; preds = %69
%79 = call i32 @strlen(i8* %0)
%80 = add nsw i32 %79, 2
%81 = zext i32 %80 to i64
%82 = call i8* @llvm.stacksave()
%83 = alloca i8, i64 %81
%84 = call i32 @strlen(i8* %60)
%85 = add nsw i32 %84, 2
%86 = zext i32 %85 to i64
%87 = alloca i8, i64 %86
%88 = call i8* @nis_domain_of_r(i8* %0, i8* %83, i32 %80)
%89 = call i8* @nis_domain_of_r(i8* %60, i8* %87, i32 %85)
%90 = call i64 @strcmp(i8* %88, i8* %89)
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %78
%93 = call i32 @nis_freeresult(i32* %26)
br label %149
94: ; preds = %78
br label %95
95: ; preds = %94, %69, %54, %71
%96 = add nuw i64 %55, 1
%97 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %26)
%98 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %97, i64 0, i32 0, i32 0, i32 0
%99 = load i64, i64* %98
%100 = icmp ult i64 %96, %99
br i1 %100, label %54, label %49
101: ; preds = %49, %141
%102 = phi i64 [ %142, %141 ], [ 0, %49 ]
%103 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %26)
%104 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %103, i64 0, i32 0, i32 0, i32 1
%105 = load i8**, i8*** %104
%106 = getelementptr inbounds i8*, i8** %105, i64 %102
%107 = load i8*, i8** %106
%108 = load i8, i8* %107
%109 = icmp eq i8 %108, 45
br i1 %109, label %141, label %110
110: ; preds = %101
%111 = call i64 @strcmp(i8* %107, i8* %0)
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %110
%114 = call i32 @nis_freeresult(i32* %26)
br label %149
115: ; preds = %110
%116 = load i8, i8* %107
switch i8 %116, label %141 [
i8 64, label %117
i8 42, label %124
]
117: ; preds = %115
%118 = getelementptr inbounds i8, i8* %107, i64 1
%119 = call i32 @internal_ismember(i8* %0, i8* %118)
switch i32 %119, label %141 [
i32 -1, label %120
i32 1, label %122
]
120: ; preds = %117
%121 = call i32 @nis_freeresult(i32* %26)
br label %149
122: ; preds = %117
%123 = call i32 @nis_freeresult(i32* %26)
br label %149
124: ; preds = %115
%125 = call i32 @strlen(i8* %0)
%126 = add nsw i32 %125, 2
%127 = zext i32 %126 to i64
%128 = call i8* @llvm.stacksave()
%129 = alloca i8, i64 %127
%130 = call i32 @strlen(i8* %107)
%131 = add nsw i32 %130, 2
%132 = zext i32 %131 to i64
%133 = alloca i8, i64 %132
%134 = call i8* @nis_domain_of_r(i8* %0, i8* %129, i32 %126)
%135 = call i8* @nis_domain_of_r(i8* %107, i8* %133, i32 %131)
%136 = call i64 @strcmp(i8* %134, i8* %135)
%137 = icmp eq i64 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %124
%139 = call i32 @nis_freeresult(i32* %26)
br label %149
140: ; preds = %124
br label %141
141: ; preds = %140, %115, %101, %117
%142 = add nuw i64 %102, 1
%143 = call %struct.TYPE_7__* @NIS_RES_OBJECT(i32* %26)
%144 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %143, i64 0, i32 0, i32 0, i32 0
%145 = load i64, i64* %144
%146 = icmp ult i64 %142, %145
br i1 %146, label %101, label %147
147: ; preds = %141, %49
%148 = call i32 @nis_freeresult(i32* %26)
br label %149
149: ; preds = %138, %92, %147, %122, %120, %113, %76, %74, %67, %47, %32
%150 = phi i32 [ 0, %32 ], [ 0, %47 ], [ -1, %67 ], [ 1, %76 ], [ -1, %74 ], [ -1, %92 ], [ 1, %113 ], [ 1, %122 ], [ -1, %120 ], [ 0, %147 ], [ 1, %138 ]
ret i32 %150
}