#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 group {
  char **gr_mem;
  void *gr_passwd;
  int /*<<< orphan*/ gr_gid;
  void *gr_name;
};
typedef enum nss_status { ____Placeholder_nss_status } nss_status;

/* Variables and functions */
int /*<<< orphan*/ LOG_NOTICE;
int NSS_STATUS_SUCCESS;
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, size_t);
void *strcpy(char *, char *);
char *strdup(char *);
size_t strlen(char *);
char *strsep(char **, char *);
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *, char *, char *,
                          int /*<<< orphan*/, char *);
enum nss_status do_group(char *content, char *name, struct group *result_buf,
                         char *buf, size_t buflen, int *errnop, int *_) {
  char *gr_name = strsep(&content, ":");
  char *gr_gid = strsep(&content, ":");
  char *gr_passwd = strsep(&content, ":");
  syslog(LOG_NOTICE, "content [%s] name %s gid %d password %s", content,
         gr_name, atoi(gr_gid), gr_passwd);
  memset(buf, 0, buflen);
  result_buf->gr_name = strcpy(buf, gr_name);
  result_buf->gr_gid = atoi(gr_gid);
  result_buf->gr_passwd = strcpy(buf + strlen(gr_name) + 1, gr_passwd);
  char *start_mem = (buf + strlen(gr_name) + strlen(gr_passwd) + 2);
  char **members;
  char *member;
  size_t lengths = 0;
  int member_count = 0;
  size_t member_size = 0;
  size_t strings_offset = 0;
  char *copy_content = strdup(content);
  member = strsep(&content, ",");
  if (member == NULL) {
    result_buf->gr_mem = (char **)(uintptr_t)start_mem;
  } else {
    while (strsep(&copy_content, ",") != NULL) {
      member_size += 1;
    }
    free(copy_content);
    strings_offset = (member_size + 1) * sizeof(char *);
    members = (char **)start_mem;
    members[0] = start_mem + strings_offset;
    strcpy(members[0], member);
    lengths = strlen(member);
    member_count += 1;
    while ((member = strsep(&content, ",")) != NULL) {
      members[member_count] =
          members[member_count - 1] + lengths + strlen(member) + 1;
      strcpy(members[member_count], member);
      member_count += 1;
    }
    members[member_count] = NULL;
    result_buf->gr_mem = (char **)(uintptr_t)start_mem;
  }
  free(copy_content);
  return NSS_STATUS_SUCCESS;
}


x86 assembly (clang, -O0):
<do_group>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    -0x8(%rbp),%rdi
lea    0xe4e(%rip),%rsi
call   1070 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x8(%rbp),%rdi
lea    0xe3a(%rip),%rsi
call   1070 <strsep@plt>
mov    %rax,-0x40(%rbp)
lea    -0x8(%rbp),%rdi
lea    0xe26(%rip),%rsi
call   1070 <strsep@plt>
mov    %rax,-0x48(%rbp)
mov    0x2dee(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xb4(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x40(%rbp),%rdi
call   1090 <atoi@plt>
mov    -0xb4(%rbp),%edi
mov    -0xb0(%rbp),%rdx
mov    -0xa8(%rbp),%rcx
mov    %eax,%r8d
mov    -0x48(%rbp),%r9
lea    0xdcf(%rip),%rsi
call   1080 <syslog@plt>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rdx
xor    %esi,%esi
call   1060 <memset@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1040 <strcpy@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x18(%rax)
mov    -0x40(%rbp),%rdi
call   1090 <atoi@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x10(%rax)
mov    -0x20(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x38(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0xa0(%rbp),%rdi
add    %rax,%rdi
add    $0x1,%rdi
mov    -0x48(%rbp),%rsi
call   1040 <strcpy@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x20(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x38(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rcx
mov    -0x98(%rbp),%rax
add    %rcx,%rax
mov    %rax,-0x90(%rbp)
mov    -0x48(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rcx
mov    -0x90(%rbp),%rax
add    %rcx,%rax
add    $0x2,%rax
mov    %rax,-0x50(%rbp)
movq   $0x0,-0x68(%rbp)
movl   $0x0,-0x6c(%rbp)
movq   $0x0,-0x78(%rbp)
movq   $0x0,-0x80(%rbp)
mov    -0x8(%rbp),%rdi
call   10a0 <strdup@plt>
mov    %rax,-0x88(%rbp)
lea    -0x8(%rbp),%rdi
lea    0xd03(%rip),%rsi
call   1070 <strsep@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
jne    134b <do_group+0x1cb>
mov    -0x50(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    1472 <do_group+0x2f2>
jmp    1350 <do_group+0x1d0>
lea    -0x88(%rbp),%rdi
lea    0xccc(%rip),%rsi
call   1070 <strsep@plt>
cmp    $0x0,%rax
je     137e <do_group+0x1fe>
mov    -0x78(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x78(%rbp)
jmp    1350 <do_group+0x1d0>
mov    -0x88(%rbp),%rdi
call   1030 <free@plt>
mov    -0x78(%rbp),%rax
add    $0x1,%rax
shl    $0x3,%rax
mov    %rax,-0x80(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x50(%rbp),%rcx
add    -0x80(%rbp),%rcx
mov    -0x58(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x58(%rbp),%rax
mov    (%rax),%rdi
mov    -0x60(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x60(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
lea    -0x8(%rbp),%rdi
lea    0xc48(%rip),%rsi
call   1070 <strsep@plt>
mov    %rax,-0x60(%rbp)
cmp    $0x0,%rax
je     1457 <do_group+0x2d7>
mov    -0x58(%rbp),%rax
mov    -0x6c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
add    -0x68(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    -0x60(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0xc0(%rbp),%rdx
add    %rax,%rdx
add    $0x1,%rdx
mov    -0x58(%rbp),%rax
movslq -0x6c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
movslq -0x6c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x60(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    13d7 <do_group+0x257>
mov    -0x58(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x88(%rbp),%rdi
call   1030 <free@plt>
mov    0x2b63(%rip),%rax
mov    (%rax),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_group>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r8,0x10(%rsp)
mov    %rcx,%r14
mov    %rdx,0x20(%rsp)
mov    %rdi,0x8(%rsp)
lea    0xe59(%rip),%r15
lea    0x8(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15,%rsi
call   1070 <strsep@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    %r15,%rsi
call   1070 <strsep@plt>
mov    %rax,%r13
mov    %rbp,%rdi
mov    %r15,%rsi
call   1070 <strsep@plt>
mov    %rax,%rbp
mov    0x2dfb(%rip),%rax
mov    (%rax),%r15d
mov    0x8(%rsp),%r12
mov    %r13,%rdi
call   1090 <atoi@plt>
lea    0xe0e(%rip),%rsi
mov    %r15d,%edi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %eax,%r8d
mov    %rbp,%r9
mov    %rbp,%r15
call   1080 <syslog@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    0x10(%rsp),%rdx
call   1060 <memset@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <strcpy@plt>
mov    0x20(%rsp),%rax
mov    %r14,0x18(%rax)
mov    %r13,%rdi
mov    %rax,%r13
call   1090 <atoi@plt>
mov    %eax,0x10(%r13)
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    (%r14,%rax,1),%rbp
add    $0x1,%rbp
mov    %rbp,%rdi
mov    %r15,%rsi
call   1040 <strcpy@plt>
mov    %rbp,0x8(%r13)
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rax,%r12
mov    %r14,0x10(%rsp)
lea    (%r14,%rax,1),%rbx
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rax,0x30(%rsp)
lea    (%rax,%rbx,1),%r14
add    $0x2,%r14
mov    0x8(%rsp),%rdi
call   10a0 <strdup@plt>
mov    %rax,%rbp
mov    %rax,0x18(%rsp)
lea    0xd8c(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1070 <strsep@plt>
test   %rax,%rax
je     1388 <do_group+0x208>
mov    %rax,%r15
lea    0xd6f(%rip),%rbx
lea    0x18(%rsp),%r13
mov    %r14,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13,%rdi
mov    %rbx,%rsi
call   1070 <strsep@plt>
add    $0x8,%rbp
test   %rax,%rax
jne    12d0 <do_group+0x150>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    %rbp,(%r14)
mov    %rbp,%rdi
mov    %r15,%rsi
call   1040 <strcpy@plt>
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rax,%r13
lea    0xd1c(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1070 <strsep@plt>
test   %rax,%rax
je     138e <do_group+0x20e>
mov    %rax,%rbp
mov    %r14,0x28(%rsp)
add    0x30(%rsp),%r12
mov    0x10(%rsp),%rax
add    %rax,%r12
add    $0x2,%r12
mov    $0x1,%ebx
lea    0x8(%rsp),%r15
mov    -0x8(%r12,%rbx,8),%r14
add    %r13,%r14
mov    %rbp,%rdi
call   1050 <strlen@plt>
lea    (%rax,%r14,1),%rdi
add    $0x1,%rdi
mov    %rdi,(%r12,%rbx,8)
mov    %rbp,%rsi
call   1040 <strcpy@plt>
add    $0x1,%rbx
mov    %r15,%rdi
lea    0xcb8(%rip),%rsi
call   1070 <strsep@plt>
mov    %rax,%rbp
test   %rax,%rax
jne    1340 <do_group+0x1c0>
mov    %ebx,%eax
mov    0x28(%rsp),%r14
jmp    1393 <do_group+0x213>
mov    %r14,0x0(%r13)
jmp    13a8 <do_group+0x228>
mov    $0x1,%eax
movq   $0x0,(%r14,%rax,8)
mov    0x20(%rsp),%rax
mov    %r14,(%rax)
mov    0x18(%rsp),%rbp
mov    %rbp,%rdi
call   1030 <free@plt>
mov    0x2c31(%rip),%rax
mov    (%rax),%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.group = type { i8**, i8*, i32, i8* }
@.str = [2 x i8] c":\00"
@LOG_NOTICE = global i32 0
@.str.1 = [40 x i8] c"content [%s] name %s gid %d password %s\00"
@.str.2 = [2 x i8] c",\00"
@NSS_STATUS_SUCCESS = global i32 0
define i32 @do_group(i8* %0, i8* %1, %struct.group* %2, i8* %3, i64 %4, i32* %5, i32* %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca %struct.group*
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8**
%20 = alloca i8*
%21 = alloca i64
%22 = alloca i32
%23 = alloca i64
%24 = alloca i64
%25 = alloca i8*
store i8* %0, i8** %8
store i8* %1, i8** %9
store %struct.group* %2, %struct.group** %10
store i8* %3, i8** %11
store i64 %4, i64* %12
store i32* %5, i32** %13
store i32* %6, i32** %14
%26 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %26, i8** %15
%27 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %27, i8** %16
%28 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %28, i8** %17
%29 = load i32, i32* @LOG_NOTICE
%30 = load i8*, i8** %8
%31 = load i8*, i8** %15
%32 = load i8*, i8** %16
%33 = call i32 @atoi(i8* %32)
%34 = load i8*, i8** %17
%35 = call i32 @syslog(i32 %29, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %30, i8* %31, i32 %33, i8* %34)
%36 = load i8*, i8** %11
%37 = load i64, i64* %12
%38 = call i32 @memset(i8* %36, i32 0, i64 %37)
%39 = load i8*, i8** %11
%40 = load i8*, i8** %15
%41 = call i8* @strcpy(i8* %39, i8* %40)
%42 = load %struct.group*, %struct.group** %10
%43 = getelementptr inbounds %struct.group, %struct.group* %42, i32 0, i32 3
store i8* %41, i8** %43
%44 = load i8*, i8** %16
%45 = call i32 @atoi(i8* %44)
%46 = load %struct.group*, %struct.group** %10
%47 = getelementptr inbounds %struct.group, %struct.group* %46, i32 0, i32 2
store i32 %45, i32* %47
%48 = load i8*, i8** %11
%49 = load i8*, i8** %15
%50 = call i64 @strlen(i8* %49)
%51 = getelementptr inbounds i8, i8* %48, i64 %50
%52 = getelementptr inbounds i8, i8* %51, i64 1
%53 = load i8*, i8** %17
%54 = call i8* @strcpy(i8* %52, i8* %53)
%55 = load %struct.group*, %struct.group** %10
%56 = getelementptr inbounds %struct.group, %struct.group* %55, i32 0, i32 1
store i8* %54, i8** %56
%57 = load i8*, i8** %11
%58 = load i8*, i8** %15
%59 = call i64 @strlen(i8* %58)
%60 = getelementptr inbounds i8, i8* %57, i64 %59
%61 = load i8*, i8** %17
%62 = call i64 @strlen(i8* %61)
%63 = getelementptr inbounds i8, i8* %60, i64 %62
%64 = getelementptr inbounds i8, i8* %63, i64 2
store i8* %64, i8** %18
store i64 0, i64* %21
store i32 0, i32* %22
store i64 0, i64* %23
store i64 0, i64* %24
%65 = load i8*, i8** %8
%66 = call i8* @strdup(i8* %65)
store i8* %66, i8** %25
%67 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i8* %67, i8** %20
%68 = load i8*, i8** %20
%69 = icmp eq i8* %68, null
br i1 %69, label %70, label %76
70: ; preds = %7
%71 = load i8*, i8** %18
%72 = ptrtoint i8* %71 to i64
%73 = inttoptr i64 %72 to i8**
%74 = load %struct.group*, %struct.group** %10
%75 = getelementptr inbounds %struct.group, %struct.group* %74, i32 0, i32 0
store i8** %73, i8*** %75
br label %144
76: ; preds = %7
br label %77
77: ; preds = %80, %76
%78 = call i8* @strsep(i8** %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%79 = icmp ne i8* %78, null
br i1 %79, label %80, label %83
80: ; preds = %77
%81 = load i64, i64* %23
%82 = add i64 %81, 1
store i64 %82, i64* %23
br label %77
83: ; preds = %77
%84 = load i8*, i8** %25
%85 = call i32 @free(i8* %84)
%86 = load i64, i64* %23
%87 = add i64 %86, 1
%88 = mul i64 %87, 8
store i64 %88, i64* %24
%89 = load i8*, i8** %18
%90 = bitcast i8* %89 to i8**
store i8** %90, i8*** %19
%91 = load i8*, i8** %18
%92 = load i64, i64* %24
%93 = getelementptr inbounds i8, i8* %91, i64 %92
%94 = load i8**, i8*** %19
%95 = getelementptr inbounds i8*, i8** %94, i64 0
store i8* %93, i8** %95
%96 = load i8**, i8*** %19
%97 = getelementptr inbounds i8*, i8** %96, i64 0
%98 = load i8*, i8** %97
%99 = load i8*, i8** %20
%100 = call i8* @strcpy(i8* %98, i8* %99)
%101 = load i8*, i8** %20
%102 = call i64 @strlen(i8* %101)
store i64 %102, i64* %21
%103 = load i32, i32* %22
%104 = add nsw i32 %103, 1
store i32 %104, i32* %22
br label %105
105: ; preds = %108, %83
%106 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i8* %106, i8** %20
%107 = icmp ne i8* %106, null
br i1 %107, label %108, label %134
108: ; preds = %105
%109 = load i8**, i8*** %19
%110 = load i32, i32* %22
%111 = sub nsw i32 %110, 1
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8*, i8** %109, i64 %112
%114 = load i8*, i8** %113
%115 = load i64, i64* %21
%116 = getelementptr inbounds i8, i8* %114, i64 %115
%117 = load i8*, i8** %20
%118 = call i64 @strlen(i8* %117)
%119 = getelementptr inbounds i8, i8* %116, i64 %118
%120 = getelementptr inbounds i8, i8* %119, i64 1
%121 = load i8**, i8*** %19
%122 = load i32, i32* %22
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8*, i8** %121, i64 %123
store i8* %120, i8** %124
%125 = load i8**, i8*** %19
%126 = load i32, i32* %22
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8*, i8** %125, i64 %127
%129 = load i8*, i8** %128
%130 = load i8*, i8** %20
%131 = call i8* @strcpy(i8* %129, i8* %130)
%132 = load i32, i32* %22
%133 = add nsw i32 %132, 1
store i32 %133, i32* %22
br label %105
134: ; preds = %105
%135 = load i8**, i8*** %19
%136 = load i32, i32* %22
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i8*, i8** %135, i64 %137
store i8* null, i8** %138
%139 = load i8*, i8** %18
%140 = ptrtoint i8* %139 to i64
%141 = inttoptr i64 %140 to i8**
%142 = load %struct.group*, %struct.group** %10
%143 = getelementptr inbounds %struct.group, %struct.group* %142, i32 0, i32 0
store i8** %141, i8*** %143
br label %144
144: ; preds = %134, %70
%145 = load i8*, i8** %25
%146 = call i32 @free(i8* %145)
%147 = load i32, i32* @NSS_STATUS_SUCCESS
ret i32 %147
}

LLVM IR (-O2):
%struct.group = type { i8**, i8*, i32, i8* }
@.str = [2 x i8] c":\00"
@LOG_NOTICE = global i32 0
@.str.1 = [40 x i8] c"content [%s] name %s gid %d password %s\00"
@.str.2 = [2 x i8] c",\00"
@NSS_STATUS_SUCCESS = global i32 0
define i32 @do_group(i8* %0, i8* nocapture readnone %1, %struct.group* nocapture writeonly %2, i8* %3, i64 %4, i32* nocapture readnone %5, i32* nocapture readnone %6) {
%8 = alloca i8*
%9 = alloca i8*
store i8* %0, i8** %8
%10 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* @LOG_NOTICE
%14 = load i8*, i8** %8
%15 = call i32 @atoi(i8* %11)
%16 = call i32 @syslog(i32 %13, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %14, i8* %10, i32 %15, i8* %12)
%17 = call i32 @memset(i8* %3, i32 0, i64 %4)
%18 = call i8* @strcpy(i8* dereferenceable(1) %3, i8* dereferenceable(1) %10)
%19 = getelementptr inbounds %struct.group, %struct.group* %2, i64 0, i32 3
store i8* %3, i8** %19
%20 = call i32 @atoi(i8* %11)
%21 = getelementptr inbounds %struct.group, %struct.group* %2, i64 0, i32 2
store i32 %20, i32* %21
%22 = call i64 @strlen(i8* dereferenceable(1) %10)
%23 = getelementptr inbounds i8, i8* %3, i64 %22
%24 = getelementptr inbounds i8, i8* %23, i64 1
%25 = call i8* @strcpy(i8* %24, i8* dereferenceable(1) %12)
%26 = getelementptr inbounds %struct.group, %struct.group* %2, i64 0, i32 1
store i8* %24, i8** %26
%27 = call i64 @strlen(i8* dereferenceable(1) %10)
%28 = getelementptr inbounds i8, i8* %3, i64 %27
%29 = call i64 @strlen(i8* dereferenceable(1) %12)
%30 = getelementptr inbounds i8, i8* %28, i64 %29
%31 = getelementptr inbounds i8, i8* %30, i64 2
%32 = bitcast i8** %9 to i8*
%33 = load i8*, i8** %8
%34 = call i8* @strdup(i8* %33)
store i8* %34, i8** %9
%35 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%36 = icmp eq i8* %35, null
br i1 %36, label %37, label %39
37: ; preds = %7
%38 = bitcast %struct.group* %2 to i8**
store i8* %31, i8** %38
br label %76
39: ; preds = %7, %39
%40 = phi i64 [ %43, %39 ], [ 1, %7 ]
%41 = call i8* @strsep(i8** %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%42 = icmp eq i8* %41, null
%43 = add i64 %40, 1
br i1 %42, label %44, label %39
44: ; preds = %39
%45 = load i8*, i8** %9
%46 = call i32 @free(i8* %45)
%47 = shl i64 %40, 3
%48 = bitcast i8* %31 to i8**
%49 = getelementptr inbounds i8, i8* %31, i64 %47
store i8* %49, i8** %48
%50 = call i8* @strcpy(i8* %49, i8* %35)
%51 = call i64 @strlen(i8* %35)
%52 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%53 = icmp eq i8* %52, null
br i1 %53, label %71, label %54
54: ; preds = %44, %54
%55 = phi i64 [ %66, %54 ], [ 1, %44 ]
%56 = phi i8* [ %67, %54 ], [ %52, %44 ]
%57 = add nsw i64 %55, -1
%58 = getelementptr inbounds i8*, i8** %48, i64 %57
%59 = load i8*, i8** %58
%60 = getelementptr inbounds i8, i8* %59, i64 %51
%61 = call i64 @strlen(i8* %56)
%62 = getelementptr inbounds i8, i8* %60, i64 1
%63 = getelementptr inbounds i8, i8* %62, i64 %61
%64 = getelementptr inbounds i8*, i8** %48, i64 %55
store i8* %63, i8** %64
%65 = call i8* @strcpy(i8* %63, i8* %56)
%66 = add nuw i64 %55, 1
%67 = call i8* @strsep(i8** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%68 = icmp eq i8* %67, null
br i1 %68, label %69, label %54
69: ; preds = %54
%70 = and i64 %66, 4294967295
br label %71
71: ; preds = %69, %44
%72 = phi i64 [ 1, %44 ], [ %70, %69 ]
%73 = getelementptr inbounds i8*, i8** %48, i64 %72
store i8* null, i8** %73
%74 = bitcast %struct.group* %2 to i8**
store i8* %31, i8** %74
%75 = load i8*, i8** %9
br label %76
76: ; preds = %71, %37
%77 = phi i8* [ %75, %71 ], [ %34, %37 ]
%78 = call i32 @free(i8* %77)
%79 = load i32, i32* @NSS_STATUS_SUCCESS
ret i32 %79
}