// File: /workspace/github_cpp_makefile_star2_O2/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 0x2ed86c(%rip), %rax    # 0x3252c4
movb $0x0, (%rax)
leaq 0x1cd56e(%rip), %rcx    # 0x204fd0
cmpl $0x0, (%rcx)
leaq 0x1cae64(%rip), %rcx    # 0x2028d0
movq (%rcx), %rcx
je 0x37a7f
cmpq $0x100000, %rcx         # imm = 0x100000
jne 0x37ab5
jmp 0x37c5f
cmpq $0x400000, %rcx         # imm = 0x400000
je 0x37ab5
cmpq $0x800000, %rcx         # imm = 0x800000
je 0x37ab5
movabsq $0x105b8b0400, %rdx     # imm = 0x105B8B0400
testq %rdx, %rcx
setne %dl
cmpq $0x100000, %rcx         # imm = 0x100000
sete %r8b
orb %dl, %r8b
jne 0x37c5f
leaq 0x2bf514(%rip), %rdx    # 0x2f6fd0
movsd 0xbb69c(%rip), %xmm0    # 0xf3160
movsd (%rdx), %xmm1
mulsd %xmm0, %xmm1
leaq 0x11025d(%rip), %rdx    # 0x147d30
movsd %xmm1, 0x3c8(%rdx)
movl $0x1, %r8d
movl %r8d, 0x3bc(%rdx)
leaq 0xd04b6(%rip), %r9      # 0x107fa5
movq %r9, 0x3a0(%rdx)
leaq 0x2bf4a9(%rip), %r9     # 0x2f6fa6
leaq 0x2bf4d4(%rip), %r10    # 0x2f6fd8
mulsd (%r10), %xmm0
movq %r9, 0x3a8(%rdx)
movsd %xmm0, 0x4b0(%rdx)
movl %r8d, 0x4a4(%rdx)
leaq 0xd0483(%rip), %r10     # 0x107fa9
movq %r10, 0x488(%rdx)
movq %r9, 0x490(%rdx)
leaq 0x2bf4a5(%rip), %r9     # 0x2f6fe0
movsd (%r9), %xmm0
movsd %xmm0, 0x598(%rdx)
movl %r8d, 0x58c(%rdx)
leaq 0xd0457(%rip), %r9      # 0x107fad
movq %r9, 0x570(%rdx)
leaq 0x2bf444(%rip), %r9     # 0x2f6fa8
movq (%r9), %r9
movq %r9, 0x578(%rdx)
cmpl %r8d, %esi
je 0x37b7a
cmpl $0x2, %esi
je 0x37b7d
jmp 0x37b92
xorl %r8d, %r8d
movl %r8d, 0x3b8(%rdx)
movl %r8d, 0x4a0(%rdx)
movl %r8d, 0x588(%rdx)
cmpq $0x8, %rcx
je 0x37beb
cmpq $0x400000, %rcx         # imm = 0x400000
je 0x37beb
cmpq $0x800000, %rcx         # imm = 0x800000
jne 0x37c21
leaq 0xd021e(%rip), %rcx     # 0x107dcf
movq %rcx, 0x3a8(%rdx)
movq %rcx, 0x490(%rdx)
movq %rcx, 0x578(%rdx)
leaq 0xd0211(%rip), %rcx     # 0x107dde
movq %rcx, 0x828(%rdx)
leaq 0xd0208(%rip), %rcx     # 0x107de3
movq %rcx, 0x830(%rdx)
andl $0x0, 0x840(%rdx)
jmp 0x37c4f
leaq 0xd02fb(%rip), %rcx     # 0x107eed
movq %rcx, 0x828(%rdx)
leaq 0xe13c1(%rip), %rcx     # 0x118fc1
movq %rcx, 0x830(%rdx)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x860(%rdx)
movq %rcx, 0x838(%rdx)
jmp 0x37c4f
andq $0x0, 0x850(%rdx)
movl $0x1, 0x844(%rdx)
leaq 0xd035e(%rip), %rcx     # 0x107f98
movq %rcx, 0x828(%rdx)
leaq 0xd4e54(%rip), %rcx     # 0x10ca9c
movq %rcx, 0x830(%rdx)
movb $0x1, (%rax)
testl %edi, %edi
je 0x37c5f
leaq 0x2ed673(%rip), %rax    # 0x3252d0
movl %edi, (%rax)
popq %rbp
retq