#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*/ sprintf(char *, char *, unsigned char, unsigned char,
                           unsigned char, unsigned char, unsigned char,
                           unsigned char, unsigned char, char *);
void lineprint7(char *outf, long ctr, unsigned char *op, char *outstring) {
  sprintf(outf, "%02X %02X %02X %02X %02X %02X %02X %s", *op, *(op + 1),
          *(op + 2), *(op + 3), *(op + 4), *(op + 5), *(op + 6), outstring);
}


x86 assembly (clang, -O0):
<lineprint7>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x48,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%dl
mov    -0x20(%rbp),%rax
mov    0x1(%rax),%cl
mov    -0x20(%rbp),%rax
mov    0x2(%rax),%r8b
mov    -0x20(%rbp),%rax
mov    0x3(%rax),%r9b
mov    -0x20(%rbp),%rax
mov    0x4(%rax),%bl
mov    -0x20(%rbp),%rax
mov    0x5(%rax),%r11b
mov    -0x20(%rbp),%rax
mov    0x6(%rax),%r10b
mov    -0x28(%rbp),%rax
lea    0xe94(%rip),%rsi
movzbl %dl,%edx
movzbl %cl,%ecx
movzbl %r8b,%r8d
movzbl %r9b,%r9d
movzbl %bl,%ebx
mov    %ebx,(%rsp)
movzbl %r11b,%r11d
mov    %r11d,0x8(%rsp)
movzbl %r10b,%r10d
mov    %r10d,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1030 <sprintf@plt>
add    $0x48,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<lineprint7>:
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r10
movzbl (%rdx),%eax
movzbl 0x1(%rdx),%ecx
movzbl 0x2(%rdx),%r8d
movzbl 0x3(%rdx),%r9d
movzbl 0x4(%rdx),%r11d
movzbl 0x5(%rdx),%r14d
movzbl 0x6(%rdx),%ebx
lea    0xec3(%rip),%rsi
mov    %eax,%edx
push   %r10
push   %rbx
push   %r14
push   %r11
call   1030 <sprintf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [38 x i8] c"%02X %02X %02X %02X %02X %02X %02X %s\00"
define void @lineprint7(i8* %0, i64 %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %5
store i64 %1, i64* %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %7
%11 = load i8, i8* %10
%12 = load i8*, i8** %7
%13 = getelementptr inbounds i8, i8* %12, i64 1
%14 = load i8, i8* %13
%15 = load i8*, i8** %7
%16 = getelementptr inbounds i8, i8* %15, i64 2
%17 = load i8, i8* %16
%18 = load i8*, i8** %7
%19 = getelementptr inbounds i8, i8* %18, i64 3
%20 = load i8, i8* %19
%21 = load i8*, i8** %7
%22 = getelementptr inbounds i8, i8* %21, i64 4
%23 = load i8, i8* %22
%24 = load i8*, i8** %7
%25 = getelementptr inbounds i8, i8* %24, i64 5
%26 = load i8, i8* %25
%27 = load i8*, i8** %7
%28 = getelementptr inbounds i8, i8* %27, i64 6
%29 = load i8, i8* %28
%30 = load i8*, i8** %8
%31 = call i32 @sprintf(i8* %9, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8 zeroext %11, i8 zeroext %14, i8 zeroext %17, i8 zeroext %20, i8 zeroext %23, i8 zeroext %26, i8 zeroext %29, i8* %30)
ret void
}

LLVM IR (-O2):
@.str = [38 x i8] c"%02X %02X %02X %02X %02X %02X %02X %s\00"
define void @lineprint7(i8* nocapture writeonly %0, i64 %1, i8* nocapture %2, i8* %3) {
%5 = load i8, i8* %2
%6 = getelementptr inbounds i8, i8* %2, i64 1
%7 = load i8, i8* %6
%8 = getelementptr inbounds i8, i8* %2, i64 2
%9 = load i8, i8* %8
%10 = getelementptr inbounds i8, i8* %2, i64 3
%11 = load i8, i8* %10
%12 = getelementptr inbounds i8, i8* %2, i64 4
%13 = load i8, i8* %12
%14 = getelementptr inbounds i8, i8* %2, i64 5
%15 = load i8, i8* %14
%16 = getelementptr inbounds i8, i8* %2, i64 6
%17 = load i8, i8* %16
%18 = tail call i32 @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8 zeroext %5, i8 zeroext %7, i8 zeroext %9, i8 zeroext %11, i8 zeroext %13, i8 zeroext %15, i8 zeroext %17, i8* %3)
ret void
}