// File: 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
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
leaq 0x3476c3(%rip), %rax    # 0x39a4a4
movb $0x0, (%rax)
leaq 0x2273c5(%rip), %rax    # 0x27a1b0
cmpl $0x0, (%rax)
je 0x52df2
jmp 0x52e6f
leaq 0x224cb7(%rip), %rax    # 0x277ab0
cmpq $0x400000, (%rax)       # imm = 0x400000
jne 0x52e04
jmp 0x52e6d
leaq 0x224ca5(%rip), %rax    # 0x277ab0
cmpq $0x800000, (%rax)       # imm = 0x800000
jne 0x52e16
jmp 0x52e6b
leaq 0x224c93(%rip), %rcx    # 0x277ab0
movabsq $0x105b8b0400, %rax     # imm = 0x105B8B0400
andq (%rcx), %rax
cmpq $0x0, %rax
jne 0x52e64
leaq 0x227379(%rip), %rax    # 0x27a1b0
cmpl $0x0, (%rax)
je 0x52e48
leaq 0x319761(%rip), %rax    # 0x36c5a4
cmpl $0x0, (%rax)
je 0x52e64
leaq 0x224c61(%rip), %rax    # 0x277ab0
cmpq $0x400000, (%rax)       # imm = 0x400000
jne 0x52e69
leaq 0x319d35(%rip), %rax    # 0x36cb94
cmpl $0x0, (%rax)
jne 0x52e69
jmp 0x53187
jmp 0x52e6b
jmp 0x52e6d
jmp 0x52e6f
leaq 0x224c3a(%rip), %rax    # 0x277ab0
cmpq $0x100000, (%rax)       # imm = 0x100000
jne 0x52e84
jmp 0x53187
movsd 0x11c2f4(%rip), %xmm0   # 0x16f180
leaq 0x31931d(%rip), %rax    # 0x36c1b0
mulsd (%rax), %xmm0
leaq 0x169e82(%rip), %rax    # 0x1bcd20
movsd %xmm0, 0x3c8(%rax)
leaq 0x169e73(%rip), %rax    # 0x1bcd20
movl $0x1, 0x3bc(%rax)
leaq 0x169e62(%rip), %rax    # 0x1bcd20
leaq 0x12fa77(%rip), %rcx    # 0x18293c
movq %rcx, 0x3a0(%rax)
leaq 0x169e4d(%rip), %rax    # 0x1bcd20
leaq 0x3192ac(%rip), %rcx    # 0x36c186
movq %rcx, 0x3a8(%rax)
movsd 0x11c297(%rip), %xmm0   # 0x16f180
leaq 0x3192c8(%rip), %rax    # 0x36c1b8
mulsd (%rax), %xmm0
leaq 0x169e25(%rip), %rax    # 0x1bcd20
movsd %xmm0, 0x4b0(%rax)
leaq 0x169e16(%rip), %rax    # 0x1bcd20
movl $0x1, 0x4a4(%rax)
leaq 0x169e05(%rip), %rax    # 0x1bcd20
leaq 0x12fa1e(%rip), %rcx    # 0x182940
movq %rcx, 0x488(%rax)
leaq 0x169df0(%rip), %rax    # 0x1bcd20
leaq 0x31924f(%rip), %rcx    # 0x36c186
movq %rcx, 0x490(%rax)
leaq 0x31927b(%rip), %rax    # 0x36c1c0
movsd (%rax), %xmm0
leaq 0x169dd0(%rip), %rax    # 0x1bcd20
movsd %xmm0, 0x598(%rax)
leaq 0x169dc1(%rip), %rax    # 0x1bcd20
movl $0x1, 0x58c(%rax)
leaq 0x169db0(%rip), %rax    # 0x1bcd20
leaq 0x12f9cd(%rip), %rcx    # 0x182944
movq %rcx, 0x570(%rax)
leaq 0x319203(%rip), %rax    # 0x36c188
movq (%rax), %rcx
leaq 0x169d91(%rip), %rax    # 0x1bcd20
movq %rcx, 0x578(%rax)
cmpl $0x0, -0x8(%rbp)
jne 0x52f9e
jmp 0x53016
cmpl $0x1, -0x8(%rbp)
jne 0x52fd9
leaq 0x169d75(%rip), %rax    # 0x1bcd20
movl $0x0, 0x3b8(%rax)
leaq 0x169d64(%rip), %rax    # 0x1bcd20
movl $0x0, 0x4a0(%rax)
leaq 0x169d53(%rip), %rax    # 0x1bcd20
movl $0x0, 0x588(%rax)
jmp 0x53014
cmpl $0x2, -0x8(%rbp)
jne 0x53012
leaq 0x169d3a(%rip), %rax    # 0x1bcd20
movl $0x1, 0x3b8(%rax)
leaq 0x169d29(%rip), %rax    # 0x1bcd20
movl $0x1, 0x4a0(%rax)
leaq 0x169d18(%rip), %rax    # 0x1bcd20
movl $0x1, 0x588(%rax)
jmp 0x53014
jmp 0x53016
leaq 0x224a93(%rip), %rax    # 0x277ab0
cmpq $0x800000, (%rax)       # imm = 0x800000
jne 0x530a5
leaq 0x169cf3(%rip), %rax    # 0x1bcd20
leaq 0x12f737(%rip), %rcx    # 0x18276b
movq %rcx, 0x3a8(%rax)
leaq 0x169cde(%rip), %rax    # 0x1bcd20
leaq 0x12f722(%rip), %rcx    # 0x18276b
movq %rcx, 0x490(%rax)
leaq 0x169cc9(%rip), %rax    # 0x1bcd20
leaq 0x12f70d(%rip), %rcx    # 0x18276b
movq %rcx, 0x578(%rax)
leaq 0x169cb4(%rip), %rax    # 0x1bcd20
leaq 0x12f707(%rip), %rcx    # 0x18277a
movq %rcx, 0x828(%rax)
leaq 0x169c9f(%rip), %rax    # 0x1bcd20
leaq 0x12f6f7(%rip), %rcx    # 0x18277f
movq %rcx, 0x830(%rax)
leaq 0x169c8a(%rip), %rax    # 0x1bcd20
movl $0x0, 0x840(%rax)
jmp 0x5316b
leaq 0x224a04(%rip), %rax    # 0x277ab0
cmpq $0x400000, (%rax)       # imm = 0x400000
je 0x530c2
leaq 0x2249f4(%rip), %rax    # 0x277ab0
cmpq $0x8, (%rax)
jne 0x5311c
leaq 0x169c57(%rip), %rax    # 0x1bcd20
leaq 0x12f7b9(%rip), %rcx    # 0x182889
movq %rcx, 0x828(%rax)
leaq 0x169c42(%rip), %rax    # 0x1bcd20
leaq 0x13eab8(%rip), %rcx    # 0x191b9d
movq %rcx, 0x830(%rax)
leaq 0x169c2d(%rip), %rax    # 0x1bcd20
movsd 0x11bf6d(%rip), %xmm0   # 0x16f068
movsd %xmm0, 0x860(%rax)
leaq 0x169c16(%rip), %rax    # 0x1bcd20
movsd 0x11bf56(%rip), %xmm0   # 0x16f068
movsd %xmm0, 0x838(%rax)
jmp 0x53169
leaq 0x169bfd(%rip), %rax    # 0x1bcd20
xorps %xmm0, %xmm0
movsd %xmm0, 0x850(%rax)
leaq 0x169beb(%rip), %rax    # 0x1bcd20
movl $0x1, 0x844(%rax)
leaq 0x169bda(%rip), %rax    # 0x1bcd20
leaq 0x12f7e2(%rip), %rcx    # 0x18292f
movq %rcx, 0x828(%rax)
leaq 0x169bc5(%rip), %rax    # 0x1bcd20
leaq 0x132c82(%rip), %rcx    # 0x185de4
movq %rcx, 0x830(%rax)
jmp 0x5316b
leaq 0x347332(%rip), %rax    # 0x39a4a4
movb $0x1, (%rax)
cmpl $0x0, -0x4(%rbp)
je 0x53187
movl -0x4(%rbp), %ecx
leaq 0x34732b(%rip), %rax    # 0x39a4b0
movl %ecx, (%rax)
popq %rbp
retq
nopl (%rax)