#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*/ MYwrite_char(int, char);
void MYwrite_FPword(int sock, char *fromhere) {
  int i;
  for (i = 0; i < 16; i++)
    MYwrite_char(sock, fromhere[i]);
}


x86 assembly (clang, -O0):
<MYwrite_FPword>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    1152 <MYwrite_FPword+0x42>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
call   1030 <MYwrite_char@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1126 <MYwrite_FPword+0x16>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MYwrite_FPword>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %edi,%ebx
movsbl (%rsi),%esi
call   1030 <MYwrite_char@plt>
movsbl 0x1(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0x2(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0x3(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0x4(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0x5(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0x6(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0x7(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0x8(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0x9(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0xa(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0xb(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0xc(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0xd(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0xe(%r14),%esi
mov    %ebx,%edi
call   1030 <MYwrite_char@plt>
movsbl 0xf(%r14),%esi
mov    %ebx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <MYwrite_char@plt>

LLVM IR (-O0):
define void @MYwrite_FPword(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
store i32 0, i32* %5
br label %6
6: ; preds = %17, %2
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 16
br i1 %8, label %9, label %20
9: ; preds = %6
%10 = load i32, i32* %3
%11 = load i8*, i8** %4
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, i8* %11, i64 %13
%15 = load i8, i8* %14
%16 = call i32 @MYwrite_char(i32 %10, i8 signext %15)
br label %17
17: ; preds = %9
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 1
store i32 %19, i32* %5
br label %6
20: ; preds = %6
ret void
}

LLVM IR (-O2):
define void @MYwrite_FPword(i32 %0, i8* nocapture %1) {
%3 = load i8, i8* %1
%4 = tail call i32 @MYwrite_char(i32 %0, i8 signext %3)
%5 = getelementptr inbounds i8, i8* %1, i64 1
%6 = load i8, i8* %5
%7 = tail call i32 @MYwrite_char(i32 %0, i8 signext %6)
%8 = getelementptr inbounds i8, i8* %1, i64 2
%9 = load i8, i8* %8
%10 = tail call i32 @MYwrite_char(i32 %0, i8 signext %9)
%11 = getelementptr inbounds i8, i8* %1, i64 3
%12 = load i8, i8* %11
%13 = tail call i32 @MYwrite_char(i32 %0, i8 signext %12)
%14 = getelementptr inbounds i8, i8* %1, i64 4
%15 = load i8, i8* %14
%16 = tail call i32 @MYwrite_char(i32 %0, i8 signext %15)
%17 = getelementptr inbounds i8, i8* %1, i64 5
%18 = load i8, i8* %17
%19 = tail call i32 @MYwrite_char(i32 %0, i8 signext %18)
%20 = getelementptr inbounds i8, i8* %1, i64 6
%21 = load i8, i8* %20
%22 = tail call i32 @MYwrite_char(i32 %0, i8 signext %21)
%23 = getelementptr inbounds i8, i8* %1, i64 7
%24 = load i8, i8* %23
%25 = tail call i32 @MYwrite_char(i32 %0, i8 signext %24)
%26 = getelementptr inbounds i8, i8* %1, i64 8
%27 = load i8, i8* %26
%28 = tail call i32 @MYwrite_char(i32 %0, i8 signext %27)
%29 = getelementptr inbounds i8, i8* %1, i64 9
%30 = load i8, i8* %29
%31 = tail call i32 @MYwrite_char(i32 %0, i8 signext %30)
%32 = getelementptr inbounds i8, i8* %1, i64 10
%33 = load i8, i8* %32
%34 = tail call i32 @MYwrite_char(i32 %0, i8 signext %33)
%35 = getelementptr inbounds i8, i8* %1, i64 11
%36 = load i8, i8* %35
%37 = tail call i32 @MYwrite_char(i32 %0, i8 signext %36)
%38 = getelementptr inbounds i8, i8* %1, i64 12
%39 = load i8, i8* %38
%40 = tail call i32 @MYwrite_char(i32 %0, i8 signext %39)
%41 = getelementptr inbounds i8, i8* %1, i64 13
%42 = load i8, i8* %41
%43 = tail call i32 @MYwrite_char(i32 %0, i8 signext %42)
%44 = getelementptr inbounds i8, i8* %1, i64 14
%45 = load i8, i8* %44
%46 = tail call i32 @MYwrite_char(i32 %0, i8 signext %45)
%47 = getelementptr inbounds i8, i8* %1, i64 15
%48 = load i8, i8* %47
%49 = tail call i32 @MYwrite_char(i32 %0, i8 signext %48)
ret void
}