#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 */
typedef int /*<<< orphan*/ time_t;

/* Variables and functions */
scalar_t__ gmtime(int /*<<< orphan*/ *);
extern void gmtime_(int *clock, int *t) {
  int i;
  int *g;
  g = (int *)gmtime((time_t *)clock);
  for (i = 0; i < 9; i++)
    *t++ = *g++;
}


x86 assembly (clang, -O0):
<gmtime_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <gmtime@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x9,-0x14(%rbp)
jge    116e <gmtime_+0x5e>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x20(%rbp)
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x4,%rdx
mov    %rdx,-0x10(%rbp)
mov    %ecx,(%rax)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1134 <gmtime_+0x24>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gmtime_>:
push   %rbx
mov    %rsi,%rbx
call   1030 <gmtime@plt>
mov    (%rax),%ecx
mov    %ecx,(%rbx)
mov    0x4(%rax),%ecx
mov    %ecx,0x4(%rbx)
mov    0x8(%rax),%ecx
mov    %ecx,0x8(%rbx)
mov    0xc(%rax),%ecx
mov    %ecx,0xc(%rbx)
mov    0x10(%rax),%ecx
mov    %ecx,0x10(%rbx)
mov    0x14(%rax),%ecx
mov    %ecx,0x14(%rbx)
mov    0x18(%rax),%ecx
mov    %ecx,0x18(%rbx)
mov    0x1c(%rax),%ecx
mov    %ecx,0x1c(%rbx)
mov    0x20(%rax),%eax
mov    %eax,0x20(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @gmtime_(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
%7 = load i32*, i32** %3
%8 = call i64 @gmtime(i32* %7)
%9 = inttoptr i64 %8 to i32*
store i32* %9, i32** %6
store i32 0, i32* %5
br label %10
10: ; preds = %19, %2
%11 = load i32, i32* %5
%12 = icmp slt i32 %11, 9
br i1 %12, label %13, label %22
13: ; preds = %10
%14 = load i32*, i32** %6
%15 = getelementptr inbounds i32, i32* %14, i32 1
store i32* %15, i32** %6
%16 = load i32, i32* %14
%17 = load i32*, i32** %4
%18 = getelementptr inbounds i32, i32* %17, i32 1
store i32* %18, i32** %4
store i32 %16, i32* %17
br label %19
19: ; preds = %13
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 1
store i32 %21, i32* %5
br label %10
22: ; preds = %10
ret void
}

LLVM IR (-O2):
define void @gmtime_(i32* %0, i32* nocapture writeonly %1) {
%3 = tail call i64 @gmtime(i32* %0)
%4 = inttoptr i64 %3 to i32*
%5 = getelementptr inbounds i32, i32* %4, i64 1
%6 = load i32, i32* %4
%7 = getelementptr inbounds i32, i32* %1, i64 1
store i32 %6, i32* %1
%8 = getelementptr inbounds i32, i32* %4, i64 2
%9 = load i32, i32* %5
%10 = getelementptr inbounds i32, i32* %1, i64 2
store i32 %9, i32* %7
%11 = getelementptr inbounds i32, i32* %4, i64 3
%12 = load i32, i32* %8
%13 = getelementptr inbounds i32, i32* %1, i64 3
store i32 %12, i32* %10
%14 = getelementptr inbounds i32, i32* %4, i64 4
%15 = load i32, i32* %11
%16 = getelementptr inbounds i32, i32* %1, i64 4
store i32 %15, i32* %13
%17 = getelementptr inbounds i32, i32* %4, i64 5
%18 = load i32, i32* %14
%19 = getelementptr inbounds i32, i32* %1, i64 5
store i32 %18, i32* %16
%20 = getelementptr inbounds i32, i32* %4, i64 6
%21 = load i32, i32* %17
%22 = getelementptr inbounds i32, i32* %1, i64 6
store i32 %21, i32* %19
%23 = getelementptr inbounds i32, i32* %4, i64 7
%24 = load i32, i32* %20
%25 = getelementptr inbounds i32, i32* %1, i64 7
store i32 %24, i32* %22
%26 = getelementptr inbounds i32, i32* %4, i64 8
%27 = load i32, i32* %23
%28 = getelementptr inbounds i32, i32* %1, i64 8
store i32 %27, i32* %25
%29 = load i32, i32* %26
store i32 %29, i32* %28
ret void
}