void make_space_for(buf, zenp, bun_no, bun_no2,
                    cnt) register struct wnn_buf *buf;
int bun_no, bun_no2, zenp;
int cnt;
{
  switch (zenp) {
  case 0:
    make_space_for_bun(buf, bun_no, bun_no2, cnt);
    break;
  case 1:
    make_space_for_zenkouho(buf, bun_no, bun_no2, cnt);
  }
}


x86 assembly (clang, -O0):
<make_space_for>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
test   %eax,%eax
je     115d <make_space_for+0x3d>
jmp    114c <make_space_for+0x2c>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
je     1176 <make_space_for+0x56>
jmp    118a <make_space_for+0x6a>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    $0x0,%al
call   1030 <make_space_for_bun@plt>
jmp    118a <make_space_for+0x6a>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    $0x0,%al
call   1040 <make_space_for_zenkouho@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_space_for>:
cmp    $0x1,%esi
je     1137 <make_space_for+0x17>
test   %esi,%esi
jne    1145 <make_space_for+0x25>
mov    %edx,%esi
mov    %ecx,%edx
mov    %r8d,%ecx
xor    %eax,%eax
jmp    1030 <make_space_for_bun@plt>
mov    %edx,%esi
mov    %ecx,%edx
mov    %r8d,%ecx
xor    %eax,%eax
jmp    1040 <make_space_for_zenkouho@plt>
ret

LLVM IR (-O0):
%struct.wnn_buf = type opaque
define void @make_space_for(%struct.wnn_buf* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca %struct.wnn_buf*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store %struct.wnn_buf* %0, %struct.wnn_buf** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i32, i32* %7
switch i32 %11, label %24 [
i32 0, label %12
i32 1, label %18
]
12: ; preds = %5
%13 = load %struct.wnn_buf*, %struct.wnn_buf** %6
%14 = load i32, i32* %8
%15 = load i32, i32* %9
%16 = load i32, i32* %10
%17 = call i32 (%struct.wnn_buf*, i32, i32, i32, ...) bitcast (i32 (...)* @make_space_for_bun to i32 (%struct.wnn_buf*, i32, i32, i32, ...)*)(%struct.wnn_buf* %13, i32 %14, i32 %15, i32 %16)
br label %24
18: ; preds = %5
%19 = load %struct.wnn_buf*, %struct.wnn_buf** %6
%20 = load i32, i32* %8
%21 = load i32, i32* %9
%22 = load i32, i32* %10
%23 = call i32 (%struct.wnn_buf*, i32, i32, i32, ...) bitcast (i32 (...)* @make_space_for_zenkouho to i32 (%struct.wnn_buf*, i32, i32, i32, ...)*)(%struct.wnn_buf* %19, i32 %20, i32 %21, i32 %22)
br label %24
24: ; preds = %18, %5, %12
ret void
}

LLVM IR (-O2):
%struct.wnn_buf = type opaque
define void @make_space_for(%struct.wnn_buf* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
switch i32 %1, label %10 [
i32 0, label %6
i32 1, label %8
]
6: ; preds = %5
%7 = tail call i32 (%struct.wnn_buf*, i32, i32, i32, ...) bitcast (i32 (...)* @make_space_for_bun to i32 (%struct.wnn_buf*, i32, i32, i32, ...)*)(%struct.wnn_buf* %0, i32 %2, i32 %3, i32 %4)
br label %10
8: ; preds = %5
%9 = tail call i32 (%struct.wnn_buf*, i32, i32, i32, ...) bitcast (i32 (...)* @make_space_for_zenkouho to i32 (%struct.wnn_buf*, i32, i32, i32, ...)*)(%struct.wnn_buf* %0, i32 %2, i32 %3, i32 %4)
br label %10
10: ; preds = %8, %5, %6
ret void
}