#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 */
char Bcd2Dec(char);
void Transform_Time(char *sec, char *min, char *hr, char *week_day, char *day,
                    char *mn, char *year) {
  *sec = Bcd2Dec(*sec);
  *min = Bcd2Dec(*min);
  *hr = Bcd2Dec(*hr);
  *week_day = Bcd2Dec(*week_day);
  *day = Bcd2Dec(*day);
  *mn = Bcd2Dec(*mn);
  *year = Bcd2Dec(*year);
}


x86 assembly (clang, -O0):
<Transform_Time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
mov    -0x20(%rbp),%rax
movsbl (%rax),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
mov    -0x28(%rbp),%rax
movsbl (%rax),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,%cl
mov    -0x28(%rbp),%rax
mov    %cl,(%rax)
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,%cl
mov    -0x30(%rbp),%rax
mov    %cl,(%rax)
mov    0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,%cl
mov    0x10(%rbp),%rax
mov    %cl,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Transform_Time>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%rbp
movsbl (%rdi),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,0x0(%rbp)
movsbl (%rbx),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,(%rbx)
movsbl 0x0(%r13),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,0x0(%r13)
movsbl (%r12),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,(%r12)
movsbl (%r15),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,(%r15)
movsbl (%r14),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,(%r14)
mov    0x40(%rsp),%rbx
movsbl (%rbx),%edi
call   1030 <Bcd2Dec@plt>
mov    %al,(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @Transform_Time(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
store i8* %0, i8** %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i8* %5, i8** %13
store i8* %6, i8** %14
%15 = load i8*, i8** %8
%16 = load i8, i8* %15
%17 = call signext i8 @Bcd2Dec(i8 signext %16)
%18 = load i8*, i8** %8
store i8 %17, i8* %18
%19 = load i8*, i8** %9
%20 = load i8, i8* %19
%21 = call signext i8 @Bcd2Dec(i8 signext %20)
%22 = load i8*, i8** %9
store i8 %21, i8* %22
%23 = load i8*, i8** %10
%24 = load i8, i8* %23
%25 = call signext i8 @Bcd2Dec(i8 signext %24)
%26 = load i8*, i8** %10
store i8 %25, i8* %26
%27 = load i8*, i8** %11
%28 = load i8, i8* %27
%29 = call signext i8 @Bcd2Dec(i8 signext %28)
%30 = load i8*, i8** %11
store i8 %29, i8* %30
%31 = load i8*, i8** %12
%32 = load i8, i8* %31
%33 = call signext i8 @Bcd2Dec(i8 signext %32)
%34 = load i8*, i8** %12
store i8 %33, i8* %34
%35 = load i8*, i8** %13
%36 = load i8, i8* %35
%37 = call signext i8 @Bcd2Dec(i8 signext %36)
%38 = load i8*, i8** %13
store i8 %37, i8* %38
%39 = load i8*, i8** %14
%40 = load i8, i8* %39
%41 = call signext i8 @Bcd2Dec(i8 signext %40)
%42 = load i8*, i8** %14
store i8 %41, i8* %42
ret void
}

LLVM IR (-O2):
define void @Transform_Time(i8* nocapture %0, i8* nocapture %1, i8* nocapture %2, i8* nocapture %3, i8* nocapture %4, i8* nocapture %5, i8* nocapture %6) {
%8 = load i8, i8* %0
%9 = tail call signext i8 @Bcd2Dec(i8 signext %8)
store i8 %9, i8* %0
%10 = load i8, i8* %1
%11 = tail call signext i8 @Bcd2Dec(i8 signext %10)
store i8 %11, i8* %1
%12 = load i8, i8* %2
%13 = tail call signext i8 @Bcd2Dec(i8 signext %12)
store i8 %13, i8* %2
%14 = load i8, i8* %3
%15 = tail call signext i8 @Bcd2Dec(i8 signext %14)
store i8 %15, i8* %3
%16 = load i8, i8* %4
%17 = tail call signext i8 @Bcd2Dec(i8 signext %16)
store i8 %17, i8* %4
%18 = load i8, i8* %5
%19 = tail call signext i8 @Bcd2Dec(i8 signext %18)
store i8 %19, i8* %5
%20 = load i8, i8* %6
%21 = tail call signext i8 @Bcd2Dec(i8 signext %20)
store i8 %21, i8* %6
ret void
}