#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 */
typedef int /*<<< orphan*/ temp;
struct udev_device {
  int dummy;
};
struct udev {
  int dummy;
};

/* Variables and functions */
char *strchr(char *, char);
char *udev_device_get_sysattr_value(struct udev_device *, char *);
int /*<<< orphan*/ udev_device_get_syspath(struct udev_device *);
struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *,
                                                           char *, char *);
int /*<<< orphan*/ udev_device_unref(struct udev_device *);
int /*<<< orphan*/ udev_log_null(struct udev *, char *, char *, char *, char *,
                                 char *);
size_t util_strpcpyl(char **, size_t, char *, char *, ...);
int /*<<< orphan*/ util_strscpy(char *, size_t, char const *);
int util_resolve_subsys_kernel(struct udev *udev, const char *string,
                               char *result, size_t maxsize, int read_value) {
  char temp[1024];
  char *subsys;
  char *sysname;
  struct udev_device *dev;
  char *attr;
  if (string[0] != '[')
    return -1;
  util_strscpy(temp, sizeof(temp), string);
  subsys = &temp[1];
  sysname = strchr(subsys, '/');
  if (sysname == NULL)
    return -1;
  sysname[0] = '\0';
  sysname = &sysname[1];
  attr = strchr(sysname, ']');
  if (attr == NULL)
    return -1;
  attr[0] = '\0';
  attr = &attr[1];
  if (attr[0] == '/')
    attr = &attr[1];
  if (attr[0] == '\0')
    attr = NULL;
  if (read_value && attr == NULL)
    return -1;
  dev = udev_device_new_from_subsystem_sysname(udev, subsys, sysname);
  if (dev == NULL)
    return -1;
  if (read_value) {
    const char *val;
    val = udev_device_get_sysattr_value(dev, attr);
    if (val != NULL)
      util_strscpy(result, maxsize, val);
    else
      result[0] = '\0';
    udev_log_null(udev, "value '[%s/%s]%s' is '%s'\n", subsys, sysname, attr,
                  result);
  } else {
    size_t l;
    char *s;
    s = result;
    l = util_strpcpyl(&s, maxsize, udev_device_get_syspath(dev), NULL);
    if (attr != NULL)
      util_strpcpyl(&s, l, "/", attr, NULL);
    udev_log_null(udev, "path '[%s/%s]%s' is '%s'\n", subsys, sysname, attr,
                  result);
  }
  udev_device_unref(dev);
  return 0;
}


x86 assembly (clang, -O0):
<util_resolve_subsys_kernel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5b,%eax
je     11bb <util_resolve_subsys_kernel+0x3b>
movl   $0xffffffff,-0x4(%rbp)
jmp    1454 <util_resolve_subsys_kernel+0x2d4>
lea    -0x430(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x400,%esi
call   1040 <util_strscpy@plt>
lea    -0x430(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x438(%rbp)
mov    -0x438(%rbp),%rdi
mov    $0x2f,%esi
call   1070 <strchr@plt>
mov    %rax,-0x440(%rbp)
cmpq   $0x0,-0x440(%rbp)
jne    1214 <util_resolve_subsys_kernel+0x94>
movl   $0xffffffff,-0x4(%rbp)
jmp    1454 <util_resolve_subsys_kernel+0x2d4>
mov    -0x440(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x440(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x440(%rbp)
mov    -0x440(%rbp),%rdi
mov    $0x5d,%esi
call   1070 <strchr@plt>
mov    %rax,-0x450(%rbp)
cmpq   $0x0,-0x450(%rbp)
jne    1262 <util_resolve_subsys_kernel+0xe2>
movl   $0xffffffff,-0x4(%rbp)
jmp    1454 <util_resolve_subsys_kernel+0x2d4>
mov    -0x450(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x450(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
jne    12a3 <util_resolve_subsys_kernel+0x123>
mov    -0x450(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    12c1 <util_resolve_subsys_kernel+0x141>
movq   $0x0,-0x450(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     12e5 <util_resolve_subsys_kernel+0x165>
cmpq   $0x0,-0x450(%rbp)
jne    12e5 <util_resolve_subsys_kernel+0x165>
movl   $0xffffffff,-0x4(%rbp)
jmp    1454 <util_resolve_subsys_kernel+0x2d4>
mov    -0x10(%rbp),%rdi
mov    -0x438(%rbp),%rsi
mov    -0x440(%rbp),%rdx
call   1050 <udev_device_new_from_subsystem_sysname@plt>
mov    %rax,-0x448(%rbp)
cmpq   $0x0,-0x448(%rbp)
jne    131d <util_resolve_subsys_kernel+0x19d>
movl   $0xffffffff,-0x4(%rbp)
jmp    1454 <util_resolve_subsys_kernel+0x2d4>
cmpl   $0x0,-0x2c(%rbp)
je     139d <util_resolve_subsys_kernel+0x21d>
mov    -0x448(%rbp),%rdi
mov    -0x450(%rbp),%rsi
call   10a0 <udev_device_get_sysattr_value@plt>
mov    %rax,-0x458(%rbp)
cmpq   $0x0,-0x458(%rbp)
je     1368 <util_resolve_subsys_kernel+0x1e8>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x458(%rbp),%rdx
call   1040 <util_strscpy@plt>
jmp    136f <util_resolve_subsys_kernel+0x1ef>
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x438(%rbp),%rdx
mov    -0x440(%rbp),%rcx
mov    -0x450(%rbp),%r8
mov    -0x20(%rbp),%r9
lea    0xc6d(%rip),%rsi
call   1060 <udev_log_null@plt>
jmp    1441 <util_resolve_subsys_kernel+0x2c1>
mov    -0x20(%rbp),%rax
mov    %rax,-0x468(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x470(%rbp)
mov    -0x448(%rbp),%rdi
call   1030 <udev_device_get_syspath@plt>
mov    -0x470(%rbp),%rsi
movslq %eax,%rdx
lea    -0x468(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%ecx
mov    $0x0,%al
call   1080 <util_strpcpyl@plt>
mov    %rax,-0x460(%rbp)
cmpq   $0x0,-0x450(%rbp)
je     1418 <util_resolve_subsys_kernel+0x298>
mov    -0x460(%rbp),%rsi
mov    -0x450(%rbp),%rcx
lea    -0x468(%rbp),%rdi
lea    0xc0f(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
mov    $0x0,%al
call   1080 <util_strpcpyl@plt>
mov    -0x10(%rbp),%rdi
mov    -0x438(%rbp),%rdx
mov    -0x440(%rbp),%rcx
mov    -0x450(%rbp),%r8
mov    -0x20(%rbp),%r9
lea    0xbe1(%rip),%rsi
call   1060 <udev_log_null@plt>
mov    -0x448(%rbp),%rdi
call   1090 <udev_device_unref@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x470,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<util_resolve_subsys_kernel>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
mov    $0xffffffff,%r15d
cmpb   $0x5b,(%rsi)
jne    131d <util_resolve_subsys_kernel+0x19d>
mov    %r8d,%r12d
mov    %rcx,%r13
mov    %rdx,%rbp
mov    %rsi,%rdx
mov    %rdi,%rbx
lea    0x20(%rsp),%rdi
mov    $0x400,%esi
call   1040 <util_strscpy@plt>
lea    0x21(%rsp),%rdi
mov    $0x2f,%esi
call   1070 <strchr@plt>
test   %rax,%rax
je     131d <util_resolve_subsys_kernel+0x19d>
mov    %rax,%r14
movb   $0x0,(%rax)
add    $0x1,%r14
mov    %r14,%rdi
mov    $0x5d,%esi
call   1070 <strchr@plt>
test   %rax,%rax
je     131d <util_resolve_subsys_kernel+0x19d>
mov    %rbx,0x10(%rsp)
mov    %rbp,0x8(%rsp)
movb   $0x0,(%rax)
lea    0x1(%rax),%rcx
mov    %rax,%rdx
add    $0x2,%rdx
xor    %esi,%esi
cmpb   $0x2f,0x1(%rax)
sete   %sil
cmovne %rcx,%rdx
mov    0x1(%rsi,%rax,1),%bl
xor    %ebp,%ebp
test   %bl,%bl
cmovne %rdx,%rbp
test   %r12d,%r12d
je     1235 <util_resolve_subsys_kernel+0xb5>
test   %bl,%bl
je     131d <util_resolve_subsys_kernel+0x19d>
mov    0x10(%rsp),%rdi
lea    0x21(%rsp),%rsi
mov    %r14,%rdx
call   1050 <udev_device_new_from_subsystem_sysname@plt>
test   %rax,%rax
je     131d <util_resolve_subsys_kernel+0x19d>
mov    %rax,%rcx
test   %r12d,%r12d
je     1283 <util_resolve_subsys_kernel+0x103>
mov    %rcx,%r15
mov    %rcx,%rdi
mov    %rbp,%rbx
mov    %rbp,%rsi
call   10a0 <udev_device_get_sysattr_value@plt>
test   %rax,%rax
je     12ea <util_resolve_subsys_kernel+0x16a>
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %rax,%rdx
call   1040 <util_strscpy@plt>
jmp    12f3 <util_resolve_subsys_kernel+0x173>
mov    0x8(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    %rcx,%r15
mov    %rcx,%rdi
call   1030 <udev_device_get_syspath@plt>
movslq %eax,%rdx
lea    0x18(%rsp),%rdi
mov    %r13,%rsi
xor    %ecx,%ecx
xor    %eax,%eax
call   1080 <util_strpcpyl@plt>
test   %bl,%bl
je     12cc <util_resolve_subsys_kernel+0x14c>
lea    0xd64(%rip),%rdx
lea    0x18(%rsp),%rdi
mov    %rax,%rsi
mov    %rbp,%rcx
xor    %r8d,%r8d
xor    %eax,%eax
call   1080 <util_strpcpyl@plt>
lea    0xd4a(%rip),%rsi
mov    0x10(%rsp),%rdi
lea    0x21(%rsp),%rdx
mov    %r14,%rcx
mov    %rbp,%r8
mov    0x8(%rsp),%r9
jmp    130d <util_resolve_subsys_kernel+0x18d>
mov    0x8(%rsp),%rbp
movb   $0x0,0x0(%rbp)
mov    0x10(%rsp),%rdi
lea    0xd01(%rip),%rsi
lea    0x21(%rsp),%rdx
mov    %r14,%rcx
mov    %rbx,%r8
mov    %rbp,%r9
call   1060 <udev_log_null@plt>
mov    %r15,%rdi
call   1090 <udev_device_unref@plt>
xor    %r15d,%r15d
mov    %r15d,%eax
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.udev = type { i32 }
%struct.udev_device = type { i32 }
@.str = [27 x i8] c"value '[%s/%s]%s' is '%s'\0A\00"
@.str.1 = [2 x i8] c"/\00"
@.str.2 = [26 x i8] c"path '[%s/%s]%s' is '%s'\0A\00"
define i32 @util_resolve_subsys_kernel(%struct.udev* %0, i8* %1, i8* %2, i64 %3, i32 %4) {
%6 = alloca i32
%7 = alloca %struct.udev*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i32
%12 = alloca [1024 x i8]
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca %struct.udev_device*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i64
%19 = alloca i8*
store %struct.udev* %0, %struct.udev** %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store i64 %3, i64* %10
store i32 %4, i32* %11
%20 = load i8*, i8** %8
%21 = getelementptr inbounds i8, i8* %20, i64 0
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 91
br i1 %24, label %25, label %26
25: ; preds = %5
store i32 -1, i32* %6
br label %129
26: ; preds = %5
%27 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%28 = load i8*, i8** %8
%29 = call i32 @util_strscpy(i8* %27, i64 1024, i8* %28)
%30 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 1
store i8* %30, i8** %13
%31 = load i8*, i8** %13
%32 = call i8* @strchr(i8* %31, i8 signext 47)
store i8* %32, i8** %14
%33 = load i8*, i8** %14
%34 = icmp eq i8* %33, null
br i1 %34, label %35, label %36
35: ; preds = %26
store i32 -1, i32* %6
br label %129
36: ; preds = %26
%37 = load i8*, i8** %14
%38 = getelementptr inbounds i8, i8* %37, i64 0
store i8 0, i8* %38
%39 = load i8*, i8** %14
%40 = getelementptr inbounds i8, i8* %39, i64 1
store i8* %40, i8** %14
%41 = load i8*, i8** %14
%42 = call i8* @strchr(i8* %41, i8 signext 93)
store i8* %42, i8** %16
%43 = load i8*, i8** %16
%44 = icmp eq i8* %43, null
br i1 %44, label %45, label %46
45: ; preds = %36
store i32 -1, i32* %6
br label %129
46: ; preds = %36
%47 = load i8*, i8** %16
%48 = getelementptr inbounds i8, i8* %47, i64 0
store i8 0, i8* %48
%49 = load i8*, i8** %16
%50 = getelementptr inbounds i8, i8* %49, i64 1
store i8* %50, i8** %16
%51 = load i8*, i8** %16
%52 = getelementptr inbounds i8, i8* %51, i64 0
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 47
br i1 %55, label %56, label %59
56: ; preds = %46
%57 = load i8*, i8** %16
%58 = getelementptr inbounds i8, i8* %57, i64 1
store i8* %58, i8** %16
br label %59
59: ; preds = %56, %46
%60 = load i8*, i8** %16
%61 = getelementptr inbounds i8, i8* %60, i64 0
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %59
store i8* null, i8** %16
br label %66
66: ; preds = %65, %59
%67 = load i32, i32* %11
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %73
69: ; preds = %66
%70 = load i8*, i8** %16
%71 = icmp eq i8* %70, null
br i1 %71, label %72, label %73
72: ; preds = %69
store i32 -1, i32* %6
br label %129
73: ; preds = %69, %66
%74 = load %struct.udev*, %struct.udev** %7
%75 = load i8*, i8** %13
%76 = load i8*, i8** %14
%77 = call %struct.udev_device* @udev_device_new_from_subsystem_sysname(%struct.udev* %74, i8* %75, i8* %76)
store %struct.udev_device* %77, %struct.udev_device** %15
%78 = load %struct.udev_device*, %struct.udev_device** %15
%79 = icmp eq %struct.udev_device* %78, null
br i1 %79, label %80, label %81
80: ; preds = %73
store i32 -1, i32* %6
br label %129
81: ; preds = %73
%82 = load i32, i32* %11
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %105
84: ; preds = %81
%85 = load %struct.udev_device*, %struct.udev_device** %15
%86 = load i8*, i8** %16
%87 = call i8* @udev_device_get_sysattr_value(%struct.udev_device* %85, i8* %86)
store i8* %87, i8** %17
%88 = load i8*, i8** %17
%89 = icmp ne i8* %88, null
br i1 %89, label %90, label %95
90: ; preds = %84
%91 = load i8*, i8** %9
%92 = load i64, i64* %10
%93 = load i8*, i8** %17
%94 = call i32 @util_strscpy(i8* %91, i64 %92, i8* %93)
br label %98
95: ; preds = %84
%96 = load i8*, i8** %9
%97 = getelementptr inbounds i8, i8* %96, i64 0
store i8 0, i8* %97
br label %98
98: ; preds = %95, %90
%99 = load %struct.udev*, %struct.udev** %7
%100 = load i8*, i8** %13
%101 = load i8*, i8** %14
%102 = load i8*, i8** %16
%103 = load i8*, i8** %9
%104 = call i32 @udev_log_null(%struct.udev* %99, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %100, i8* %101, i8* %102, i8* %103)
br label %126
105: ; preds = %81
%106 = load i8*, i8** %9
store i8* %106, i8** %19
%107 = load i64, i64* %10
%108 = load %struct.udev_device*, %struct.udev_device** %15
%109 = call i32 @udev_device_get_syspath(%struct.udev_device* %108)
%110 = sext i32 %109 to i64
%111 = inttoptr i64 %110 to i8*
%112 = call i64 (i8**, i64, i8*, i8*, ...) @util_strpcpyl(i8** %19, i64 %107, i8* %111, i8* null)
store i64 %112, i64* %18
%113 = load i8*, i8** %16
%114 = icmp ne i8* %113, null
br i1 %114, label %115, label %119
115: ; preds = %105
%116 = load i64, i64* %18
%117 = load i8*, i8** %16
%118 = call i64 (i8**, i64, i8*, i8*, ...) @util_strpcpyl(i8** %19, i64 %116, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* %117, i8* null)
br label %119
119: ; preds = %115, %105
%120 = load %struct.udev*, %struct.udev** %7
%121 = load i8*, i8** %13
%122 = load i8*, i8** %14
%123 = load i8*, i8** %16
%124 = load i8*, i8** %9
%125 = call i32 @udev_log_null(%struct.udev* %120, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %121, i8* %122, i8* %123, i8* %124)
br label %126
126: ; preds = %119, %98
%127 = load %struct.udev_device*, %struct.udev_device** %15
%128 = call i32 @udev_device_unref(%struct.udev_device* %127)
store i32 0, i32* %6
br label %129
129: ; preds = %126, %80, %72, %45, %35, %25
%130 = load i32, i32* %6
ret i32 %130
}

LLVM IR (-O2):
%struct.udev = type { i32 }
%struct.udev_device = type { i32 }
@.str = [27 x i8] c"value '[%s/%s]%s' is '%s'\0A\00"
@.str.1 = [2 x i8] c"/\00"
@.str.2 = [26 x i8] c"path '[%s/%s]%s' is '%s'\0A\00"
define i32 @util_resolve_subsys_kernel(%struct.udev* %0, i8* %1, i8* %2, i64 %3, i32 %4) {
%6 = alloca [1024 x i8]
%7 = alloca i8*
%8 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%9 = load i8, i8* %1
%10 = icmp eq i8 %9, 91
br i1 %10, label %11, label %55
11: ; preds = %5
%12 = call i32 @util_strscpy(i8* %8, i64 1024, i8* %1)
%13 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 1
%14 = call i8* @strchr(i8* %13, i8 signext 47)
%15 = icmp eq i8* %14, null
br i1 %15, label %55, label %16
16: ; preds = %11
store i8 0, i8* %14
%17 = getelementptr inbounds i8, i8* %14, i64 1
%18 = call i8* @strchr(i8* %17, i8 signext 93)
%19 = icmp eq i8* %18, null
br i1 %19, label %55, label %20
20: ; preds = %16
store i8 0, i8* %18
%21 = getelementptr inbounds i8, i8* %18, i64 1
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 47
%24 = getelementptr inbounds i8, i8* %18, i64 2
%25 = select i1 %23, i8* %24, i8* %21
%26 = load i8, i8* %25
%27 = icmp eq i8 %26, 0
%28 = select i1 %27, i8* null, i8* %25
%29 = icmp ne i32 %4, 0
%30 = select i1 %29, i1 %27, i1 false
br i1 %30, label %55, label %31
31: ; preds = %20
%32 = call %struct.udev_device* @udev_device_new_from_subsystem_sysname(%struct.udev* %0, i8* %13, i8* %17)
%33 = icmp eq %struct.udev_device* %32, null
br i1 %33, label %55, label %34
34: ; preds = %31
br i1 %29, label %35, label %43
35: ; preds = %34
%36 = call i8* @udev_device_get_sysattr_value(%struct.udev_device* %32, i8* %28)
%37 = icmp eq i8* %36, null
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = call i32 @util_strscpy(i8* %2, i64 %3, i8* %36)
br label %41
40: ; preds = %35
store i8 0, i8* %2
br label %41
41: ; preds = %40, %38
%42 = call i32 @udev_log_null(%struct.udev* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %13, i8* %17, i8* %28, i8* %2)
br label %53
43: ; preds = %34
%44 = bitcast i8** %7 to i8*
store i8* %2, i8** %7
%45 = call i32 @udev_device_get_syspath(%struct.udev_device* %32)
%46 = sext i32 %45 to i64
%47 = inttoptr i64 %46 to i8*
%48 = call i64 (i8**, i64, i8*, i8*, ...) @util_strpcpyl(i8** %7, i64 %3, i8* %47, i8* null)
br i1 %27, label %51, label %49
49: ; preds = %43
%50 = call i64 (i8**, i64, i8*, i8*, ...) @util_strpcpyl(i8** %7, i64 %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* %28, i8* null)
br label %51
51: ; preds = %49, %43
%52 = call i32 @udev_log_null(%struct.udev* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %13, i8* %17, i8* %28, i8* %2)
br label %53
53: ; preds = %51, %41
%54 = call i32 @udev_device_unref(%struct.udev_device* %32)
br label %55
55: ; preds = %31, %20, %16, %11, %5, %53
%56 = phi i32 [ 0, %53 ], [ -1, %5 ], [ -1, %11 ], [ -1, %16 ], [ -1, %20 ], [ -1, %31 ]
ret i32 %56
}