// File: /workspace/github_cpp_makefile_star2_O3/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 0x30048d(%rip), %rax    # 0x33b2c4
movb $0x0, (%rax)
leaq 0x1e018f(%rip), %rcx    # 0x21afd0
cmpl $0x0, (%rcx)
leaq 0x1dda85(%rip), %rcx    # 0x2188d0
movq (%rcx), %rcx
je 0x3ae5e
cmpq $0x100000, %rcx         # imm = 0x100000
jne 0x3ae94
jmp 0x3b045
cmpq $0x400000, %rcx         # imm = 0x400000
je 0x3ae94
cmpq $0x800000, %rcx         # imm = 0x800000
je 0x3ae94
movabsq $0x105b8b0400, %rdx     # imm = 0x105B8B0400
testq %rdx, %rcx
setne %dl
cmpq $0x100000, %rcx         # imm = 0x100000
sete %r8b
orb %dl, %r8b
jne 0x3b045
leaq 0x2d2135(%rip), %rdx    # 0x30cfd0
movsd 0xce2bd(%rip), %xmm0    # 0x109160
movsd (%rdx), %xmm1
mulsd %xmm0, %xmm1
leaq 0x122e7e(%rip), %rdx    # 0x15dd30
movsd %xmm1, 0x3c8(%rdx)
movl $0x1, %r8d
movl %r8d, 0x3bc(%rdx)
leaq 0xe305c(%rip), %r9      # 0x11df2a
movq %r9, 0x3a0(%rdx)
leaq 0x2d20ca(%rip), %r9     # 0x30cfa6
leaq 0x2d20f5(%rip), %r10    # 0x30cfd8
mulsd (%r10), %xmm0
movq %r9, 0x3a8(%rdx)
movsd %xmm0, 0x4b0(%rdx)
movl %r8d, 0x4a4(%rdx)
leaq 0xe3029(%rip), %r10     # 0x11df2e
movq %r10, 0x488(%rdx)
movq %r9, 0x490(%rdx)
leaq 0x2d20c6(%rip), %r9     # 0x30cfe0
movsd (%r9), %xmm0
movsd %xmm0, 0x598(%rdx)
movl %r8d, 0x58c(%rdx)
leaq 0xe2ffd(%rip), %r9      # 0x11df32
movq %r9, 0x570(%rdx)
leaq 0x2d2065(%rip), %r9     # 0x30cfa8
movq (%r9), %r9
movq %r9, 0x578(%rdx)
cmpl %r8d, %esi
je 0x3af5e
cmpl $0x2, %esi
jne 0x3af72
movl $0x1, %esi
jmp 0x3af60
xorl %esi, %esi
movl %esi, 0x3b8(%rdx)
movl %esi, 0x4a0(%rdx)
movl %esi, 0x588(%rdx)
cmpq $0x8, %rcx
je 0x3afce
cmpq $0x400000, %rcx         # imm = 0x400000
je 0x3afce
cmpq $0x800000, %rcx         # imm = 0x800000
jne 0x3b004
leaq 0xe2dbe(%rip), %rcx     # 0x11dd4f
movq %rcx, 0x3a8(%rdx)
movq %rcx, 0x490(%rdx)
movq %rcx, 0x578(%rdx)
leaq 0xe2db1(%rip), %rcx     # 0x11dd5e
movq %rcx, 0x828(%rdx)
leaq 0xe2da8(%rip), %rcx     # 0x11dd63
movq %rcx, 0x830(%rdx)
movl $0x0, 0x840(%rdx)
jmp 0x3b035
leaq 0xe2e98(%rip), %rcx     # 0x11de6d
movq %rcx, 0x828(%rdx)
leaq 0xf40be(%rip), %rcx     # 0x12f0a1
movq %rcx, 0x830(%rdx)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x860(%rdx)
movq %rcx, 0x838(%rdx)
jmp 0x3b035
movq $0x0, 0x850(%rdx)
movl $0x1, 0x844(%rdx)
leaq 0xe2ef8(%rip), %rcx     # 0x11df18
movq %rcx, 0x828(%rdx)
leaq 0xe7b26(%rip), %rcx     # 0x122b54
movq %rcx, 0x830(%rdx)
movb $0x1, (%rax)
testl %edi, %edi
je 0x3b045
leaq 0x30028d(%rip), %rax    # 0x33b2d0
movl %edi, (%rax)
popq %rbp
retq