#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 allocate_psl(int);
int /*<<< orphan*/ set_atom_angle(int, double);
int /*<<< orphan*/ set_atom_anumber(int, int);
int /*<<< orphan*/ set_atom_ball(int, double);
int /*<<< orphan*/ set_atom_center(int, double *);
int /*<<< orphan*/ set_atom_color(int, int);
int /*<<< orphan*/ set_atom_covalent(int, double);
int /*<<< orphan*/ set_atom_density(int, double);
int /*<<< orphan*/ set_atom_element(int, int);
int /*<<< orphan*/ set_atom_group(int, char *);
int /*<<< orphan*/ set_atom_kind(int, char *);
int /*<<< orphan*/ set_atom_molecule(int, int);
int /*<<< orphan*/ set_atom_name(int, char *);
int /*<<< orphan*/ set_atom_occupancy(int, double);
int /*<<< orphan*/ set_atom_opacity(int, double);
int /*<<< orphan*/ set_atom_pdb(int, char *);
int /*<<< orphan*/ set_atom_radius(int, double);
int /*<<< orphan*/ set_atom_sequence(int, char *);
int /*<<< orphan*/ set_atom_srn(int, int);
int /*<<< orphan*/ set_atom_subunit(int, char *);
int /*<<< orphan*/ set_atom_tfactor(int, double);
int /*<<< orphan*/ set_atom_type(int, int);
int put_atom(double center[3], double radius, double ball_radius,
             double covalent, char *atom_name, char *residue, char *sequence,
             char *kind, char *pdb, char *subunit, int chemical_element,
             int vdw_type, int anumber, int srn, int mol, double occupancy,
             double tfactor, double density) {
  int atom_number;
  atom_number = allocate_psl(6);
  if (atom_number == 0)
    return (0);
  set_atom_center(atom_number, center);
  set_atom_pdb(atom_number, pdb);
  set_atom_kind(atom_number, kind);
  set_atom_name(atom_number, atom_name);
  set_atom_group(atom_number, residue);
  set_atom_sequence(atom_number, sequence);
  set_atom_subunit(atom_number, subunit);
  set_atom_anumber(atom_number, anumber);
  set_atom_occupancy(atom_number, occupancy);
  set_atom_tfactor(atom_number, tfactor);
  set_atom_element(atom_number, chemical_element);
  set_atom_type(atom_number, vdw_type);
  set_atom_srn(atom_number, srn);
  set_atom_molecule(atom_number, mol);
  set_atom_color(atom_number, 1);
  set_atom_radius(atom_number, radius);
  set_atom_covalent(atom_number, covalent);
  set_atom_ball(atom_number, ball_radius);
  set_atom_angle(atom_number, 1.0);
  set_atom_opacity(atom_number, 1.0);
  set_atom_density(atom_number, density);
  return (atom_number);
}


x86 assembly (clang, -O0):
<put_atom>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
movsd  %xmm2,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
movsd  %xmm3,-0x58(%rbp)
movsd  %xmm4,-0x60(%rbp)
movsd  %xmm5,-0x68(%rbp)
mov    $0x6,%edi
call   1030 <allocate_psl@plt>
mov    %eax,-0x6c(%rbp)
cmpl   $0x0,-0x6c(%rbp)
jne    12d4 <put_atom+0x74>
movl   $0x0,-0x4(%rbp)
jmp    13e0 <put_atom+0x180>
mov    -0x6c(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1060 <set_atom_center@plt>
mov    -0x6c(%rbp),%edi
mov    -0x50(%rbp),%rsi
call   1120 <set_atom_pdb@plt>
mov    -0x6c(%rbp),%edi
mov    -0x48(%rbp),%rsi
call   1050 <set_atom_kind@plt>
mov    -0x6c(%rbp),%edi
mov    -0x30(%rbp),%rsi
call   1080 <set_atom_name@plt>
mov    -0x6c(%rbp),%edi
mov    -0x38(%rbp),%rsi
call   1160 <set_atom_group@plt>
mov    -0x6c(%rbp),%edi
mov    -0x40(%rbp),%rsi
call   10b0 <set_atom_sequence@plt>
mov    -0x6c(%rbp),%edi
mov    0x10(%rbp),%rsi
call   10e0 <set_atom_subunit@plt>
mov    -0x6c(%rbp),%edi
mov    0x28(%rbp),%esi
call   1170 <set_atom_anumber@plt>
mov    -0x6c(%rbp),%edi
movsd  -0x58(%rbp),%xmm0
call   1150 <set_atom_occupancy@plt>
mov    -0x6c(%rbp),%edi
movsd  -0x60(%rbp),%xmm0
call   1100 <set_atom_tfactor@plt>
mov    -0x6c(%rbp),%edi
mov    0x18(%rbp),%esi
call   1110 <set_atom_element@plt>
mov    -0x6c(%rbp),%edi
mov    0x20(%rbp),%esi
call   10a0 <set_atom_type@plt>
mov    -0x6c(%rbp),%edi
mov    0x30(%rbp),%esi
call   10d0 <set_atom_srn@plt>
mov    -0x6c(%rbp),%edi
mov    0x38(%rbp),%esi
call   10f0 <set_atom_molecule@plt>
mov    -0x6c(%rbp),%edi
mov    $0x1,%esi
call   1140 <set_atom_color@plt>
mov    -0x6c(%rbp),%edi
movsd  -0x18(%rbp),%xmm0
call   1070 <set_atom_radius@plt>
mov    -0x6c(%rbp),%edi
movsd  -0x28(%rbp),%xmm0
call   1040 <set_atom_covalent@plt>
mov    -0x6c(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
call   1180 <set_atom_ball@plt>
mov    -0x6c(%rbp),%edi
movsd  0xc48(%rip),%xmm0
call   10c0 <set_atom_angle@plt>
mov    -0x6c(%rbp),%edi
movsd  0xc38(%rip),%xmm0
call   1090 <set_atom_opacity@plt>
mov    -0x6c(%rbp),%edi
movsd  -0x68(%rbp),%xmm0
call   1130 <set_atom_density@plt>
mov    -0x6c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<put_atom>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movsd  %xmm5,0x30(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm3,0x8(%rsp)
mov    %r9,%r15
mov    %r8,%r13
mov    %rcx,(%rsp)
mov    %rdx,%r14
mov    %rsi,%r12
movsd  %xmm2,0x20(%rsp)
movsd  %xmm1,0x28(%rsp)
movsd  %xmm0,0x18(%rsp)
mov    %rdi,%rbp
mov    $0x6,%edi
call   1030 <allocate_psl@plt>
mov    %eax,%ebx
test   %eax,%eax
je     13bd <put_atom+0x15d>
mov    %ebx,%edi
mov    %rbp,%rsi
call   1060 <set_atom_center@plt>
mov    %ebx,%edi
mov    %r15,%rsi
call   1120 <set_atom_pdb@plt>
mov    %ebx,%edi
mov    %r13,%rsi
call   1050 <set_atom_kind@plt>
mov    %ebx,%edi
mov    %r12,%rsi
call   1080 <set_atom_name@plt>
mov    %ebx,%edi
mov    %r14,%rsi
call   1160 <set_atom_group@plt>
mov    %ebx,%edi
mov    (%rsp),%rsi
call   10b0 <set_atom_sequence@plt>
mov    %ebx,%edi
mov    0x70(%rsp),%rsi
call   10e0 <set_atom_subunit@plt>
mov    %ebx,%edi
mov    0x88(%rsp),%esi
call   1170 <set_atom_anumber@plt>
mov    %ebx,%edi
movsd  0x8(%rsp),%xmm0
call   1150 <set_atom_occupancy@plt>
mov    %ebx,%edi
movsd  0x10(%rsp),%xmm0
call   1100 <set_atom_tfactor@plt>
mov    %ebx,%edi
mov    0x78(%rsp),%esi
call   1110 <set_atom_element@plt>
mov    %ebx,%edi
mov    0x80(%rsp),%esi
call   10a0 <set_atom_type@plt>
mov    %ebx,%edi
mov    0x90(%rsp),%esi
call   10d0 <set_atom_srn@plt>
mov    %ebx,%edi
mov    0x98(%rsp),%esi
call   10f0 <set_atom_molecule@plt>
mov    %ebx,%edi
mov    $0x1,%esi
call   1140 <set_atom_color@plt>
mov    %ebx,%edi
movsd  0x18(%rsp),%xmm0
call   1070 <set_atom_radius@plt>
mov    %ebx,%edi
movsd  0x20(%rsp),%xmm0
call   1040 <set_atom_covalent@plt>
mov    %ebx,%edi
movsd  0x28(%rsp),%xmm0
call   1180 <set_atom_ball@plt>
movsd  0xc66(%rip),%xmm0
mov    %ebx,%edi
call   10c0 <set_atom_angle@plt>
mov    %ebx,%edi
movsd  0xc55(%rip),%xmm0
call   1090 <set_atom_opacity@plt>
mov    %ebx,%edi
movsd  0x30(%rsp),%xmm0
call   1130 <set_atom_density@plt>
mov    %ebx,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @put_atom(double* %0, double %1, double %2, double %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %14, double %15, double %16, double %17) {
%19 = alloca i32
%20 = alloca double*
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca i8*
%25 = alloca i8*
%26 = alloca i8*
%27 = alloca i8*
%28 = alloca i8*
%29 = alloca i8*
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca i32
store double* %0, double** %20
store double %1, double* %21
store double %2, double* %22
store double %3, double* %23
store i8* %4, i8** %24
store i8* %5, i8** %25
store i8* %6, i8** %26
store i8* %7, i8** %27
store i8* %8, i8** %28
store i8* %9, i8** %29
store i32 %10, i32* %30
store i32 %11, i32* %31
store i32 %12, i32* %32
store i32 %13, i32* %33
store i32 %14, i32* %34
store double %15, double* %35
store double %16, double* %36
store double %17, double* %37
%39 = call i32 @allocate_psl(i32 6)
store i32 %39, i32* %38
%40 = load i32, i32* %38
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %18
store i32 0, i32* %19
br label %105
43: ; preds = %18
%44 = load i32, i32* %38
%45 = load double*, double** %20
%46 = call i32 @set_atom_center(i32 %44, double* %45)
%47 = load i32, i32* %38
%48 = load i8*, i8** %28
%49 = call i32 @set_atom_pdb(i32 %47, i8* %48)
%50 = load i32, i32* %38
%51 = load i8*, i8** %27
%52 = call i32 @set_atom_kind(i32 %50, i8* %51)
%53 = load i32, i32* %38
%54 = load i8*, i8** %24
%55 = call i32 @set_atom_name(i32 %53, i8* %54)
%56 = load i32, i32* %38
%57 = load i8*, i8** %25
%58 = call i32 @set_atom_group(i32 %56, i8* %57)
%59 = load i32, i32* %38
%60 = load i8*, i8** %26
%61 = call i32 @set_atom_sequence(i32 %59, i8* %60)
%62 = load i32, i32* %38
%63 = load i8*, i8** %29
%64 = call i32 @set_atom_subunit(i32 %62, i8* %63)
%65 = load i32, i32* %38
%66 = load i32, i32* %32
%67 = call i32 @set_atom_anumber(i32 %65, i32 %66)
%68 = load i32, i32* %38
%69 = load double, double* %35
%70 = call i32 @set_atom_occupancy(i32 %68, double %69)
%71 = load i32, i32* %38
%72 = load double, double* %36
%73 = call i32 @set_atom_tfactor(i32 %71, double %72)
%74 = load i32, i32* %38
%75 = load i32, i32* %30
%76 = call i32 @set_atom_element(i32 %74, i32 %75)
%77 = load i32, i32* %38
%78 = load i32, i32* %31
%79 = call i32 @set_atom_type(i32 %77, i32 %78)
%80 = load i32, i32* %38
%81 = load i32, i32* %33
%82 = call i32 @set_atom_srn(i32 %80, i32 %81)
%83 = load i32, i32* %38
%84 = load i32, i32* %34
%85 = call i32 @set_atom_molecule(i32 %83, i32 %84)
%86 = load i32, i32* %38
%87 = call i32 @set_atom_color(i32 %86, i32 1)
%88 = load i32, i32* %38
%89 = load double, double* %21
%90 = call i32 @set_atom_radius(i32 %88, double %89)
%91 = load i32, i32* %38
%92 = load double, double* %23
%93 = call i32 @set_atom_covalent(i32 %91, double %92)
%94 = load i32, i32* %38
%95 = load double, double* %22
%96 = call i32 @set_atom_ball(i32 %94, double %95)
%97 = load i32, i32* %38
%98 = call i32 @set_atom_angle(i32 %97, double 1.000000e+00)
%99 = load i32, i32* %38
%100 = call i32 @set_atom_opacity(i32 %99, double 1.000000e+00)
%101 = load i32, i32* %38
%102 = load double, double* %37
%103 = call i32 @set_atom_density(i32 %101, double %102)
%104 = load i32, i32* %38
store i32 %104, i32* %19
br label %105
105: ; preds = %43, %42
%106 = load i32, i32* %19
ret i32 %106
}

LLVM IR (-O2):
define i32 @put_atom(double* %0, double %1, double %2, double %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %14, double %15, double %16, double %17) {
%19 = tail call i32 @allocate_psl(i32 6)
%20 = icmp eq i32 %19, 0
br i1 %20, label %43, label %21
21: ; preds = %18
%22 = tail call i32 @set_atom_center(i32 %19, double* %0)
%23 = tail call i32 @set_atom_pdb(i32 %19, i8* %8)
%24 = tail call i32 @set_atom_kind(i32 %19, i8* %7)
%25 = tail call i32 @set_atom_name(i32 %19, i8* %4)
%26 = tail call i32 @set_atom_group(i32 %19, i8* %5)
%27 = tail call i32 @set_atom_sequence(i32 %19, i8* %6)
%28 = tail call i32 @set_atom_subunit(i32 %19, i8* %9)
%29 = tail call i32 @set_atom_anumber(i32 %19, i32 %12)
%30 = tail call i32 @set_atom_occupancy(i32 %19, double %15)
%31 = tail call i32 @set_atom_tfactor(i32 %19, double %16)
%32 = tail call i32 @set_atom_element(i32 %19, i32 %10)
%33 = tail call i32 @set_atom_type(i32 %19, i32 %11)
%34 = tail call i32 @set_atom_srn(i32 %19, i32 %13)
%35 = tail call i32 @set_atom_molecule(i32 %19, i32 %14)
%36 = tail call i32 @set_atom_color(i32 %19, i32 1)
%37 = tail call i32 @set_atom_radius(i32 %19, double %1)
%38 = tail call i32 @set_atom_covalent(i32 %19, double %3)
%39 = tail call i32 @set_atom_ball(i32 %19, double %2)
%40 = tail call i32 @set_atom_angle(i32 %19, double 1.000000e+00)
%41 = tail call i32 @set_atom_opacity(i32 %19, double 1.000000e+00)
%42 = tail call i32 @set_atom_density(i32 %19, double %17)
br label %43
43: ; preds = %18, %21
ret i32 %19
}