#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_Write(int, int, unsigned char *, int);
int /*<<< orphan*/ _M_DRV_MC3610_Delay(int);
int /*<<< orphan*/ _M_DRV_MC3610_SetBusIF();
void _M_DRV_MC3610_ResetChip(void) {
  unsigned char _bRegData = 0x01;
  M_DRV_I2C_Write((((0x4C) << 1) | 0x00), 0x10, &_bRegData, 1);
  _M_DRV_MC3610_Delay(10);
  _bRegData = 0x40;
  M_DRV_I2C_Write((((0x4C) << 1) | 0x00), 0x24, &_bRegData, 1);
  _M_DRV_MC3610_Delay(50);
  _M_DRV_MC3610_SetBusIF();
  _bRegData = 0x01;
  M_DRV_I2C_Write((((0x4C) << 1) | 0x00), 0x10, &_bRegData, 1);
  _M_DRV_MC3610_Delay(10);
}


x86 assembly (clang, -O0):
<_M_DRV_MC3610_ResetChip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x1,-0x1(%rbp)
mov    $0x98,%edi
mov    $0x10,%esi
lea    -0x1(%rbp),%rdx
mov    $0x1,%ecx
call   1050 <M_DRV_I2C_Write@plt>
mov    $0xa,%edi
call   1030 <_M_DRV_MC3610_Delay@plt>
movb   $0x40,-0x1(%rbp)
mov    $0x98,%edi
mov    $0x24,%esi
lea    -0x1(%rbp),%rdx
mov    $0x1,%ecx
call   1050 <M_DRV_I2C_Write@plt>
mov    $0x32,%edi
call   1030 <_M_DRV_MC3610_Delay@plt>
mov    $0x0,%al
call   1040 <_M_DRV_MC3610_SetBusIF@plt>
movb   $0x1,-0x1(%rbp)
mov    $0x98,%edi
mov    $0x10,%esi
lea    -0x1(%rbp),%rdx
mov    $0x1,%ecx
call   1050 <M_DRV_I2C_Write@plt>
mov    $0xa,%edi
call   1030 <_M_DRV_MC3610_Delay@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_M_DRV_MC3610_ResetChip>:
push   %rbx
sub    $0x10,%rsp
movb   $0x1,0xf(%rsp)
lea    0xf(%rsp),%rbx
mov    $0x98,%edi
mov    $0x10,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1050 <M_DRV_I2C_Write@plt>
mov    $0xa,%edi
call   1030 <_M_DRV_MC3610_Delay@plt>
movb   $0x40,0xf(%rsp)
mov    $0x98,%edi
mov    $0x24,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1050 <M_DRV_I2C_Write@plt>
mov    $0x32,%edi
call   1030 <_M_DRV_MC3610_Delay@plt>
xor    %eax,%eax
call   1040 <_M_DRV_MC3610_SetBusIF@plt>
movb   $0x1,0xf(%rsp)
mov    $0x98,%edi
mov    $0x10,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1050 <M_DRV_I2C_Write@plt>
mov    $0xa,%edi
call   1030 <_M_DRV_MC3610_Delay@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @_M_DRV_MC3610_ResetChip() {
%1 = alloca i8
store i8 1, i8* %1
%2 = call i32 @M_DRV_I2C_Write(i32 152, i32 16, i8* %1, i32 1)
%3 = call i32 @_M_DRV_MC3610_Delay(i32 10)
store i8 64, i8* %1
%4 = call i32 @M_DRV_I2C_Write(i32 152, i32 36, i8* %1, i32 1)
%5 = call i32 @_M_DRV_MC3610_Delay(i32 50)
%6 = call i32 (...) @_M_DRV_MC3610_SetBusIF()
store i8 1, i8* %1
%7 = call i32 @M_DRV_I2C_Write(i32 152, i32 16, i8* %1, i32 1)
%8 = call i32 @_M_DRV_MC3610_Delay(i32 10)
ret void
}

LLVM IR (-O2):
define void @_M_DRV_MC3610_ResetChip() {
%1 = alloca i8
store i8 1, i8* %1
%2 = call i32 @M_DRV_I2C_Write(i32 152, i32 16, i8* %1, i32 1)
%3 = call i32 @_M_DRV_MC3610_Delay(i32 10)
store i8 64, i8* %1
%4 = call i32 @M_DRV_I2C_Write(i32 152, i32 36, i8* %1, i32 1)
%5 = call i32 @_M_DRV_MC3610_Delay(i32 50)
%6 = call i32 (...) @_M_DRV_MC3610_SetBusIF()
store i8 1, i8* %1
%7 = call i32 @M_DRV_I2C_Write(i32 152, i32 16, i8* %1, i32 1)
%8 = call i32 @_M_DRV_MC3610_Delay(i32 10)
ret void
}