// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/source.c
// Function: source_print
void source_print(Source* src) {
    wlog("    index:  %ld\n", src->index);
    wlog("    ra:     %lf\n", src->ra);
    wlog("    dec:    %lf\n", src->dec);
    wlog("    g1:     %lf\n", src->g1);
    wlog("    g2:     %lf\n", src->g2);
    if (src->shear_style==SHEAR_STYLE_LENSFIT) {
        wlog("    g1sens: %lf\n", src->g1sens);
        wlog("    g2sens: %lf\n", src->g2sens);
    }
    wlog("    weight: %lf\n", src->weight);
    wlog("    hpixid: %ld\n", src->hpixid);

    if (src->mask_style == MASK_STYLE_SDSS) {
        wlog("    sinlam: %lf\n", src->sinlam);
        wlog("    coslam: %lf\n", src->coslam);
        wlog("    sineta: %lf\n", src->sineta);
        wlog("    coseta: %lf\n", src->coseta);
    }

    if (src->scstyle == SIGMACRIT_STYLE_POINT) {
        wlog("    z:      %lf\n", src->z);
        wlog("    dc:     %lf\n", src->dc);
    } else if (src->scstyle == SIGMACRIT_STYLE_SAMPLE) {
        wlog("    z:      %lf\n", src->z);
        wlog("    dc:     %lf\n", src->dc);
        wlog("    zs:      %lf\n", src->zs);
        wlog("    dcs:     %lf\n", src->dcs);
    } else {
        size_t nzl = src->zlens->size;
        wlog("    zlens[0]: %lf  szinv[0]: %e\n", 
                src->zlens->data[0], src->scinv->data[0]);
        wlog("    zlens[%ld]: %lf  szinv[%ld]: %e\n", 
                nzl-1, src->zlens->data[nzl-1], nzl-1, src->scinv->data[nzl-1]);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0xcf5f(%rip), %r14      # 0xfff8
movq (%r14), %rdi
movq 0x10(%rbx), %rdx
leaq 0x7931(%rip), %rsi      # 0xa9d8
xorl %eax, %eax
callq 0x21b0
movq (%r14), %rdi
movsd 0x18(%rbx), %xmm0
leaq 0x792c(%rip), %rsi      # 0xa9e9
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0x20(%rbx), %xmm0
leaq 0x7927(%rip), %rsi      # 0xa9fa
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0x28(%rbx), %xmm0
leaq 0x7922(%rip), %rsi      # 0xaa0b
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0x30(%rbx), %xmm0
leaq 0x791d(%rip), %rsi      # 0xaa1c
movb $0x1, %al
callq 0x21b0
cmpl $0x2, (%rbx)
jne 0x3137
movq (%r14), %rdi
movsd 0x38(%rbx), %xmm0
leaq 0x7913(%rip), %rsi      # 0xaa2d
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0x40(%rbx), %xmm0
leaq 0x790e(%rip), %rsi      # 0xaa3e
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0x48(%rbx), %xmm0
leaq 0x7909(%rip), %rsi      # 0xaa4f
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movq 0x50(%rbx), %rdx
leaq 0x7905(%rip), %rsi      # 0xaa60
xorl %eax, %eax
callq 0x21b0
cmpl $0x2, 0x4(%rbx)
jne 0x31cc
movq (%r14), %rdi
movsd 0xa8(%rbx), %xmm0
leaq 0x78f7(%rip), %rsi      # 0xaa71
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0xb0(%rbx), %xmm0
leaq 0x78ef(%rip), %rsi      # 0xaa82
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0xb8(%rbx), %xmm0
leaq 0x78e7(%rip), %rsi      # 0xaa93
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0xc0(%rbx), %xmm0
leaq 0x78df(%rip), %rsi      # 0xaaa4
movb $0x1, %al
callq 0x21b0
movl 0x8(%rbx), %eax
cmpl $0x3, %eax
je 0x3204
cmpl $0x1, %eax
jne 0x3264
movq (%r14), %rdi
movsd 0x68(%rbx), %xmm0
leaq 0x78c9(%rip), %rsi      # 0xaab5
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0x70(%rbx), %xmm0
leaq 0x78c4(%rip), %rsi      # 0xaac6
jmp 0x3258
movq (%r14), %rdi
movsd 0x68(%rbx), %xmm0
leaq 0x78a2(%rip), %rsi      # 0xaab5
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0x70(%rbx), %xmm0
leaq 0x789d(%rip), %rsi      # 0xaac6
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0x78(%rbx), %xmm0
leaq 0x7898(%rip), %rsi      # 0xaad7
movb $0x1, %al
callq 0x21b0
movq (%r14), %rdi
movsd 0x80(%rbx), %xmm0
leaq 0x7891(%rip), %rsi      # 0xaae9
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
jmp 0x21b0
movq 0x58(%rbx), %rax
movq 0x60(%rbx), %rcx
movq (%r14), %rdi
movq (%rcx), %r15
movq 0x10(%rcx), %rcx
movsd (%rcx), %xmm0
movq 0x10(%rax), %rax
movsd (%rax), %xmm1
leaq 0x7872(%rip), %rsi      # 0xaafb
movb $0x2, %al
callq 0x21b0
movq (%r14), %rdi
leaq -0x1(%r15), %rcx
movq 0x58(%rbx), %rax
movq 0x60(%rbx), %rdx
movq 0x10(%rdx), %rdx
movsd -0x8(%rdx,%r15,8), %xmm0
movq 0x10(%rax), %rax
movsd -0x8(%rax,%r15,8), %xmm1
leaq 0x7860(%rip), %rsi      # 0xab1c
movq %rcx, %rdx
movb $0x2, %al
popq %rbx
popq %r14
popq %r15
jmp 0x21b0