#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*/ strcpy(char *, char *);
void DomoCANaddr(char *value, char shifted[18]) {
  char in[18];
  strcpy(in, value);
  shifted[0] = in[3];
  shifted[1] = in[4];
  shifted[2] = in[5];
  shifted[3] = in[6];
  shifted[4] = in[7];
  shifted[5] = in[8];
  shifted[6] = in[9];
  shifted[7] = in[10];
  shifted[8] = '0';
  shifted[9] = '0';
  shifted[10] = '0';
  shifted[11] = in[11];
  shifted[12] = in[12];
  shifted[13] = in[13];
  shifted[14] = in[14];
  shifted[15] = in[15];
  shifted[16] = '\0';
}


x86 assembly (clang, -O0):
<DomoCANaddr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x2d(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x2c(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x2b(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x2a(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x3(%rax)
mov    -0x29(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x4(%rax)
mov    -0x28(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x5(%rax)
mov    -0x27(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x6(%rax)
mov    -0x26(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x7(%rax)
mov    -0x10(%rbp),%rax
movb   $0x30,0x8(%rax)
mov    -0x10(%rbp),%rax
movb   $0x30,0x9(%rax)
mov    -0x10(%rbp),%rax
movb   $0x30,0xa(%rax)
mov    -0x25(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0xb(%rax)
mov    -0x24(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0xc(%rax)
mov    -0x23(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0xd(%rax)
mov    -0x22(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0xe(%rax)
mov    -0x21(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0xf(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,0x10(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DomoCANaddr>:
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%rbx
mov    %rdi,%rsi
mov    %rsp,%rdi
call   1030 <strcpy@plt>
mov    0x3(%rsp),%al
mov    %al,(%rbx)
mov    0x4(%rsp),%al
mov    %al,0x1(%rbx)
mov    0x5(%rsp),%al
mov    %al,0x2(%rbx)
mov    0x6(%rsp),%al
mov    %al,0x3(%rbx)
mov    0x7(%rsp),%al
mov    %al,0x4(%rbx)
mov    0x8(%rsp),%al
mov    %al,0x5(%rbx)
mov    0x9(%rsp),%al
mov    %al,0x6(%rbx)
mov    0xa(%rsp),%al
mov    %al,0x7(%rbx)
movw   $0x3030,0x8(%rbx)
movb   $0x30,0xa(%rbx)
mov    0xb(%rsp),%al
mov    %al,0xb(%rbx)
mov    0xc(%rsp),%al
mov    %al,0xc(%rbx)
mov    0xd(%rsp),%al
mov    %al,0xd(%rbx)
mov    0xe(%rsp),%al
mov    %al,0xe(%rbx)
mov    0xf(%rsp),%al
mov    %al,0xf(%rbx)
movb   $0x0,0x10(%rbx)
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @DomoCANaddr(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [18 x i8]
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 0
%7 = load i8*, i8** %3
%8 = call i32 @strcpy(i8* %6, i8* %7)
%9 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 3
%10 = load i8, i8* %9
%11 = load i8*, i8** %4
%12 = getelementptr inbounds i8, i8* %11, i64 0
store i8 %10, i8* %12
%13 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 4
%14 = load i8, i8* %13
%15 = load i8*, i8** %4
%16 = getelementptr inbounds i8, i8* %15, i64 1
store i8 %14, i8* %16
%17 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 5
%18 = load i8, i8* %17
%19 = load i8*, i8** %4
%20 = getelementptr inbounds i8, i8* %19, i64 2
store i8 %18, i8* %20
%21 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 6
%22 = load i8, i8* %21
%23 = load i8*, i8** %4
%24 = getelementptr inbounds i8, i8* %23, i64 3
store i8 %22, i8* %24
%25 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 7
%26 = load i8, i8* %25
%27 = load i8*, i8** %4
%28 = getelementptr inbounds i8, i8* %27, i64 4
store i8 %26, i8* %28
%29 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 8
%30 = load i8, i8* %29
%31 = load i8*, i8** %4
%32 = getelementptr inbounds i8, i8* %31, i64 5
store i8 %30, i8* %32
%33 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 9
%34 = load i8, i8* %33
%35 = load i8*, i8** %4
%36 = getelementptr inbounds i8, i8* %35, i64 6
store i8 %34, i8* %36
%37 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 10
%38 = load i8, i8* %37
%39 = load i8*, i8** %4
%40 = getelementptr inbounds i8, i8* %39, i64 7
store i8 %38, i8* %40
%41 = load i8*, i8** %4
%42 = getelementptr inbounds i8, i8* %41, i64 8
store i8 48, i8* %42
%43 = load i8*, i8** %4
%44 = getelementptr inbounds i8, i8* %43, i64 9
store i8 48, i8* %44
%45 = load i8*, i8** %4
%46 = getelementptr inbounds i8, i8* %45, i64 10
store i8 48, i8* %46
%47 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 11
%48 = load i8, i8* %47
%49 = load i8*, i8** %4
%50 = getelementptr inbounds i8, i8* %49, i64 11
store i8 %48, i8* %50
%51 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 12
%52 = load i8, i8* %51
%53 = load i8*, i8** %4
%54 = getelementptr inbounds i8, i8* %53, i64 12
store i8 %52, i8* %54
%55 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 13
%56 = load i8, i8* %55
%57 = load i8*, i8** %4
%58 = getelementptr inbounds i8, i8* %57, i64 13
store i8 %56, i8* %58
%59 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 14
%60 = load i8, i8* %59
%61 = load i8*, i8** %4
%62 = getelementptr inbounds i8, i8* %61, i64 14
store i8 %60, i8* %62
%63 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 15
%64 = load i8, i8* %63
%65 = load i8*, i8** %4
%66 = getelementptr inbounds i8, i8* %65, i64 15
store i8 %64, i8* %66
%67 = load i8*, i8** %4
%68 = getelementptr inbounds i8, i8* %67, i64 16
store i8 0, i8* %68
ret void
}

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