// File: /workspace/github_c_makefile_star2_O0/usgs[P]nshmp-haz-catalogs/src/agrid/adaptive/read_write_params.c
// Function: write_params
void write_params(struct compl_levels* cat_comp, struct boundaries* reg, 
  struct catalog* cat, struct smoothp* smp1, char *outfnm) 
/*--------------------------------------------------------------------------*/
{
  int cnt;
  
// write out parameters
  fprintf(stdout,"Latitudes: %.2f %.2f\n", reg->minlat, reg->maxlat);
  fprintf(stdout,"Longitudes: %.2f %.2f\n", reg->minlon, reg->maxlon);
  fprintf(stdout,"dlat, dlon: %.2f %.2f\n", reg->dlat, reg->dlon);
// completeness levels
  fprintf(stdout,"Number of magnitude completeness levels: %d\n  M yr\n", cat_comp->nlevels);
  for (cnt=0; cnt<cat_comp->nlevels; cnt++) {
    fprintf(stdout,"  %.2f %d\n", cat_comp->mag_comp[cnt], cat_comp->yr_comp[cnt]);
  }
// catalog end year, name, and min-magnitude/d-mag/b-value
  fprintf(stdout,"Last year of catalog: %d\n", cat->end_yr);
  fprintf(stdout,"Name of catalog file: %s\n", cat->catnm);
  fprintf(stdout,"Minimum-M/dM/b-value: %.2f %.2f %.3f\n", cat->minMag, cat->dMag, cat->bval);
  if ( cat_comp->correctAreaForLat ) {
    fprintf(stdout,"Correcting grid cell area for latitude.\n");
  }
  else {
    fprintf(stdout,"Not correcting grid cell area for latitude.\n");
  }
// effective/actual numbers earthquakes
  if (smp1->use_neff) {
    fprintf(stdout,"Using effective numbers of earthquakes: N>=1.\n");
  }
  else {
    fprintf(stdout,"Using actual numbers of earthquakes (not effective-numbers): N=1.\n");
  }
// smoothing parameters
  if (smp1->cumul_rates) {
    fprintf(stdout,"Output cumulative rates.\n");
  }
  else {
    fprintf(stdout,"Output incremental rates.\n");
  }
  if (smp1->adj_compl) {
    fprintf(stdout,"Adjust completeness levels.\n");
  }
  else {
    fprintf(stdout,"Don't adjust completeness levels.\n");
  }
  if (smp1->apply_sm) {
    fprintf(stdout,"Apply smoothing to seismicity rates... ");
// gauss/power-law
    if ( smp1->gauss_kern ) {
      fprintf(stdout,"  gaussian kernel ... ");
    }
    else {
      fprintf(stdout,"  power-law kernel ... ");
    }
    if (smp1->adapt_sm) {
      fprintf(stdout," adaptive smoothing - ");
      if (smp1->nnum2_log == 0) {
        fprintf(stdout,"neighbor number %d\n", smp1->nnum);
      }
      else {
        fprintf(stdout,"average of neighbor numbers %d, %d\n", smp1->nnum, smp1->nnum2);
      }
    }
    else {
      fprintf(stdout," fixed-radius smoothing: %.1f km\n", smp1->sigfix);
    }
  }
  else {
    fprintf(stdout,"Don't apply smoothing to seismicity rates.\n");
  }
  fprintf(stdout,"Seismicity rates (10^a) written to files, %s[_M0/3/4/5.out]\n", outfnm); 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq 0x9aa5(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movss 0x14(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x10(%rbp), %rax
movss 0x18(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
leaq 0x63b0(%rip), %rsi      # 0x8907
movb $0x2, %al
callq 0x10e0
movq 0x9a73(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movss 0xc(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x10(%rbp), %rax
movss 0x10(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
leaq 0x6394(%rip), %rsi      # 0x891d
movb $0x2, %al
callq 0x10e0
movq 0x9a41(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movss 0x20(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x10(%rbp), %rax
movss 0x1c(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
leaq 0x6379(%rip), %rsi      # 0x8934
movb $0x2, %al
callq 0x10e0
movq 0x9a0f(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movl 0xc(%rax), %edx
leaq 0x6371(%rip), %rsi      # 0x894b
movb $0x0, %al
callq 0x10e0
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x2635
movq 0x99dd(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movss 0x3c(%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x8(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movl 0x14(%rax,%rcx,4), %edx
leaq 0x635c(%rip), %rsi      # 0x897f
movb $0x1, %al
callq 0x10e0
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x25e8
movq 0x999c(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %edx
leaq 0x633e(%rip), %rsi      # 0x898a
movb $0x0, %al
callq 0x10e0
movq 0x997e(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x18(%rbp), %rdx
addq $0x10, %rdx
leaq 0x6338(%rip), %rsi      # 0x89a4
movb $0x0, %al
callq 0x10e0
movq 0x995e(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x18(%rbp), %rax
movss 0x4(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x18(%rbp), %rax
movss 0x8(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
movq -0x18(%rbp), %rax
movss 0xc(%rax), %xmm2
cvtss2sd %xmm2, %xmm2
leaq 0x6313(%rip), %rsi      # 0x89be
movb $0x3, %al
callq 0x10e0
movq -0x8(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x26d6
movq 0x9915(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6317(%rip), %rsi      # 0x89e4
movb $0x0, %al
callq 0x10e0
jmp 0x26ee
movq 0x98fb(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6326(%rip), %rsi      # 0x8a0d
movb $0x0, %al
callq 0x10e0
movq -0x20(%rbp), %rax
cmpl $0x0, 0x14(%rax)
je 0x2712
movq 0x98d9(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6331(%rip), %rsi      # 0x8a3a
movb $0x0, %al
callq 0x10e0
jmp 0x272a
movq 0x98bf(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6346(%rip), %rsi      # 0x8a69
movb $0x0, %al
callq 0x10e0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x274d
movq 0x989e(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6368(%rip), %rsi      # 0x8aac
movb $0x0, %al
callq 0x10e0
jmp 0x2765
movq 0x9884(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6368(%rip), %rsi      # 0x8ac6
movb $0x0, %al
callq 0x10e0
movq -0x20(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x2789
movq 0x9862(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6361(%rip), %rsi      # 0x8ae1
movb $0x0, %al
callq 0x10e0
jmp 0x27a1
movq 0x9848(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6364(%rip), %rsi      # 0x8afe
movb $0x0, %al
callq 0x10e0
movq -0x20(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x289f
movq 0x9822(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6361(%rip), %rsi      # 0x8b21
movb $0x0, %al
callq 0x10e0
movq -0x20(%rbp), %rax
cmpl $0x0, 0x20(%rax)
je 0x27eb
movq 0x9800(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6367(%rip), %rsi      # 0x8b49
movb $0x0, %al
callq 0x10e0
jmp 0x2803
movq 0x97e6(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6364(%rip), %rsi      # 0x8b60
movb $0x0, %al
callq 0x10e0
movq -0x20(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x2878
movq 0x97c4(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x635a(%rip), %rsi      # 0x8b78
movb $0x0, %al
callq 0x10e0
movq -0x20(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jne 0x2850
movq 0x97a2(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x20(%rbp), %rax
movl 0x18(%rax), %edx
leaq 0x6348(%rip), %rsi      # 0x8b8f
movb $0x0, %al
callq 0x10e0
jmp 0x2876
movq 0x9781(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x20(%rbp), %rax
movl 0x18(%rax), %edx
movq -0x20(%rbp), %rax
movl 0x1c(%rax), %ecx
leaq 0x6334(%rip), %rsi      # 0x8ba3
movb $0x0, %al
callq 0x10e0
jmp 0x289d
movq 0x9759(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x20(%rbp), %rax
movss 0x2c(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x6450(%rip), %rsi      # 0x8ce6
movb $0x1, %al
callq 0x10e0
jmp 0x28b7
movq 0x9732(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x6317(%rip), %rsi      # 0x8bc7
movb $0x0, %al
callq 0x10e0
movq 0x971a(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
movq -0x28(%rbp), %rdx
leaq 0x6327(%rip), %rsi      # 0x8bf3
movb $0x0, %al
callq 0x10e0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)