#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*/ get_time(unsigned char *, int *, int *, int *, int *, int *,
                            int *);
unsigned char *stat_proc_verf_time_location(unsigned char **);
int stat_proc_verf_time(unsigned char **sec, int *year, int *month, int *day,
                        int *hour, int *minute, int *second) {
  unsigned char *stat_proc_time;
  stat_proc_time = stat_proc_verf_time_location(sec);
  if (stat_proc_time) {
    get_time(stat_proc_time, year, month, day, hour, minute, second);
    return 0;
  } else {
    *year = *month = *day = *hour = *minute = *second = 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<stat_proc_verf_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <stat_proc_verf_time_location@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     118d <stat_proc_verf_time+0x6d>
mov    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    -0x38(%rbp),%r9
mov    0x10(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <get_time@plt>
movl   $0x0,-0x4(%rbp)
jmp    11d0 <stat_proc_verf_time+0xb0>
mov    0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x38(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stat_proc_verf_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    0x40(%rsp),%rbp
call   1040 <stat_proc_verf_time_location@plt>
test   %rax,%rax
je     1168 <stat_proc_verf_time+0x48>
mov    %rbp,(%rsp)
mov    %rax,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %r15,%r8
mov    %r14,%r9
call   1030 <get_time@plt>
xor    %eax,%eax
jmp    1198 <stat_proc_verf_time+0x78>
movl   $0x0,0x0(%rbp)
movl   $0x0,(%r14)
movl   $0x0,(%r15)
movl   $0x0,(%r12)
movl   $0x0,0x0(%r13)
movl   $0x0,(%rbx)
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @stat_proc_verf_time(i8** %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6) {
%8 = alloca i32
%9 = alloca i8**
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i8*
store i8** %0, i8*** %9
store i32* %1, i32** %10
store i32* %2, i32** %11
store i32* %3, i32** %12
store i32* %4, i32** %13
store i32* %5, i32** %14
store i32* %6, i32** %15
%17 = load i8**, i8*** %9
%18 = call i8* @stat_proc_verf_time_location(i8** %17)
store i8* %18, i8** %16
%19 = load i8*, i8** %16
%20 = icmp ne i8* %19, null
br i1 %20, label %21, label %30
21: ; preds = %7
%22 = load i8*, i8** %16
%23 = load i32*, i32** %10
%24 = load i32*, i32** %11
%25 = load i32*, i32** %12
%26 = load i32*, i32** %13
%27 = load i32*, i32** %14
%28 = load i32*, i32** %15
%29 = call i32 @get_time(i8* %22, i32* %23, i32* %24, i32* %25, i32* %26, i32* %27, i32* %28)
store i32 0, i32* %8
br label %38
30: ; preds = %7
%31 = load i32*, i32** %15
store i32 0, i32* %31
%32 = load i32*, i32** %14
store i32 0, i32* %32
%33 = load i32*, i32** %13
store i32 0, i32* %33
%34 = load i32*, i32** %12
store i32 0, i32* %34
%35 = load i32*, i32** %11
store i32 0, i32* %35
%36 = load i32*, i32** %10
store i32 0, i32* %36
br label %37
37: ; preds = %30
store i32 1, i32* %8
br label %38
38: ; preds = %37, %21
%39 = load i32, i32* %8
ret i32 %39
}

LLVM IR (-O2):
define i32 @stat_proc_verf_time(i8** %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6) {
%8 = tail call i8* @stat_proc_verf_time_location(i8** %0)
%9 = icmp eq i8* %8, null
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call i32 @get_time(i8* %8, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6)
br label %13
12: ; preds = %7
store i32 0, i32* %6
store i32 0, i32* %5
store i32 0, i32* %4
store i32 0, i32* %3
store i32 0, i32* %2
store i32 0, i32* %1
br label %13
13: ; preds = %12, %10
%14 = phi i32 [ 0, %10 ], [ 1, %12 ]
ret i32 %14
}