#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 */
float dcn_bw_max2(float, float);
float dcn_bw_max3(float, float, float);
float dcn_bw_max5(float v1, float v2, float v3, float v4, float v5) {
  return dcn_bw_max3(v1, v2, v3) > dcn_bw_max2(v4, v5) ? dcn_bw_max3(v1, v2, v3)
                                                       : dcn_bw_max2(v4, v5);
}


x86 assembly (clang, -O0):
<dcn_bw_max5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
call   1040 <dcn_bw_max3@plt>
movss  %xmm0,-0x18(%rbp)
movss  -0x10(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
call   1030 <dcn_bw_max2@plt>
movaps %xmm0,%xmm1
movss  -0x18(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1198 <dcn_bw_max5+0x78>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
call   1040 <dcn_bw_max3@plt>
movss  %xmm0,-0x1c(%rbp)
jmp    11ac <dcn_bw_max5+0x8c>
movss  -0x10(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
call   1030 <dcn_bw_max2@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dcn_bw_max5>:
sub    $0x18,%rsp
movss  %xmm4,0x4(%rsp)
movss  %xmm3,(%rsp)
movss  %xmm0,0x8(%rsp)
movss  %xmm1,0xc(%rsp)
movss  %xmm2,0x10(%rsp)
call   1040 <dcn_bw_max3@plt>
movss  %xmm0,0x14(%rsp)
movss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
call   1030 <dcn_bw_max2@plt>
movss  0x14(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jbe    1182 <dcn_bw_max5+0x62>
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
add    $0x18,%rsp
jmp    1040 <dcn_bw_max3@plt>
movss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
add    $0x18,%rsp
jmp    1030 <dcn_bw_max2@plt>

LLVM IR (-O0):
define float @dcn_bw_max5(float %0, float %1, float %2, float %3, float %4) {
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
store float %0, float* %6
store float %1, float* %7
store float %2, float* %8
store float %3, float* %9
store float %4, float* %10
%11 = load float, float* %6
%12 = load float, float* %7
%13 = load float, float* %8
%14 = call float @dcn_bw_max3(float %11, float %12, float %13)
%15 = load float, float* %9
%16 = load float, float* %10
%17 = call float @dcn_bw_max2(float %15, float %16)
%18 = fcmp ogt float %14, %17
br i1 %18, label %19, label %24
19: ; preds = %5
%20 = load float, float* %6
%21 = load float, float* %7
%22 = load float, float* %8
%23 = call float @dcn_bw_max3(float %20, float %21, float %22)
br label %28
24: ; preds = %5
%25 = load float, float* %9
%26 = load float, float* %10
%27 = call float @dcn_bw_max2(float %25, float %26)
br label %28
28: ; preds = %24, %19
%29 = phi float [ %23, %19 ], [ %27, %24 ]
ret float %29
}

LLVM IR (-O2):
define float @dcn_bw_max5(float %0, float %1, float %2, float %3, float %4) {
%6 = tail call float @dcn_bw_max3(float %0, float %1, float %2)
%7 = tail call float @dcn_bw_max2(float %3, float %4)
%8 = fcmp ogt float %6, %7
br i1 %8, label %9, label %11
9: ; preds = %5
%10 = tail call float @dcn_bw_max3(float %0, float %1, float %2)
br label %13
11: ; preds = %5
%12 = tail call float @dcn_bw_max2(float %3, float %4)
br label %13
13: ; preds = %11, %9
%14 = phi float [ %10, %9 ], [ %12, %11 ]
ret float %14
}