// File: /workspace/github_cpp_makefile_star2_O1/jkingan[P]ladyheather/heathui.cpp
// Function: config_lla_plots(int, int)
void config_lla_plots(int keep, int show_lla)
{
    // config G1 G2 and G3 plots to show lat/lon/alt, G6 for DOP
    //   keep=0: disable LLA plots in position hold mode
    //   keep=1: keep LLA plot state in position hold mode
    graph_lla = 0;
    if(lte_lite) ;
    else if(rcvr_type == RFTG_RCVR) ;
    else if(rcvr_type == TIDE_RCVR) ;
    else if(NO_SATS) return;
    if(rcvr_type == ZYFER_RCVR) return;

    plot[ONE].plot_center = (DATA_SIZE) (lat * RAD_TO_DEG);
    plot[ONE].float_center = 1;
    plot[ONE].plot_id = "Lat";
    plot[ONE].units = deg_string;

    plot[TWO].plot_center = (DATA_SIZE) (lon * RAD_TO_DEG);
    plot[TWO].float_center = 1;
    plot[TWO].plot_id = "Lon";
    plot[TWO].units = deg_string;

    plot[THREE].plot_center = (DATA_SIZE) alt;
    plot[THREE].float_center = 1;
    plot[THREE].plot_id = "Alt";
    plot[THREE].units = alt_scale;

    if(show_lla == KEEP_LLA_SHOW) {  // keep current LLA show values
    }
    else if(show_lla == DISABLE_LLA_SHOW) {   // disable showing LLA plots
       plot[ONE].show_plot = 0;
       plot[TWO].show_plot = 0;
       plot[THREE].show_plot = 0;
    }
    else if(show_lla == ENABLE_LLA_SHOW) {   // enable shown LLA plots
       plot[ONE].show_plot = 1;
       plot[TWO].show_plot = 1;
       plot[THREE].show_plot = 1;
    }


    if(1 && (rcvr_type == TIDE_RCVR)) {
       plot[ONE].units = "mm";
       plot[TWO].units = "mm";
       plot[THREE].units = "mm";

       plot[SIX].plot_id = "Grav";
       plot[SIX].units = "uGal";
       plot[SIX].show_plot = 0;
    }
    else if((rcvr_type == RFTG_RCVR) || (rcvr_type == UCCM_RCVR)) {
      plot[SIX].plot_id = "AntI";
      plot[SIX].units = "mA";
      plot[SIX].scale_factor = 1.0;
      plot[SIX].ref_scale = (DATA_SIZE) 1.0;
    }
    else {
       plot[SIX].plot_center = 0.0F;
       plot[SIX].float_center = 1;
       plot[SIX].plot_id = "DOP";
       plot[SIX].units = " ";
    }

    graph_lla = 1;
    if(keep) keep_lla_plots = keep;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x300513(%rip), %rax    # 0x33b2c4
movb $0x0, (%rax)
leaq 0x1e0215(%rip), %rcx    # 0x21afd0
cmpl $0x0, (%rcx)
leaq 0x1ddb0b(%rip), %rcx    # 0x2188d0
movq (%rcx), %rcx
je 0x3add8
cmpq $0x100000, %rcx         # imm = 0x100000
jne 0x3ae0e
jmp 0x3afbf
cmpq $0x400000, %rcx         # imm = 0x400000
je 0x3ae0e
cmpq $0x800000, %rcx         # imm = 0x800000
je 0x3ae0e
movabsq $0x105b8b0400, %rdx     # imm = 0x105B8B0400
testq %rdx, %rcx
setne %dl
cmpq $0x100000, %rcx         # imm = 0x100000
sete %r8b
orb %dl, %r8b
jne 0x3afbf
leaq 0x2d21bb(%rip), %rdx    # 0x30cfd0
movsd 0xce33b(%rip), %xmm0    # 0x109158
movsd (%rdx), %xmm1
mulsd %xmm0, %xmm1
leaq 0x122f04(%rip), %rdx    # 0x15dd30
movsd %xmm1, 0x3c8(%rdx)
movl $0x1, %r8d
movl %r8d, 0x3bc(%rdx)
leaq 0xe304e(%rip), %r9      # 0x11de96
movq %r9, 0x3a0(%rdx)
leaq 0x2d2150(%rip), %r9     # 0x30cfa6
leaq 0x2d217b(%rip), %r10    # 0x30cfd8
mulsd (%r10), %xmm0
movq %r9, 0x3a8(%rdx)
movsd %xmm0, 0x4b0(%rdx)
movl %r8d, 0x4a4(%rdx)
leaq 0xe301b(%rip), %r10     # 0x11de9a
movq %r10, 0x488(%rdx)
movq %r9, 0x490(%rdx)
leaq 0x2d214c(%rip), %r9     # 0x30cfe0
movsd (%r9), %xmm0
movsd %xmm0, 0x598(%rdx)
movl %r8d, 0x58c(%rdx)
leaq 0xe2fef(%rip), %r9      # 0x11de9e
movq %r9, 0x570(%rdx)
leaq 0x2d20eb(%rip), %r9     # 0x30cfa8
movq (%r9), %r9
movq %r9, 0x578(%rdx)
cmpl %r8d, %esi
je 0x3aed8
cmpl $0x2, %esi
jne 0x3aeec
movl $0x1, %esi
jmp 0x3aeda
xorl %esi, %esi
movl %esi, 0x3b8(%rdx)
movl %esi, 0x4a0(%rdx)
movl %esi, 0x588(%rdx)
cmpq $0x8, %rcx
je 0x3af48
cmpq $0x400000, %rcx         # imm = 0x400000
je 0x3af48
cmpq $0x800000, %rcx         # imm = 0x800000
jne 0x3af7e
leaq 0xe2db0(%rip), %rcx     # 0x11dcbb
movq %rcx, 0x3a8(%rdx)
movq %rcx, 0x490(%rdx)
movq %rcx, 0x578(%rdx)
leaq 0xe2da3(%rip), %rcx     # 0x11dcca
movq %rcx, 0x828(%rdx)
leaq 0xe2d9a(%rip), %rcx     # 0x11dccf
movq %rcx, 0x830(%rdx)
movl $0x0, 0x840(%rdx)
jmp 0x3afaf
leaq 0xe2e8a(%rip), %rcx     # 0x11ddd9
movq %rcx, 0x828(%rdx)
leaq 0xf4054(%rip), %rcx     # 0x12efb1
movq %rcx, 0x830(%rdx)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x860(%rdx)
movq %rcx, 0x838(%rdx)
jmp 0x3afaf
movq $0x0, 0x850(%rdx)
movl $0x1, 0x844(%rdx)
leaq 0xe2eea(%rip), %rcx     # 0x11de84
movq %rcx, 0x828(%rdx)
leaq 0xe7acc(%rip), %rcx     # 0x122a74
movq %rcx, 0x830(%rdx)
movb $0x1, (%rax)
testl %edi, %edi
je 0x3afbf
leaq 0x300313(%rip), %rax    # 0x33b2d0
movl %edi, (%rax)
popq %rbp
retq