#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 */
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_4__ {
  struct TYPE_4__ *section;
  struct TYPE_4__ *value;
  struct TYPE_4__ *name;
};
typedef TYPE_1__ CONF_VALUE;

/* Variables and functions */
int /*<<< orphan*/ free(TYPE_1__ *);
void X509V3_conf_free(CONF_VALUE *conf) {
  if (!conf)
    return;
  free(conf->name);
  free(conf->value);
  free(conf->section);
  free(conf);
}


x86 assembly (clang, -O0):
<X509V3_conf_free>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    112c <X509V3_conf_free+0x1c>
jmp    115b <X509V3_conf_free+0x4b>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<X509V3_conf_free>:
test   %rdi,%rdi
je     113c <X509V3_conf_free+0x2c>
push   %rbx
mov    %rdi,%rbx
mov    0x10(%rdi),%rdi
call   1030 <free@plt>
mov    0x8(%rbx),%rdi
call   1030 <free@plt>
mov    (%rbx),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>
ret

LLVM IR (-O0):
%struct.TYPE_4__ = type { %struct.TYPE_4__*, %struct.TYPE_4__*, %struct.TYPE_4__* }
define void @X509V3_conf_free(%struct.TYPE_4__* %0) {
%2 = alloca %struct.TYPE_4__*
store %struct.TYPE_4__* %0, %struct.TYPE_4__** %2
%3 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%4 = icmp ne %struct.TYPE_4__* %3, null
br i1 %4, label %6, label %5
5: ; preds = %1
br label %21
6: ; preds = %1
%7 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%8 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %7, i32 0, i32 2
%9 = load %struct.TYPE_4__*, %struct.TYPE_4__** %8
%10 = call i32 @free(%struct.TYPE_4__* %9)
%11 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%12 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %11, i32 0, i32 1
%13 = load %struct.TYPE_4__*, %struct.TYPE_4__** %12
%14 = call i32 @free(%struct.TYPE_4__* %13)
%15 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%16 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %15, i32 0, i32 0
%17 = load %struct.TYPE_4__*, %struct.TYPE_4__** %16
%18 = call i32 @free(%struct.TYPE_4__* %17)
%19 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%20 = call i32 @free(%struct.TYPE_4__* %19)
br label %21
21: ; preds = %6, %5
ret void
}

LLVM IR (-O2):
%struct.TYPE_4__ = type { %struct.TYPE_4__*, %struct.TYPE_4__*, %struct.TYPE_4__* }
define void @X509V3_conf_free(%struct.TYPE_4__* %0) {
%2 = icmp eq %struct.TYPE_4__* %0, null
br i1 %2, label %14, label %3
3: ; preds = %1
%4 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %0, i64 0, i32 2
%5 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%6 = tail call i32 @free(%struct.TYPE_4__* %5)
%7 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %0, i64 0, i32 1
%8 = load %struct.TYPE_4__*, %struct.TYPE_4__** %7
%9 = tail call i32 @free(%struct.TYPE_4__* %8)
%10 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %0, i64 0, i32 0
%11 = load %struct.TYPE_4__*, %struct.TYPE_4__** %10
%12 = tail call i32 @free(%struct.TYPE_4__* %11)
%13 = tail call i32 @free(%struct.TYPE_4__* %0)
br label %14
14: ; preds = %1, %3
ret void
}