#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 uwsgi_stats {
  int dummy;
};

/* Variables and functions */
int uwsgi_stats_comma(struct uwsgi_stats *);
int uwsgi_stats_keyvalnum(struct uwsgi_stats *, char *, char *,
                          unsigned long long);
int uwsgi_stats_keyvalnum_comma(struct uwsgi_stats *us, char *key, char *value,
                                unsigned long long num) {
  int ret = uwsgi_stats_keyvalnum(us, key, value, num);
  if (ret)
    return -1;
  return uwsgi_stats_comma(us);
}


x86 assembly (clang, -O0):
<uwsgi_stats_keyvalnum_comma>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
call   1030 <uwsgi_stats_keyvalnum@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1166 <uwsgi_stats_keyvalnum_comma+0x46>
movl   $0xffffffff,-0x4(%rbp)
jmp    1172 <uwsgi_stats_keyvalnum_comma+0x52>
mov    -0x10(%rbp),%rdi
call   1040 <uwsgi_stats_comma@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uwsgi_stats_keyvalnum_comma>:
push   %rbx
mov    %rdi,%rbx
call   1030 <uwsgi_stats_keyvalnum@plt>
test   %eax,%eax
je     1134 <uwsgi_stats_keyvalnum_comma+0x14>
mov    $0xffffffff,%eax
pop    %rbx
ret
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <uwsgi_stats_comma@plt>

LLVM IR (-O0):
%struct.uwsgi_stats = type { i32 }
define i32 @uwsgi_stats_keyvalnum_comma(%struct.uwsgi_stats* %0, i8* %1, i8* %2, i64 %3) {
%5 = alloca i32
%6 = alloca %struct.uwsgi_stats*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i32
store %struct.uwsgi_stats* %0, %struct.uwsgi_stats** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i64 %3, i64* %9
%11 = load %struct.uwsgi_stats*, %struct.uwsgi_stats** %6
%12 = load i8*, i8** %7
%13 = load i8*, i8** %8
%14 = load i64, i64* %9
%15 = call i32 @uwsgi_stats_keyvalnum(%struct.uwsgi_stats* %11, i8* %12, i8* %13, i64 %14)
store i32 %15, i32* %10
%16 = load i32, i32* %10
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %4
store i32 -1, i32* %5
br label %22
19: ; preds = %4
%20 = load %struct.uwsgi_stats*, %struct.uwsgi_stats** %6
%21 = call i32 @uwsgi_stats_comma(%struct.uwsgi_stats* %20)
store i32 %21, i32* %5
br label %22
22: ; preds = %19, %18
%23 = load i32, i32* %5
ret i32 %23
}

LLVM IR (-O2):
%struct.uwsgi_stats = type { i32 }
define i32 @uwsgi_stats_keyvalnum_comma(%struct.uwsgi_stats* %0, i8* %1, i8* %2, i64 %3) {
%5 = tail call i32 @uwsgi_stats_keyvalnum(%struct.uwsgi_stats* %0, i8* %1, i8* %2, i64 %3)
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %4
%8 = tail call i32 @uwsgi_stats_comma(%struct.uwsgi_stats* %0)
br label %9
9: ; preds = %4, %7
%10 = phi i32 [ %8, %7 ], [ -1, %4 ]
ret i32 %10
}