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

/* Variables and functions */
int /*<<< orphan*/ sfree(int *);
void free_klv(struct bilist **lbuckets, struct bilist **rbuckets,
              struct bilist *llistspace, struct bilist *rlistspace, int *ldvals,
              int *rdvals) {
  sfree(rlistspace);
  sfree(llistspace);
  sfree(rdvals);
  sfree(ldvals);
  sfree(rbuckets);
  sfree(lbuckets);
}


x86 assembly (clang, -O0):
<free_klv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <sfree@plt>
mov    -0x18(%rbp),%rdi
call   1030 <sfree@plt>
mov    -0x30(%rbp),%rdi
call   1030 <sfree@plt>
mov    -0x28(%rbp),%rdi
call   1030 <sfree@plt>
mov    -0x10(%rbp),%rdi
call   1030 <sfree@plt>
mov    -0x8(%rbp),%rdi
call   1030 <sfree@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_klv>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r9,%r15
mov    %r8,%r14
mov    %rdx,%rbx
mov    %rsi,%r12
mov    %rdi,%r13
mov    %rcx,%rdi
call   1030 <sfree@plt>
mov    %rbx,%rdi
call   1030 <sfree@plt>
mov    %r15,%rdi
call   1030 <sfree@plt>
mov    %r14,%rdi
call   1030 <sfree@plt>
mov    %r12,%rdi
call   1030 <sfree@plt>
mov    %r13,%rdi
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <sfree@plt>

LLVM IR (-O0):
%struct.bilist = type opaque
define void @free_klv(%struct.bilist** %0, %struct.bilist** %1, %struct.bilist* %2, %struct.bilist* %3, i32* %4, i32* %5) {
%7 = alloca %struct.bilist**
%8 = alloca %struct.bilist**
%9 = alloca %struct.bilist*
%10 = alloca %struct.bilist*
%11 = alloca i32*
%12 = alloca i32*
store %struct.bilist** %0, %struct.bilist*** %7
store %struct.bilist** %1, %struct.bilist*** %8
store %struct.bilist* %2, %struct.bilist** %9
store %struct.bilist* %3, %struct.bilist** %10
store i32* %4, i32** %11
store i32* %5, i32** %12
%13 = load %struct.bilist*, %struct.bilist** %10
%14 = bitcast %struct.bilist* %13 to i32*
%15 = call i32 @sfree(i32* %14)
%16 = load %struct.bilist*, %struct.bilist** %9
%17 = bitcast %struct.bilist* %16 to i32*
%18 = call i32 @sfree(i32* %17)
%19 = load i32*, i32** %12
%20 = call i32 @sfree(i32* %19)
%21 = load i32*, i32** %11
%22 = call i32 @sfree(i32* %21)
%23 = load %struct.bilist**, %struct.bilist*** %8
%24 = bitcast %struct.bilist** %23 to i32*
%25 = call i32 @sfree(i32* %24)
%26 = load %struct.bilist**, %struct.bilist*** %7
%27 = bitcast %struct.bilist** %26 to i32*
%28 = call i32 @sfree(i32* %27)
ret void
}

LLVM IR (-O2):
%struct.bilist = type opaque
define void @free_klv(%struct.bilist** %0, %struct.bilist** %1, %struct.bilist* %2, %struct.bilist* %3, i32* %4, i32* %5) {
%7 = bitcast %struct.bilist* %3 to i32*
%8 = tail call i32 @sfree(i32* %7)
%9 = bitcast %struct.bilist* %2 to i32*
%10 = tail call i32 @sfree(i32* %9)
%11 = tail call i32 @sfree(i32* %5)
%12 = tail call i32 @sfree(i32* %4)
%13 = bitcast %struct.bilist** %1 to i32*
%14 = tail call i32 @sfree(i32* %13)
%15 = bitcast %struct.bilist** %0 to i32*
%16 = tail call i32 @sfree(i32* %15)
ret void
}