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

/* Variables and functions */
int /*<<< orphan*/ print_dbppc_comment(char *, char *, int, char *, char,
                                       struct file_header *);
void print_db_comment(int *tab, int action, char *cur_date, char *cur_time,
                      int utc, char *comment, struct file_header *file_hdr,
                      struct record_header *record_hdr) {
  if (action & 0x02) {
    print_dbppc_comment(cur_date, cur_time, utc, comment, ';', file_hdr);
  }
}


x86 assembly (clang, -O0):
<print_db_comment>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x18(%rbp),%rax
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     1164 <print_db_comment+0x54>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    0x10(%rbp),%r9
mov    $0x3b,%r8d
call   1030 <print_dbppc_comment@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_db_comment>:
test   $0x2,%sil
jne    1117 <print_db_comment+0x7>
ret
mov    0x8(%rsp),%rax
mov    %rdx,%rdi
mov    %rcx,%rsi
mov    %r8d,%edx
mov    %r9,%rcx
mov    $0x3b,%r8d
mov    %rax,%r9
jmp    1030 <print_dbppc_comment@plt>

LLVM IR (-O0):
%struct.file_header = type { i32 }
%struct.record_header = type { i32 }
define void @print_db_comment(i32* %0, i32 %1, i8* %2, i8* %3, i32 %4, i8* %5, %struct.file_header* %6, %struct.record_header* %7) {
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i8*
%15 = alloca %struct.file_header*
%16 = alloca %struct.record_header*
store i32* %0, i32** %9
store i32 %1, i32* %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i32 %4, i32* %13
store i8* %5, i8** %14
store %struct.file_header* %6, %struct.file_header** %15
store %struct.record_header* %7, %struct.record_header** %16
%17 = load i32, i32* %10
%18 = and i32 %17, 2
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %8
%21 = load i8*, i8** %11
%22 = load i8*, i8** %12
%23 = load i32, i32* %13
%24 = load i8*, i8** %14
%25 = load %struct.file_header*, %struct.file_header** %15
%26 = call i32 @print_dbppc_comment(i8* %21, i8* %22, i32 %23, i8* %24, i8 signext 59, %struct.file_header* %25)
br label %27
27: ; preds = %20, %8
ret void
}

LLVM IR (-O2):
%struct.file_header = type { i32 }
%struct.record_header = type { i32 }
define void @print_db_comment(i32* nocapture readnone %0, i32 %1, i8* %2, i8* %3, i32 %4, i8* %5, %struct.file_header* %6, %struct.record_header* nocapture readnone %7) {
%9 = and i32 %1, 2
%10 = icmp eq i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %8
%12 = tail call i32 @print_dbppc_comment(i8* %2, i8* %3, i32 %4, i8* %5, i8 signext 59, %struct.file_header* %6)
br label %13
13: ; preds = %11, %8
ret void
}