#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 pmd_part {
  int dummy;
};
struct fmdriver_work {
  int dummy;
};
struct driver_pmd {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ pmd_cmdcb_lfo_waveform(struct fmdriver_work *,
                                          struct driver_pmd *,
                                          struct pmd_part *);
int /*<<< orphan*/ pmd_part_lfo_flip(struct pmd_part *);
void pmd_cmdbc_lfo2_waveform(struct fmdriver_work *work, struct driver_pmd *pmd,
                             struct pmd_part *part) {
  pmd_part_lfo_flip(part);
  pmd_cmdcb_lfo_waveform(work, pmd, part);
  pmd_part_lfo_flip(part);
}


x86 assembly (clang, -O0):
<pmd_cmdbc_lfo2_waveform>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <pmd_part_lfo_flip@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <pmd_cmdcb_lfo_waveform@plt>
mov    -0x18(%rbp),%rdi
call   1030 <pmd_part_lfo_flip@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pmd_cmdbc_lfo2_waveform>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    %rdx,%rdi
call   1030 <pmd_part_lfo_flip@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <pmd_cmdcb_lfo_waveform@plt>
mov    %rbx,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <pmd_part_lfo_flip@plt>

LLVM IR (-O0):
%struct.fmdriver_work = type { i32 }
%struct.driver_pmd = type { i32 }
%struct.pmd_part = type { i32 }
define void @pmd_cmdbc_lfo2_waveform(%struct.fmdriver_work* %0, %struct.driver_pmd* %1, %struct.pmd_part* %2) {
%4 = alloca %struct.fmdriver_work*
%5 = alloca %struct.driver_pmd*
%6 = alloca %struct.pmd_part*
store %struct.fmdriver_work* %0, %struct.fmdriver_work** %4
store %struct.driver_pmd* %1, %struct.driver_pmd** %5
store %struct.pmd_part* %2, %struct.pmd_part** %6
%7 = load %struct.pmd_part*, %struct.pmd_part** %6
%8 = call i32 @pmd_part_lfo_flip(%struct.pmd_part* %7)
%9 = load %struct.fmdriver_work*, %struct.fmdriver_work** %4
%10 = load %struct.driver_pmd*, %struct.driver_pmd** %5
%11 = load %struct.pmd_part*, %struct.pmd_part** %6
%12 = call i32 @pmd_cmdcb_lfo_waveform(%struct.fmdriver_work* %9, %struct.driver_pmd* %10, %struct.pmd_part* %11)
%13 = load %struct.pmd_part*, %struct.pmd_part** %6
%14 = call i32 @pmd_part_lfo_flip(%struct.pmd_part* %13)
ret void
}

LLVM IR (-O2):
%struct.fmdriver_work = type { i32 }
%struct.driver_pmd = type { i32 }
%struct.pmd_part = type { i32 }
define void @pmd_cmdbc_lfo2_waveform(%struct.fmdriver_work* %0, %struct.driver_pmd* %1, %struct.pmd_part* %2) {
%4 = tail call i32 @pmd_part_lfo_flip(%struct.pmd_part* %2)
%5 = tail call i32 @pmd_cmdcb_lfo_waveform(%struct.fmdriver_work* %0, %struct.driver_pmd* %1, %struct.pmd_part* %2)
%6 = tail call i32 @pmd_part_lfo_flip(%struct.pmd_part* %2)
ret void
}