#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 */
int /*<<< orphan*/ ResetAllTachoCounts(unsigned char);
int /*<<< orphan*/ ResetBlockAndTachoCount(unsigned char);
int /*<<< orphan*/ ResetBlockTachoCount(unsigned char);
int /*<<< orphan*/ ResetRotationCount(unsigned char);
int /*<<< orphan*/ ResetTachoCount(unsigned char);
void ResetCount(unsigned char Outputs, unsigned char reset) {
  switch (reset) {
  case 0x08:
    ResetTachoCount(Outputs);
    return;
  case 0x20:
    ResetBlockTachoCount(Outputs);
    return;
  case 0x40:
    ResetRotationCount(Outputs);
    return;
  case 0x28:
    ResetBlockAndTachoCount(Outputs);
    return;
  case 0x68:
    ResetAllTachoCounts(Outputs);
    return;
  }
}


x86 assembly (clang, -O0):
<ResetCount>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movzbl -0x2(%rbp),%eax
mov    %eax,-0x8(%rbp)
sub    $0x8,%eax
je     11bd <ResetCount+0x6d>
jmp    1179 <ResetCount+0x29>
mov    -0x8(%rbp),%eax
sub    $0x20,%eax
je     11cb <ResetCount+0x7b>
jmp    118a <ResetCount+0x3a>
mov    -0x8(%rbp),%eax
sub    $0x28,%eax
je     11e7 <ResetCount+0x97>
jmp    119b <ResetCount+0x4b>
mov    -0x8(%rbp),%eax
sub    $0x40,%eax
je     11d9 <ResetCount+0x89>
jmp    11ac <ResetCount+0x5c>
mov    -0x8(%rbp),%eax
sub    $0x68,%eax
je     11f5 <ResetCount+0xa5>
jmp    11fe <ResetCount+0xae>
movzbl -0x1(%rbp),%edi
call   1050 <ResetTachoCount@plt>
jmp    11fe <ResetCount+0xae>
movzbl -0x1(%rbp),%edi
call   1070 <ResetBlockTachoCount@plt>
jmp    11fe <ResetCount+0xae>
movzbl -0x1(%rbp),%edi
call   1060 <ResetRotationCount@plt>
jmp    11fe <ResetCount+0xae>
movzbl -0x1(%rbp),%edi
call   1040 <ResetBlockAndTachoCount@plt>
jmp    11fe <ResetCount+0xae>
movzbl -0x1(%rbp),%edi
call   1030 <ResetAllTachoCounts@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ResetCount>:
cmp    $0x27,%sil
jle    1171 <ResetCount+0x21>
cmp    $0x28,%sil
je     1186 <ResetCount+0x36>
cmp    $0x40,%sil
je     118f <ResetCount+0x3f>
cmp    $0x68,%sil
jne    11a1 <ResetCount+0x51>
movzbl %dil,%edi
jmp    1030 <ResetAllTachoCounts@plt>
cmp    $0x8,%sil
je     1198 <ResetCount+0x48>
cmp    $0x20,%sil
jne    11a1 <ResetCount+0x51>
movzbl %dil,%edi
jmp    1070 <ResetBlockTachoCount@plt>
movzbl %dil,%edi
jmp    1040 <ResetBlockAndTachoCount@plt>
movzbl %dil,%edi
jmp    1060 <ResetRotationCount@plt>
movzbl %dil,%edi
jmp    1050 <ResetTachoCount@plt>
ret

LLVM IR (-O0):
define void @ResetCount(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
switch i32 %6, label %22 [
i32 8, label %7
i32 32, label %10
i32 64, label %13
i32 40, label %16
i32 104, label %19
]
7: ; preds = %2
%8 = load i8, i8* %3
%9 = call i32 @ResetTachoCount(i8 zeroext %8)
br label %22
10: ; preds = %2
%11 = load i8, i8* %3
%12 = call i32 @ResetBlockTachoCount(i8 zeroext %11)
br label %22
13: ; preds = %2
%14 = load i8, i8* %3
%15 = call i32 @ResetRotationCount(i8 zeroext %14)
br label %22
16: ; preds = %2
%17 = load i8, i8* %3
%18 = call i32 @ResetBlockAndTachoCount(i8 zeroext %17)
br label %22
19: ; preds = %2
%20 = load i8, i8* %3
%21 = call i32 @ResetAllTachoCounts(i8 zeroext %20)
br label %22
22: ; preds = %7, %10, %13, %16, %19, %2
ret void
}

LLVM IR (-O2):
define void @ResetCount(i8 zeroext %0, i8 zeroext %1) {
switch i8 %1, label %13 [
i8 8, label %3
i8 32, label %5
i8 64, label %7
i8 40, label %9
i8 104, label %11
]
3: ; preds = %2
%4 = tail call i32 @ResetTachoCount(i8 zeroext %0)
br label %13
5: ; preds = %2
%6 = tail call i32 @ResetBlockTachoCount(i8 zeroext %0)
br label %13
7: ; preds = %2
%8 = tail call i32 @ResetRotationCount(i8 zeroext %0)
br label %13
9: ; preds = %2
%10 = tail call i32 @ResetBlockAndTachoCount(i8 zeroext %0)
br label %13
11: ; preds = %2
%12 = tail call i32 @ResetAllTachoCounts(i8 zeroext %0)
br label %13
13: ; preds = %3, %5, %7, %9, %11, %2
ret void
}