#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*/ M_DRV_I2C_Read(int, int, unsigned char *, int);
int /*<<< orphan*/ M_DRV_I2C_Write(int, int, unsigned char *, int);
int _M_DRV_MC3610_SetBusIF(void) {
  unsigned char _bRegSNIFFTH_C = 0;
  unsigned char _bRegIO_C = 0;
  M_DRV_I2C_Read((((0x4C) << 1) | 0x01), (0x13), &_bRegSNIFFTH_C, 1);
  M_DRV_I2C_Read((((0x4C) << 1) | 0x01), (0x14), &_bRegIO_C, 1);
  _bRegSNIFFTH_C |= 0x80;
  _bRegIO_C &= 0x7F;
  M_DRV_I2C_Write((((0x4C) << 1) | 0x00), (0x13), &_bRegSNIFFTH_C, 1);
  M_DRV_I2C_Write((((0x4C) << 1) | 0x00), (0x14), &_bRegIO_C, 1);
  return ((0));
}


x86 assembly (clang, -O0):
<_M_DRV_MC3610_SetBusIF>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x0,-0x1(%rbp)
movb   $0x0,-0x2(%rbp)
mov    $0x99,%edi
mov    $0x13,%esi
lea    -0x1(%rbp),%rdx
mov    $0x1,%ecx
call   1030 <M_DRV_I2C_Read@plt>
mov    $0x99,%edi
mov    $0x14,%esi
lea    -0x2(%rbp),%rdx
mov    $0x1,%ecx
call   1030 <M_DRV_I2C_Read@plt>
movzbl -0x1(%rbp),%eax
or     $0x80,%eax
mov    %al,-0x1(%rbp)
movzbl -0x2(%rbp),%eax
and    $0x7f,%eax
mov    %al,-0x2(%rbp)
mov    $0x98,%edi
mov    $0x13,%esi
lea    -0x1(%rbp),%rdx
mov    $0x1,%ecx
call   1040 <M_DRV_I2C_Write@plt>
mov    $0x98,%edi
mov    $0x14,%esi
lea    -0x2(%rbp),%rdx
mov    $0x1,%ecx
call   1040 <M_DRV_I2C_Write@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_M_DRV_MC3610_SetBusIF>:
push   %r14
push   %rbx
push   %rax
movb   $0x0,0x7(%rsp)
movb   $0x0,0x6(%rsp)
lea    0x7(%rsp),%r14
mov    $0x99,%edi
mov    $0x13,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
call   1030 <M_DRV_I2C_Read@plt>
lea    0x6(%rsp),%rbx
mov    $0x99,%edi
mov    $0x14,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1030 <M_DRV_I2C_Read@plt>
orb    $0x80,0x7(%rsp)
andb   $0x7f,0x6(%rsp)
mov    $0x98,%edi
mov    $0x13,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
call   1040 <M_DRV_I2C_Write@plt>
mov    $0x98,%edi
mov    $0x14,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1040 <M_DRV_I2C_Write@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @_M_DRV_MC3610_SetBusIF() {
%1 = alloca i8
%2 = alloca i8
store i8 0, i8* %1
store i8 0, i8* %2
%3 = call i32 @M_DRV_I2C_Read(i32 153, i32 19, i8* %1, i32 1)
%4 = call i32 @M_DRV_I2C_Read(i32 153, i32 20, i8* %2, i32 1)
%5 = load i8, i8* %1
%6 = zext i8 %5 to i32
%7 = or i32 %6, 128
%8 = trunc i32 %7 to i8
store i8 %8, i8* %1
%9 = load i8, i8* %2
%10 = zext i8 %9 to i32
%11 = and i32 %10, 127
%12 = trunc i32 %11 to i8
store i8 %12, i8* %2
%13 = call i32 @M_DRV_I2C_Write(i32 152, i32 19, i8* %1, i32 1)
%14 = call i32 @M_DRV_I2C_Write(i32 152, i32 20, i8* %2, i32 1)
ret i32 0
}

LLVM IR (-O2):
define i32 @_M_DRV_MC3610_SetBusIF() {
%1 = alloca i8
%2 = alloca i8
store i8 0, i8* %1
store i8 0, i8* %2
%3 = call i32 @M_DRV_I2C_Read(i32 153, i32 19, i8* %1, i32 1)
%4 = call i32 @M_DRV_I2C_Read(i32 153, i32 20, i8* %2, i32 1)
%5 = load i8, i8* %1
%6 = or i8 %5, -128
store i8 %6, i8* %1
%7 = load i8, i8* %2
%8 = and i8 %7, 127
store i8 %8, i8* %2
%9 = call i32 @M_DRV_I2C_Write(i32 152, i32 19, i8* %1, i32 1)
%10 = call i32 @M_DRV_I2C_Write(i32 152, i32 20, i8* %2, i32 1)
ret i32 0
}