#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*/ USART_transmit_byte(int);
int read_byte_from_slave(int, int);
void send_MPU6050_data() {
  int j;
  int data;
  for (j = 0; j < 1; j++) {
    int address = 0x3B;
    int i;
    for (i = 0; i < 14; i++) {
      data = read_byte_from_slave(0x68, address);
      address += 1;
      USART_transmit_byte(data);
    }
  }
}


x86 assembly (clang, -O0):
<send_MPU6050_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x1,-0x4(%rbp)
jge    1193 <send_MPU6050_data+0x73>
movl   $0x3b,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0xe,-0x10(%rbp)
jge    1180 <send_MPU6050_data+0x60>
mov    -0xc(%rbp),%esi
mov    $0x68,%edi
call   1030 <read_byte_from_slave@plt>
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <USART_transmit_byte@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1147 <send_MPU6050_data+0x27>
jmp    1185 <send_MPU6050_data+0x65>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <send_MPU6050_data+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_MPU6050_data>:
push   %rax
mov    $0x68,%edi
mov    $0x3b,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x3c,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x3d,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x3e,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x3f,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x40,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x41,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x42,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x43,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x44,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x45,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x46,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x47,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
call   1040 <USART_transmit_byte@plt>
mov    $0x68,%edi
mov    $0x48,%esi
call   1030 <read_byte_from_slave@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <USART_transmit_byte@plt>

LLVM IR (-O0):
define void @send_MPU6050_data() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
br label %5
5: ; preds = %23, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 1
br i1 %7, label %8, label %26
8: ; preds = %5
store i32 59, i32* %3
store i32 0, i32* %4
br label %9
9: ; preds = %19, %8
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 14
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = load i32, i32* %3
%14 = call i32 @read_byte_from_slave(i32 104, i32 %13)
store i32 %14, i32* %2
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 1
store i32 %16, i32* %3
%17 = load i32, i32* %2
%18 = call i32 @USART_transmit_byte(i32 %17)
br label %19
19: ; preds = %12
%20 = load i32, i32* %4
%21 = add nsw i32 %20, 1
store i32 %21, i32* %4
br label %9
22: ; preds = %9
br label %23
23: ; preds = %22
%24 = load i32, i32* %1
%25 = add nsw i32 %24, 1
store i32 %25, i32* %1
br label %5
26: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @send_MPU6050_data() {
%1 = tail call i32 @read_byte_from_slave(i32 104, i32 59)
%2 = tail call i32 @USART_transmit_byte(i32 %1)
%3 = tail call i32 @read_byte_from_slave(i32 104, i32 60)
%4 = tail call i32 @USART_transmit_byte(i32 %3)
%5 = tail call i32 @read_byte_from_slave(i32 104, i32 61)
%6 = tail call i32 @USART_transmit_byte(i32 %5)
%7 = tail call i32 @read_byte_from_slave(i32 104, i32 62)
%8 = tail call i32 @USART_transmit_byte(i32 %7)
%9 = tail call i32 @read_byte_from_slave(i32 104, i32 63)
%10 = tail call i32 @USART_transmit_byte(i32 %9)
%11 = tail call i32 @read_byte_from_slave(i32 104, i32 64)
%12 = tail call i32 @USART_transmit_byte(i32 %11)
%13 = tail call i32 @read_byte_from_slave(i32 104, i32 65)
%14 = tail call i32 @USART_transmit_byte(i32 %13)
%15 = tail call i32 @read_byte_from_slave(i32 104, i32 66)
%16 = tail call i32 @USART_transmit_byte(i32 %15)
%17 = tail call i32 @read_byte_from_slave(i32 104, i32 67)
%18 = tail call i32 @USART_transmit_byte(i32 %17)
%19 = tail call i32 @read_byte_from_slave(i32 104, i32 68)
%20 = tail call i32 @USART_transmit_byte(i32 %19)
%21 = tail call i32 @read_byte_from_slave(i32 104, i32 69)
%22 = tail call i32 @USART_transmit_byte(i32 %21)
%23 = tail call i32 @read_byte_from_slave(i32 104, i32 70)
%24 = tail call i32 @USART_transmit_byte(i32 %23)
%25 = tail call i32 @read_byte_from_slave(i32 104, i32 71)
%26 = tail call i32 @USART_transmit_byte(i32 %25)
%27 = tail call i32 @read_byte_from_slave(i32 104, i32 72)
%28 = tail call i32 @USART_transmit_byte(i32 %27)
ret void
}