#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*/ ASIC_DMA_DisableChannel(int);
void ASIC_DMA_DisableChannels(unsigned char Data) {
  if ((Data & 0x01) == 0) {
    ASIC_DMA_DisableChannel(0);
  }
  if ((Data & 0x02) == 0) {
    ASIC_DMA_DisableChannel(1);
  }
  if ((Data & 0x04) == 0) {
    ASIC_DMA_DisableChannel(2);
  }
}


x86 assembly (clang, -O0):
<ASIC_DMA_DisableChannels>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
jne    1135 <ASIC_DMA_DisableChannels+0x25>
xor    %edi,%edi
call   1030 <ASIC_DMA_DisableChannel@plt>
movzbl -0x1(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
jne    114f <ASIC_DMA_DisableChannels+0x3f>
mov    $0x1,%edi
call   1030 <ASIC_DMA_DisableChannel@plt>
movzbl -0x1(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
jne    1169 <ASIC_DMA_DisableChannels+0x59>
mov    $0x2,%edi
call   1030 <ASIC_DMA_DisableChannel@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ASIC_DMA_DisableChannels>:
push   %rbx
mov    %edi,%ebx
test   $0x1,%bl
je     112d <ASIC_DMA_DisableChannels+0x1d>
test   $0x2,%bl
je     1139 <ASIC_DMA_DisableChannels+0x29>
test   $0x4,%bl
jne    1148 <ASIC_DMA_DisableChannels+0x38>
mov    $0x2,%edi
pop    %rbx
jmp    1030 <ASIC_DMA_DisableChannel@plt>
xor    %edi,%edi
call   1030 <ASIC_DMA_DisableChannel@plt>
test   $0x2,%bl
jne    111d <ASIC_DMA_DisableChannels+0xd>
mov    $0x1,%edi
call   1030 <ASIC_DMA_DisableChannel@plt>
test   $0x4,%bl
je     1122 <ASIC_DMA_DisableChannels+0x12>
pop    %rbx
ret

LLVM IR (-O0):
define void @ASIC_DMA_DisableChannels(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = and i32 %4, 1
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @ASIC_DMA_DisableChannel(i32 0)
br label %9
9: ; preds = %7, %1
%10 = load i8, i8* %2
%11 = zext i8 %10 to i32
%12 = and i32 %11, 2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %9
%15 = call i32 @ASIC_DMA_DisableChannel(i32 1)
br label %16
16: ; preds = %14, %9
%17 = load i8, i8* %2
%18 = zext i8 %17 to i32
%19 = and i32 %18, 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 @ASIC_DMA_DisableChannel(i32 2)
br label %23
23: ; preds = %21, %16
ret void
}

LLVM IR (-O2):
define void @ASIC_DMA_DisableChannels(i8 zeroext %0) {
%2 = zext i8 %0 to i32
%3 = and i32 %2, 1
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @ASIC_DMA_DisableChannel(i32 0)
br label %7
7: ; preds = %5, %1
%8 = and i32 %2, 2
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = tail call i32 @ASIC_DMA_DisableChannel(i32 1)
br label %12
12: ; preds = %10, %7
%13 = and i32 %2, 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = tail call i32 @ASIC_DMA_DisableChannel(i32 2)
br label %17
17: ; preds = %15, %12
ret void
}