#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 */

/* Variables and functions */
int /*<<< orphan*/ assert(void *);
scalar_t__ isempty(char const *);
int parse_bytes(char const *, size_t *);
int config_parse_bytes(const char *filename, unsigned line, const char *section,
                       const char *lvalue, int ltype, const char *rvalue,
                       void *data) {
  size_t *ss = data;
  assert(filename);
  assert(lvalue);
  assert(rvalue);
  assert(data);
  *ss = 0;
  if (isempty(rvalue))
    return 0;
  return parse_bytes(rvalue, ss);
}


x86 assembly (clang, -O0):
<config_parse_bytes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9,-0x38(%rbp)
mov    0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <assert@plt>
mov    -0x28(%rbp),%rdi
call   1040 <assert@plt>
mov    -0x38(%rbp),%rdi
call   1040 <assert@plt>
mov    0x10(%rbp),%rdi
call   1040 <assert@plt>
mov    -0x40(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x38(%rbp),%rdi
call   1050 <isempty@plt>
cmp    $0x0,%rax
je     11a9 <config_parse_bytes+0x79>
movl   $0x0,-0x4(%rbp)
jmp    11b9 <config_parse_bytes+0x89>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1030 <parse_bytes@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<config_parse_bytes>:
push   %r15
push   %r14
push   %rbx
mov    %r9,%r14
mov    %rcx,%r15
mov    0x20(%rsp),%rbx
call   1040 <assert@plt>
mov    %r15,%rdi
call   1040 <assert@plt>
mov    %r14,%rdi
call   1040 <assert@plt>
mov    %rbx,%rdi
call   1040 <assert@plt>
movq   $0x0,(%rbx)
mov    %r14,%rdi
call   1050 <isempty@plt>
test   %rax,%rax
je     1179 <config_parse_bytes+0x49>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret
mov    %r14,%rdi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <parse_bytes@plt>

LLVM IR (-O0):
define i32 @config_parse_bytes(i8* %0, i32 %1, i8* %2, i8* %3, i32 %4, i8* %5, i8* %6) {
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i64*
store i8* %0, i8** %9
store i32 %1, i32* %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i32 %4, i32* %13
store i8* %5, i8** %14
store i8* %6, i8** %15
%17 = load i8*, i8** %15
%18 = bitcast i8* %17 to i64*
store i64* %18, i64** %16
%19 = load i8*, i8** %9
%20 = call i32 @assert(i8* %19)
%21 = load i8*, i8** %12
%22 = call i32 @assert(i8* %21)
%23 = load i8*, i8** %14
%24 = call i32 @assert(i8* %23)
%25 = load i8*, i8** %15
%26 = call i32 @assert(i8* %25)
%27 = load i64*, i64** %16
store i64 0, i64* %27
%28 = load i8*, i8** %14
%29 = call i64 @isempty(i8* %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %7
store i32 0, i32* %8
br label %36
32: ; preds = %7
%33 = load i8*, i8** %14
%34 = load i64*, i64** %16
%35 = call i32 @parse_bytes(i8* %33, i64* %34)
store i32 %35, i32* %8
br label %36
36: ; preds = %32, %31
%37 = load i32, i32* %8
ret i32 %37
}

LLVM IR (-O2):
define i32 @config_parse_bytes(i8* %0, i32 %1, i8* nocapture readnone %2, i8* %3, i32 %4, i8* %5, i8* %6) {
%8 = bitcast i8* %6 to i64*
%9 = tail call i32 @assert(i8* %0)
%10 = tail call i32 @assert(i8* %3)
%11 = tail call i32 @assert(i8* %5)
%12 = tail call i32 @assert(i8* %6)
store i64 0, i64* %8
%13 = tail call i64 @isempty(i8* %5)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %7
%16 = tail call i32 @parse_bytes(i8* %5, i64* %8)
br label %17
17: ; preds = %7, %15
%18 = phi i32 [ %16, %15 ], [ 0, %7 ]
ret i32 %18
}