#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 */
struct file_header {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strlen(char *);
void print_raw_comment(int *tab, int action, char *cur_date, char *cur_time,
                       int utc, char *comment, struct file_header *file_hdr) {
  if (action & 0x02) {
    printf("%s", cur_time);
    if (strlen(cur_date) && utc) {
      printf(" UTC");
    }
    printf("; COM %s\n", comment);
  }
}


x86 assembly (clang, -O0):
<print_raw_comment>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0xc(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     11a1 <print_raw_comment+0x81>
mov    -0x20(%rbp),%rsi
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x0,%rax
je     118f <print_raw_comment+0x6f>
cmpl   $0x0,-0x24(%rbp)
je     118f <print_raw_comment+0x6f>
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_raw_comment>:
test   $0x2,%sil
jne    1117 <print_raw_comment+0x7>
ret
push   %rbp
push   %r14
push   %rbx
mov    %r9,%r14
mov    %r8d,%ebp
mov    %rdx,%rbx
lea    0xed5(%rip),%rdi
mov    %rcx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
test   %ebp,%ebp
je     114c <print_raw_comment+0x3c>
cmpb   $0x0,(%rbx)
je     114c <print_raw_comment+0x3c>
lea    0xebe(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
%struct.file_header = type { i32 }
@.str = [3 x i8] c"%s\00"
@.str.1 = [5 x i8] c" UTC\00"
@.str.2 = [10 x i8] c"; COM %s\0A\00"
define void @print_raw_comment(i32* %0, i32 %1, i8* %2, i8* %3, i32 %4, i8* %5, %struct.file_header* %6) {
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i8*
%14 = alloca %struct.file_header*
store i32* %0, i32** %8
store i32 %1, i32* %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i32 %4, i32* %12
store i8* %5, i8** %13
store %struct.file_header* %6, %struct.file_header** %14
%15 = load i32, i32* %9
%16 = and i32 %15, 2
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %32
18: ; preds = %7
%19 = load i8*, i8** %11
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %19)
%21 = load i8*, i8** %10
%22 = call i64 @strlen(i8* %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %29
24: ; preds = %18
%25 = load i32, i32* %12
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %29
29: ; preds = %27, %24, %18
%30 = load i8*, i8** %13
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %30)
br label %32
32: ; preds = %29, %7
ret void
}

LLVM IR (-O2):
%struct.file_header = type { i32 }
@.str = [3 x i8] c"%s\00"
@.str.1 = [5 x i8] c" UTC\00"
@.str.2 = [10 x i8] c"; COM %s\0A\00"
define void @print_raw_comment(i32* nocapture readnone %0, i32 %1, i8* nocapture %2, i8* %3, i32 %4, i8* %5, %struct.file_header* nocapture readnone %6) {
%8 = and i32 %1, 2
%9 = icmp eq i32 %8, 0
br i1 %9, label %20, label %10
10: ; preds = %7
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3)
%12 = load i8, i8* %2
%13 = icmp ne i8 %12, 0
%14 = icmp ne i32 %4, 0
%15 = and i1 %14, %13
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %18
18: ; preds = %16, %10
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %5)
br label %20
20: ; preds = %18, %7
ret void
}