#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 *);
char const *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 *);
int /*<<< orphan*/ util_strlcat(char *, char *, size_t);
int /*<<< orphan*/ util_strlcpy(char *, char const *, size_t);
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 == NULL)
    string = result;
  if (string[0] != '[')
    return -1;
  util_strlcpy(temp, string, sizeof(temp));
  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_strlcpy(result, val, maxsize);
    else
      result[0] = '\0';
    udev_log_null(udev, "value '[%s/%s]%s' is '%s'\n", subsys, sysname, attr,
                  result);
  } else {
    util_strlcpy(result, udev_device_get_syspath(dev), maxsize);
    if (attr != NULL) {
      util_strlcat(result, "/", maxsize);
      util_strlcat(result, attr, maxsize);
    }
    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    $0x460,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11b2 <util_resolve_subsys_kernel+0x32>
mov    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5b,%eax
je     11ce <util_resolve_subsys_kernel+0x4e>
movl   $0xffffffff,-0x4(%rbp)
jmp    144c <util_resolve_subsys_kernel+0x2cc>
lea    -0x430(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x400,%edx
call   1080 <util_strlcpy@plt>
lea    -0x430(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x438(%rbp)
mov    -0x438(%rbp),%rdi
mov    $0x2f,%esi
call   1060 <strchr@plt>
mov    %rax,-0x440(%rbp)
cmpq   $0x0,-0x440(%rbp)
jne    1227 <util_resolve_subsys_kernel+0xa7>
movl   $0xffffffff,-0x4(%rbp)
jmp    144c <util_resolve_subsys_kernel+0x2cc>
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   1060 <strchr@plt>
mov    %rax,-0x450(%rbp)
cmpq   $0x0,-0x450(%rbp)
jne    1275 <util_resolve_subsys_kernel+0xf5>
movl   $0xffffffff,-0x4(%rbp)
jmp    144c <util_resolve_subsys_kernel+0x2cc>
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    12b6 <util_resolve_subsys_kernel+0x136>
mov    -0x450(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    12d4 <util_resolve_subsys_kernel+0x154>
movq   $0x0,-0x450(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     12f8 <util_resolve_subsys_kernel+0x178>
cmpq   $0x0,-0x450(%rbp)
jne    12f8 <util_resolve_subsys_kernel+0x178>
movl   $0xffffffff,-0x4(%rbp)
jmp    144c <util_resolve_subsys_kernel+0x2cc>
mov    -0x10(%rbp),%rdi
mov    -0x438(%rbp),%rsi
mov    -0x440(%rbp),%rdx
call   1040 <udev_device_new_from_subsystem_sysname@plt>
mov    %rax,-0x448(%rbp)
cmpq   $0x0,-0x448(%rbp)
jne    1330 <util_resolve_subsys_kernel+0x1b0>
movl   $0xffffffff,-0x4(%rbp)
jmp    144c <util_resolve_subsys_kernel+0x2cc>
cmpl   $0x0,-0x2c(%rbp)
je     13b0 <util_resolve_subsys_kernel+0x230>
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     137b <util_resolve_subsys_kernel+0x1fb>
mov    -0x20(%rbp),%rdi
mov    -0x458(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1080 <util_strlcpy@plt>
jmp    1382 <util_resolve_subsys_kernel+0x202>
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    0xc5a(%rip),%rsi
call   1050 <udev_log_null@plt>
jmp    1439 <util_resolve_subsys_kernel+0x2b9>
mov    -0x20(%rbp),%rax
mov    %rax,-0x460(%rbp)
mov    -0x448(%rbp),%rdi
call   1030 <udev_device_get_syspath@plt>
mov    -0x460(%rbp),%rdi
mov    %rax,%rsi
mov    -0x28(%rbp),%rdx
call   1080 <util_strlcpy@plt>
cmpq   $0x0,-0x450(%rbp)
je     1410 <util_resolve_subsys_kernel+0x290>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xc24(%rip),%rsi
call   1090 <util_strlcat@plt>
mov    -0x20(%rbp),%rdi
mov    -0x450(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1090 <util_strlcat@plt>
mov    -0x10(%rbp),%rdi
mov    -0x438(%rbp),%rdx
mov    -0x440(%rbp),%rcx
mov    -0x450(%rbp),%r8
mov    -0x20(%rbp),%r9
lea    0xbe9(%rip),%rsi
call   1050 <udev_log_null@plt>
mov    -0x448(%rbp),%rdi
call   1070 <udev_device_unref@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x460,%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
test   %rsi,%rsi
cmove  %rdx,%rsi
mov    $0xffffffff,%r15d
cmpb   $0x5b,(%rsi)
jne    1314 <util_resolve_subsys_kernel+0x194>
mov    %rdx,%rbx
mov    %r8d,%r13d
mov    %rcx,%r14
mov    %rdi,%rbp
lea    0x20(%rsp),%rdi
mov    $0x400,%edx
call   1080 <util_strlcpy@plt>
lea    0x21(%rsp),%rdi
mov    $0x2f,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     1314 <util_resolve_subsys_kernel+0x194>
mov    %rax,%r12
movb   $0x0,(%rax)
add    $0x1,%r12
mov    %r12,%rdi
mov    $0x5d,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     1314 <util_resolve_subsys_kernel+0x194>
mov    %r14,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),%r14b
xor    %ebp,%ebp
test   %r14b,%r14b
cmovne %rdx,%rbp
test   %r13d,%r13d
je     123c <util_resolve_subsys_kernel+0xbc>
test   %r14b,%r14b
je     1314 <util_resolve_subsys_kernel+0x194>
mov    0x8(%rsp),%rdi
lea    0x21(%rsp),%rsi
mov    %r12,%rdx
call   1040 <udev_device_new_from_subsystem_sysname@plt>
test   %rax,%rax
je     1314 <util_resolve_subsys_kernel+0x194>
test   %r13d,%r13d
mov    %rax,0x18(%rsp)
je     1290 <util_resolve_subsys_kernel+0x110>
mov    %rax,%rdi
mov    %rbp,%r13
mov    %rbp,%rsi
call   10a0 <udev_device_get_sysattr_value@plt>
test   %rax,%rax
mov    0x8(%rsp),%rbp
lea    0x21(%rsp),%r14
je     12e6 <util_resolve_subsys_kernel+0x166>
mov    %rbx,%rdi
mov    %rax,%rsi
mov    0x10(%rsp),%rdx
call   1080 <util_strlcpy@plt>
jmp    12e9 <util_resolve_subsys_kernel+0x169>
mov    %rbp,%r13
mov    %rax,%rdi
call   1030 <udev_device_get_syspath@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
mov    0x10(%rsp),%rbp
mov    %rbp,%rdx
call   1080 <util_strlcpy@plt>
lea    0xd68(%rip),%r15
test   %r14b,%r14b
je     12da <util_resolve_subsys_kernel+0x15a>
lea    0xd5a(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
call   1090 <util_strlcat@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   1090 <util_strlcat@plt>
mov    0x8(%rsp),%rbp
lea    0x21(%rsp),%r14
jmp    12f0 <util_resolve_subsys_kernel+0x170>
movb   $0x0,(%rbx)
lea    0xd10(%rip),%r15
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %rbx,%r9
call   1050 <udev_log_null@plt>
mov    0x18(%rsp),%rdi
call   1070 <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*
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
%18 = load i8*, i8** %8
%19 = icmp eq i8* %18, null
br i1 %19, label %20, label %22
20: ; preds = %5
%21 = load i8*, i8** %9
store i8* %21, i8** %8
br label %22
22: ; preds = %20, %5
%23 = load i8*, i8** %8
%24 = getelementptr inbounds i8, i8* %23, i64 0
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 91
br i1 %27, label %28, label %29
28: ; preds = %22
store i32 -1, i32* %6
br label %134
29: ; preds = %22
%30 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%31 = load i8*, i8** %8
%32 = call i32 @util_strlcpy(i8* %30, i8* %31, i64 1024)
%33 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 1
store i8* %33, i8** %13
%34 = load i8*, i8** %13
%35 = call i8* @strchr(i8* %34, i8 signext 47)
store i8* %35, i8** %14
%36 = load i8*, i8** %14
%37 = icmp eq i8* %36, null
br i1 %37, label %38, label %39
38: ; preds = %29
store i32 -1, i32* %6
br label %134
39: ; preds = %29
%40 = load i8*, i8** %14
%41 = getelementptr inbounds i8, i8* %40, i64 0
store i8 0, i8* %41
%42 = load i8*, i8** %14
%43 = getelementptr inbounds i8, i8* %42, i64 1
store i8* %43, i8** %14
%44 = load i8*, i8** %14
%45 = call i8* @strchr(i8* %44, i8 signext 93)
store i8* %45, i8** %16
%46 = load i8*, i8** %16
%47 = icmp eq i8* %46, null
br i1 %47, label %48, label %49
48: ; preds = %39
store i32 -1, i32* %6
br label %134
49: ; preds = %39
%50 = load i8*, i8** %16
%51 = getelementptr inbounds i8, i8* %50, i64 0
store i8 0, i8* %51
%52 = load i8*, i8** %16
%53 = getelementptr inbounds i8, i8* %52, i64 1
store i8* %53, i8** %16
%54 = load i8*, i8** %16
%55 = getelementptr inbounds i8, i8* %54, i64 0
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 47
br i1 %58, label %59, label %62
59: ; preds = %49
%60 = load i8*, i8** %16
%61 = getelementptr inbounds i8, i8* %60, i64 1
store i8* %61, i8** %16
br label %62
62: ; preds = %59, %49
%63 = load i8*, i8** %16
%64 = getelementptr inbounds i8, i8* %63, i64 0
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %62
store i8* null, i8** %16
br label %69
69: ; preds = %68, %62
%70 = load i32, i32* %11
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %76
72: ; preds = %69
%73 = load i8*, i8** %16
%74 = icmp eq i8* %73, null
br i1 %74, label %75, label %76
75: ; preds = %72
store i32 -1, i32* %6
br label %134
76: ; preds = %72, %69
%77 = load %struct.udev*, %struct.udev** %7
%78 = load i8*, i8** %13
%79 = load i8*, i8** %14
%80 = call %struct.udev_device* @udev_device_new_from_subsystem_sysname(%struct.udev* %77, i8* %78, i8* %79)
store %struct.udev_device* %80, %struct.udev_device** %15
%81 = load %struct.udev_device*, %struct.udev_device** %15
%82 = icmp eq %struct.udev_device* %81, null
br i1 %82, label %83, label %84
83: ; preds = %76
store i32 -1, i32* %6
br label %134
84: ; preds = %76
%85 = load i32, i32* %11
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %108
87: ; preds = %84
%88 = load %struct.udev_device*, %struct.udev_device** %15
%89 = load i8*, i8** %16
%90 = call i8* @udev_device_get_sysattr_value(%struct.udev_device* %88, i8* %89)
store i8* %90, i8** %17
%91 = load i8*, i8** %17
%92 = icmp ne i8* %91, null
br i1 %92, label %93, label %98
93: ; preds = %87
%94 = load i8*, i8** %9
%95 = load i8*, i8** %17
%96 = load i64, i64* %10
%97 = call i32 @util_strlcpy(i8* %94, i8* %95, i64 %96)
br label %101
98: ; preds = %87
%99 = load i8*, i8** %9
%100 = getelementptr inbounds i8, i8* %99, i64 0
store i8 0, i8* %100
br label %101
101: ; preds = %98, %93
%102 = load %struct.udev*, %struct.udev** %7
%103 = load i8*, i8** %13
%104 = load i8*, i8** %14
%105 = load i8*, i8** %16
%106 = load i8*, i8** %9
%107 = call i32 @udev_log_null(%struct.udev* %102, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %103, i8* %104, i8* %105, i8* %106)
br label %131
108: ; preds = %84
%109 = load i8*, i8** %9
%110 = load %struct.udev_device*, %struct.udev_device** %15
%111 = call i8* @udev_device_get_syspath(%struct.udev_device* %110)
%112 = load i64, i64* %10
%113 = call i32 @util_strlcpy(i8* %109, i8* %111, i64 %112)
%114 = load i8*, i8** %16
%115 = icmp ne i8* %114, null
br i1 %115, label %116, label %124
116: ; preds = %108
%117 = load i8*, i8** %9
%118 = load i64, i64* %10
%119 = call i32 @util_strlcat(i8* %117, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i64 %118)
%120 = load i8*, i8** %9
%121 = load i8*, i8** %16
%122 = load i64, i64* %10
%123 = call i32 @util_strlcat(i8* %120, i8* %121, i64 %122)
br label %124
124: ; preds = %116, %108
%125 = load %struct.udev*, %struct.udev** %7
%126 = load i8*, i8** %13
%127 = load i8*, i8** %14
%128 = load i8*, i8** %16
%129 = load i8*, i8** %9
%130 = call i32 @udev_log_null(%struct.udev* %125, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %126, i8* %127, i8* %128, i8* %129)
br label %131
131: ; preds = %124, %101
%132 = load %struct.udev_device*, %struct.udev_device** %15
%133 = call i32 @udev_device_unref(%struct.udev_device* %132)
store i32 0, i32* %6
br label %134
134: ; preds = %131, %83, %75, %48, %38, %28
%135 = load i32, i32* %6
ret i32 %135
}

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 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%8 = icmp eq i8* %1, null
%9 = select i1 %8, i8* %2, i8* %1
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 91
br i1 %11, label %12, label %52
12: ; preds = %5
%13 = call i32 @util_strlcpy(i8* %7, i8* %9, i64 1024)
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 1
%15 = call i8* @strchr(i8* %14, i8 signext 47)
%16 = icmp eq i8* %15, null
br i1 %16, label %52, label %17
17: ; preds = %12
store i8 0, i8* %15
%18 = getelementptr inbounds i8, i8* %15, i64 1
%19 = call i8* @strchr(i8* %18, i8 signext 93)
%20 = icmp eq i8* %19, null
br i1 %20, label %52, label %21
21: ; preds = %17
store i8 0, i8* %19
%22 = getelementptr inbounds i8, i8* %19, i64 1
%23 = load i8, i8* %22
%24 = icmp eq i8 %23, 47
%25 = getelementptr inbounds i8, i8* %19, i64 2
%26 = select i1 %24, i8* %25, i8* %22
%27 = load i8, i8* %26
%28 = icmp eq i8 %27, 0
%29 = select i1 %28, i8* null, i8* %26
%30 = icmp ne i32 %4, 0
%31 = select i1 %30, i1 %28, i1 false
br i1 %31, label %52, label %32
32: ; preds = %21
%33 = call %struct.udev_device* @udev_device_new_from_subsystem_sysname(%struct.udev* %0, i8* %14, i8* %18)
%34 = icmp eq %struct.udev_device* %33, null
br i1 %34, label %52, label %35
35: ; preds = %32
br i1 %30, label %36, label %42
36: ; preds = %35
%37 = call i8* @udev_device_get_sysattr_value(%struct.udev_device* %33, i8* %29)
%38 = icmp eq i8* %37, null
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = call i32 @util_strlcpy(i8* %2, i8* %37, i64 %3)
br label %48
41: ; preds = %36
store i8 0, i8* %2
br label %48
42: ; preds = %35
%43 = call i8* @udev_device_get_syspath(%struct.udev_device* %33)
%44 = call i32 @util_strlcpy(i8* %2, i8* %43, i64 %3)
br i1 %28, label %48, label %45
45: ; preds = %42
%46 = call i32 @util_strlcat(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i64 %3)
%47 = call i32 @util_strlcat(i8* %2, i8* %29, i64 %3)
br label %48
48: ; preds = %42, %45, %39, %41
%49 = phi i8* [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), %41 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), %39 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), %45 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), %42 ]
%50 = call i32 @udev_log_null(%struct.udev* %0, i8* %49, i8* %14, i8* %18, i8* %29, i8* %2)
%51 = call i32 @udev_device_unref(%struct.udev_device* %33)
br label %52
52: ; preds = %32, %21, %17, %12, %5, %48
%53 = phi i32 [ 0, %48 ], [ -1, %5 ], [ -1, %12 ], [ -1, %17 ], [ -1, %21 ], [ -1, %32 ]
ret i32 %53
}