// File: /workspace/github_c_makefile_star2_O0/OnionIoT[P]lv_example/lvgl/src/lv_objx/lv_chart.c
// Function: lv_chart_draw_points
static void lv_chart_draw_points(lv_obj_t * chart, const lv_area_t * mask)
{
    lv_chart_ext_t * ext = lv_obj_get_ext_attr(chart);

    uint16_t i;
    lv_area_t cir_a;
    lv_coord_t w     = lv_obj_get_width(chart);
    lv_coord_t h     = lv_obj_get_height(chart);
    lv_coord_t x_ofs = chart->coords.x1;
    lv_coord_t y_ofs = chart->coords.y1;
    int32_t y_tmp;
    lv_coord_t p_act;
    lv_chart_series_t * ser;
    uint8_t series_cnt = 0;
    lv_style_t style_point;
    lv_style_copy(&style_point, &lv_style_plain);

    style_point.body.border.width = 0;
    style_point.body.radius       = LV_RADIUS_CIRCLE;
    style_point.body.opa          = ext->series.opa;
    style_point.body.radius       = ext->series.width;

    /*Go through all data lines*/

    LV_LL_READ_BACK(ext->series_ll, ser)
    {
        lv_coord_t start_point = ext->update_mode == LV_CHART_UPDATE_MODE_SHIFT ? ser->start_point : 0;

        style_point.body.main_color = ser->color;
        style_point.body.grad_color = lv_color_mix(LV_COLOR_BLACK, ser->color, ext->series.dark);

        for(i = 0; i < ext->point_cnt; i++) {
            cir_a.x1 = ((w * i) / (ext->point_cnt - 1)) + x_ofs;
            cir_a.x2 = cir_a.x1 + style_point.body.radius;
            cir_a.x1 -= style_point.body.radius;

            p_act = (start_point + i) % ext->point_cnt;
            y_tmp = (int32_t)((int32_t)ser->points[p_act] - ext->ymin) * h;
            y_tmp = y_tmp / (ext->ymax - ext->ymin);

            cir_a.y1 = h - y_tmp + y_ofs;
            cir_a.y2 = cir_a.y1 + style_point.body.radius;
            cir_a.y1 -= style_point.body.radius;

            if(ser->points[p_act] != LV_CHART_POINT_DEF)
                lv_draw_rect(&cir_a, mask, &style_point, lv_obj_get_opa_scale(chart));
        }
        series_cnt++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0xa8f0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0x8310
movw %ax, -0x24(%rbp)
movq -0x8(%rbp), %rdi
callq 0x8350
movw %ax, -0x26(%rbp)
movq -0x8(%rbp), %rax
movw 0x20(%rax), %ax
movw %ax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movw 0x22(%rax), %ax
movw %ax, -0x2a(%rbp)
movb $0x0, -0x41(%rbp)
leaq -0x90(%rbp), %rdi
leaq 0x63e44(%rip), %rsi     # 0x88fe8
callq 0xc550
movw $0x0, -0x84(%rbp)
movw $0x7c18, -0x8a(%rbp)    # imm = 0x7C18
movq -0x18(%rbp), %rax
movb 0x5f(%rax), %al
movb %al, -0x88(%rbp)
movq -0x18(%rbp), %rax
movw 0x5c(%rax), %ax
movw %ax, -0x8a(%rbp)
movq -0x18(%rbp), %rdi
callq 0x458e0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x25414
movq -0x18(%rbp), %rax
movb 0x5a(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x25210
movq -0x40(%rbp), %rax
movzwl 0xa(%rax), %eax
movl %eax, -0x9c(%rbp)
jmp 0x2521a
xorl %eax, %eax
movl %eax, -0x9c(%rbp)
jmp 0x2521a
movl -0x9c(%rbp), %eax
movw %ax, -0x92(%rbp)
movq -0x40(%rbp), %rax
movw 0x8(%rax), %ax
movw %ax, -0x8e(%rbp)
movw -0x96(%rbp), %ax
andw $-0x20, %ax
orw $0x0, %ax
movw %ax, -0x96(%rbp)
movw -0x96(%rbp), %ax
andw $0xf81f, %ax            # imm = 0xF81F
orw $0x0, %ax
movw %ax, -0x96(%rbp)
movw -0x96(%rbp), %ax
andw $0x7ff, %ax             # imm = 0x7FF
orw $0x0, %ax
movw %ax, -0x96(%rbp)
movq -0x40(%rbp), %rcx
movq -0x18(%rbp), %rax
movb 0x60(%rax), %al
movw -0x96(%rbp), %dx
movzwl %dx, %edi
movzwl 0x8(%rcx), %esi
movzbl %al, %edx
callq 0x25a10
movw %ax, -0x94(%rbp)
movw -0x94(%rbp), %ax
movw %ax, -0x8c(%rbp)
movw $0x0, -0x1a(%rbp)
movzwl -0x1a(%rbp), %eax
movq -0x18(%rbp), %rcx
movzwl 0x1e(%rcx), %ecx
cmpl %ecx, %eax
jge 0x253f6
movswl -0x24(%rbp), %eax
movzwl -0x1a(%rbp), %ecx
imull %ecx, %eax
movq -0x18(%rbp), %rcx
movzwl 0x1e(%rcx), %ecx
subl $0x1, %ecx
cltd
idivl %ecx
movswl -0x28(%rbp), %ecx
addl %ecx, %eax
movw %ax, -0x22(%rbp)
movswl -0x22(%rbp), %eax
movswl -0x8a(%rbp), %ecx
addl %ecx, %eax
movw %ax, -0x1e(%rbp)
movswl -0x8a(%rbp), %ecx
movswl -0x22(%rbp), %eax
subl %ecx, %eax
movw %ax, -0x22(%rbp)
movswl -0x92(%rbp), %eax
movzwl -0x1a(%rbp), %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movzwl 0x1e(%rcx), %ecx
cltd
idivl %ecx
movw %dx, %ax
movw %ax, -0x32(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rax
movswq -0x32(%rbp), %rcx
movswl (%rax,%rcx,2), %eax
movq -0x18(%rbp), %rcx
movswl 0x18(%rcx), %ecx
subl %ecx, %eax
movswl -0x26(%rbp), %ecx
imull %ecx, %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x18(%rbp), %rcx
movswl 0x1a(%rcx), %ecx
movq -0x18(%rbp), %rdx
movswl 0x18(%rdx), %edx
subl %edx, %ecx
cltd
idivl %ecx
movl %eax, -0x30(%rbp)
movswl -0x26(%rbp), %eax
subl -0x30(%rbp), %eax
movswl -0x2a(%rbp), %ecx
addl %ecx, %eax
movw %ax, -0x20(%rbp)
movswl -0x20(%rbp), %eax
movswl -0x8a(%rbp), %ecx
addl %ecx, %eax
movw %ax, -0x1c(%rbp)
movswl -0x8a(%rbp), %ecx
movswl -0x20(%rbp), %eax
subl %ecx, %eax
movw %ax, -0x20(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rax
movswq -0x32(%rbp), %rcx
movswl (%rax,%rcx,2), %eax
cmpl $0xffff83e8, %eax       # imm = 0xFFFF83E8
je 0x253e3
movq -0x10(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x8(%rbp), %rdi
callq 0xa710
movq -0xa8(%rbp), %rsi
leaq -0x22(%rbp), %rdi
leaq -0x90(%rbp), %rdx
movzbl %al, %ecx
callq 0x5a9e0
jmp 0x253e5
movw -0x1a(%rbp), %ax
addw $0x1, %ax
movw %ax, -0x1a(%rbp)
jmp 0x252b4
movb -0x41(%rbp), %al
addb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x18(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x45690
movq %rax, -0x40(%rbp)
jmp 0x251e4
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax)