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

/* Variables and functions */
int /*<<< orphan*/ DBG(int, char *);
int /*<<< orphan*/ Free_Buttons(struct st_device *);
int /*<<< orphan*/ Free_Chipset(struct st_device *);
int /*<<< orphan*/ Free_Constrains(struct st_device *);
int /*<<< orphan*/ Free_Motor(struct st_device *);
int /*<<< orphan*/ Free_MotorCurves(struct st_device *);
int /*<<< orphan*/ Free_Motormoves(struct st_device *);
int /*<<< orphan*/ Free_Scanmodes(struct st_device *);
int /*<<< orphan*/ Free_Sensor(struct st_device *);
int /*<<< orphan*/ Free_Timings(struct st_device *);
void Free_Config(struct st_device *dev) {
  DBG(0x02, "+ Free_Config\n");
  Free_Buttons(dev);
  Free_Motor(dev);
  Free_Sensor(dev);
  Free_Timings(dev);
  Free_MotorCurves(dev);
  Free_Motormoves(dev);
  Free_Scanmodes(dev);
  Free_Constrains(dev);
  Free_Chipset(dev);
  DBG(0x02, "- Free_Config\n");
}


x86 assembly (clang, -O0):
<Free_Config>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x2,%edi
lea    0xe48(%rip),%rsi
call   1060 <DBG@plt>
mov    -0x8(%rbp),%rdi
call   1080 <Free_Buttons@plt>
mov    -0x8(%rbp),%rdi
call   1070 <Free_Motor@plt>
mov    -0x8(%rbp),%rdi
call   1050 <Free_Sensor@plt>
mov    -0x8(%rbp),%rdi
call   10b0 <Free_Timings@plt>
mov    -0x8(%rbp),%rdi
call   10c0 <Free_MotorCurves@plt>
mov    -0x8(%rbp),%rdi
call   1030 <Free_Motormoves@plt>
mov    -0x8(%rbp),%rdi
call   1040 <Free_Scanmodes@plt>
mov    -0x8(%rbp),%rdi
call   10a0 <Free_Constrains@plt>
mov    -0x8(%rbp),%rdi
call   1090 <Free_Chipset@plt>
mov    $0x2,%edi
lea    0xdf5(%rip),%rsi
call   1060 <DBG@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Free_Config>:
push   %rbx
mov    %rdi,%rbx
lea    0xe55(%rip),%rsi
mov    $0x2,%edi
call   1060 <DBG@plt>
mov    %rbx,%rdi
call   1080 <Free_Buttons@plt>
mov    %rbx,%rdi
call   1070 <Free_Motor@plt>
mov    %rbx,%rdi
call   1050 <Free_Sensor@plt>
mov    %rbx,%rdi
call   10b0 <Free_Timings@plt>
mov    %rbx,%rdi
call   10c0 <Free_MotorCurves@plt>
mov    %rbx,%rdi
call   1030 <Free_Motormoves@plt>
mov    %rbx,%rdi
call   1040 <Free_Scanmodes@plt>
mov    %rbx,%rdi
call   10a0 <Free_Constrains@plt>
mov    %rbx,%rdi
call   1090 <Free_Chipset@plt>
lea    0xe0b(%rip),%rsi
mov    $0x2,%edi
pop    %rbx
jmp    1060 <DBG@plt>

LLVM IR (-O0):
%struct.st_device = type { i32 }
@.str = [15 x i8] c"+ Free_Config\0A\00"
@.str.1 = [15 x i8] c"- Free_Config\0A\00"
define void @Free_Config(%struct.st_device* %0) {
%2 = alloca %struct.st_device*
store %struct.st_device* %0, %struct.st_device** %2
%3 = call i32 @DBG(i32 2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%4 = load %struct.st_device*, %struct.st_device** %2
%5 = call i32 @Free_Buttons(%struct.st_device* %4)
%6 = load %struct.st_device*, %struct.st_device** %2
%7 = call i32 @Free_Motor(%struct.st_device* %6)
%8 = load %struct.st_device*, %struct.st_device** %2
%9 = call i32 @Free_Sensor(%struct.st_device* %8)
%10 = load %struct.st_device*, %struct.st_device** %2
%11 = call i32 @Free_Timings(%struct.st_device* %10)
%12 = load %struct.st_device*, %struct.st_device** %2
%13 = call i32 @Free_MotorCurves(%struct.st_device* %12)
%14 = load %struct.st_device*, %struct.st_device** %2
%15 = call i32 @Free_Motormoves(%struct.st_device* %14)
%16 = load %struct.st_device*, %struct.st_device** %2
%17 = call i32 @Free_Scanmodes(%struct.st_device* %16)
%18 = load %struct.st_device*, %struct.st_device** %2
%19 = call i32 @Free_Constrains(%struct.st_device* %18)
%20 = load %struct.st_device*, %struct.st_device** %2
%21 = call i32 @Free_Chipset(%struct.st_device* %20)
%22 = call i32 @DBG(i32 2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.st_device = type { i32 }
@.str = [15 x i8] c"+ Free_Config\0A\00"
@.str.1 = [15 x i8] c"- Free_Config\0A\00"
define void @Free_Config(%struct.st_device* %0) {
%2 = tail call i32 @DBG(i32 2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @Free_Buttons(%struct.st_device* %0)
%4 = tail call i32 @Free_Motor(%struct.st_device* %0)
%5 = tail call i32 @Free_Sensor(%struct.st_device* %0)
%6 = tail call i32 @Free_Timings(%struct.st_device* %0)
%7 = tail call i32 @Free_MotorCurves(%struct.st_device* %0)
%8 = tail call i32 @Free_Motormoves(%struct.st_device* %0)
%9 = tail call i32 @Free_Scanmodes(%struct.st_device* %0)
%10 = tail call i32 @Free_Constrains(%struct.st_device* %0)
%11 = tail call i32 @Free_Chipset(%struct.st_device* %0)
%12 = tail call i32 @DBG(i32 2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
ret void
}