__attribute__((always_)) void prop_inc_single(struct prop_descriptor *pd,
                                              struct prop_local_single *pl) {
  unsigned long flags;
  do {
    ({
      unsigned long __dummy;
      typeof(flags) __dummy2;
      (void)(&__dummy == &__dummy2);
      1;
    });
    do {
      (flags) = __raw_local_irq_save();
    } while (0);
    do {
    } while (0);
  } while (0);
  __prop_inc_single(pd, pl);
  do {
    ({
      unsigned long __dummy;
      typeof(flags) __dummy2;
      (void)(&__dummy == &__dummy2);
      1;
    });
    if (raw_irqs_disabled_flags(flags)) {
      raw_local_irq_restore(flags);
      do {
      } while (0);
    } else {
      do {
      } while (0);
      raw_local_irq_restore(flags);
    }
  } while (0);
}


x86 assembly (clang, -O0):
<prop_inc_single>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    $0x0,%al
call   1060 <__raw_local_irq_save@plt>
cltq
mov    %rax,-0x18(%rbp)
jmp    1169 <prop_inc_single+0x29>
jmp    116e <prop_inc_single+0x2e>
jmp    1173 <prop_inc_single+0x33>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1030 <__prop_inc_single@plt>
movl   $0x1,-0x44(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1040 <raw_irqs_disabled_flags@plt>
cmp    $0x0,%eax
je     11b2 <prop_inc_single+0x72>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1050 <raw_local_irq_restore@plt>
jmp    11ad <prop_inc_single+0x6d>
jmp    11c7 <prop_inc_single+0x87>
jmp    11b7 <prop_inc_single+0x77>
jmp    11bc <prop_inc_single+0x7c>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1050 <raw_local_irq_restore@plt>
jmp    11cc <prop_inc_single+0x8c>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prop_inc_single>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
xor    %eax,%eax
call   1060 <__raw_local_irq_save@plt>
movslq %eax,%rbx
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <__prop_inc_single@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <raw_irqs_disabled_flags@plt>
mov    %rbx,%rdi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <raw_local_irq_restore@plt>

LLVM IR (-O0):
%struct.prop_descriptor = type opaque
%struct.prop_local_single = type opaque
define void @prop_inc_single(%struct.prop_descriptor* %0, %struct.prop_local_single* %1) {
%3 = alloca %struct.prop_descriptor*
%4 = alloca %struct.prop_local_single*
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32
%9 = alloca i64
%10 = alloca i64
%11 = alloca i32
store %struct.prop_descriptor* %0, %struct.prop_descriptor** %3
store %struct.prop_local_single* %1, %struct.prop_local_single** %4
br label %12
12: ; preds = %2
%13 = icmp eq i64* %6, %7
%14 = zext i1 %13 to i32
store i32 1, i32* %8
%15 = load i32, i32* %8
br label %16
16: ; preds = %12
%17 = call i32 (...) @__raw_local_irq_save()
%18 = sext i32 %17 to i64
store i64 %18, i64* %5
br label %19
19: ; preds = %16
br label %20
20: ; preds = %19
br label %21
21: ; preds = %20
br label %22
22: ; preds = %21
%23 = load %struct.prop_descriptor*, %struct.prop_descriptor** %3
%24 = load %struct.prop_local_single*, %struct.prop_local_single** %4
%25 = call i32 (%struct.prop_descriptor*, %struct.prop_local_single*, ...) bitcast (i32 (...)* @__prop_inc_single to i32 (%struct.prop_descriptor*, %struct.prop_local_single*, ...)*)(%struct.prop_descriptor* %23, %struct.prop_local_single* %24)
br label %26
26: ; preds = %22
%27 = icmp eq i64* %9, %10
%28 = zext i1 %27 to i32
store i32 1, i32* %11
%29 = load i32, i32* %11
%30 = load i64, i64* %5
%31 = call i32 (i64, ...) bitcast (i32 (...)* @raw_irqs_disabled_flags to i32 (i64, ...)*)(i64 %30)
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %26
%34 = load i64, i64* %5
%35 = call i32 (i64, ...) bitcast (i32 (...)* @raw_local_irq_restore to i32 (i64, ...)*)(i64 %34)
br label %36
36: ; preds = %33
br label %37
37: ; preds = %36
br label %43
38: ; preds = %26
br label %39
39: ; preds = %38
br label %40
40: ; preds = %39
%41 = load i64, i64* %5
%42 = call i32 (i64, ...) bitcast (i32 (...)* @raw_local_irq_restore to i32 (i64, ...)*)(i64 %41)
br label %43
43: ; preds = %40, %37
br label %44
44: ; preds = %43
ret void
}

LLVM IR (-O2):
%struct.prop_descriptor = type opaque
%struct.prop_local_single = type opaque
define void @prop_inc_single(%struct.prop_descriptor* %0, %struct.prop_local_single* %1) {
%3 = tail call i32 (...) @__raw_local_irq_save()
%4 = sext i32 %3 to i64
%5 = tail call i32 (%struct.prop_descriptor*, %struct.prop_local_single*, ...) bitcast (i32 (...)* @__prop_inc_single to i32 (%struct.prop_descriptor*, %struct.prop_local_single*, ...)*)(%struct.prop_descriptor* %0, %struct.prop_local_single* %1)
%6 = tail call i32 (i64, ...) bitcast (i32 (...)* @raw_irqs_disabled_flags to i32 (i64, ...)*)(i64 %4)
%7 = tail call i32 (i64, ...) bitcast (i32 (...)* @raw_local_irq_restore to i32 (i64, ...)*)(i64 %4)
ret void
}