// File: /workspace/github_c_makefile_star2_O3/OnionIoT[P]lv_example/lvgl/src/lv_themes/lv_theme_material.c
// Function: style_mod_edit
static void style_mod_edit(lv_group_t * group, lv_style_t * style)
{
    (void)group; /*Unused*/
#if LV_COLOR_DEPTH != 1
    uint16_t hue2 = (_hue + 300) % 360;

    /*Make the style to be a little bit orange*/
    style->body.border.opa   = LV_OPA_COVER;
    style->body.border.color = LV_COLOR_GREEN;

    /*If not empty or has border then emphasis the border*/
    if(style->body.opa != LV_OPA_TRANSP || style->body.border.width != 0) style->body.border.width = LV_DPI / 30;


    style->body.main_color   = lv_color_mix(style->body.main_color, lv_color_hsv_to_rgb(hue2, 90, 70), LV_OPA_70);
    style->body.grad_color   = lv_color_mix(style->body.grad_color, lv_color_hsv_to_rgb(hue2, 90, 70), LV_OPA_70);
    style->body.shadow.color = lv_color_mix(style->body.shadow.color, lv_color_hsv_to_rgb(hue2, 90, 70), LV_OPA_60);

    style->text.color = lv_color_mix(style->text.color, lv_color_hsv_to_rgb(hue2, 90, 70), LV_OPA_70);
#else
    style->body.border.opa   = LV_OPA_COVER;
    style->body.border.color = LV_COLOR_BLACK;
    style->body.border.width = 3;
#endif
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movzwl 0x3b429(%rip), %r14d    # 0x6e990
movb $-0x1, 0xf(%rsi)
movw $0x400, 0xa(%rsi)       # imm = 0x400
cmpb $0x0, 0x8(%rsi)
jne 0x3357e
cmpw $0x0, 0xc(%rbx)
je 0x33584
movw $0x3, 0xc(%rbx)
addl $0x12c, %r14d           # imm = 0x12C
imulq $0xb60b61, %r14, %rax   # imm = 0xB60B61
shrq $0x20, %rax
imull $0x168, %eax, %eax      # imm = 0x168
subl %eax, %r14d
movl %r14d, %edi
movl $0x5a, %esi
movl $0x46, %edx
callq 0x2a624
movzwl %ax, %edx
movzwl 0x2(%rbx), %esi
movl %esi, %ecx
shrl $0xb, %ecx
imull $0xb2, %ecx, %edi
movl %edx, %ecx
shrl $0xb, %ecx
imull $0x4d, %ecx, %ecx
addl %edi, %ecx
andl $0xffff3f00, %ecx       # imm = 0xFFFF3F00
movl %esi, %edi
shrl $0x5, %edi
andl $0x3f, %edi
imull $0xb2, %edi, %edi
shrl $0x5, %edx
andl $0x3f, %edx
imull $0x4d, %edx, %edx
addl %edi, %edx
shrl $0x3, %edx
movl $0x7e0, %ebp            # imm = 0x7E0
andl %ebp, %edx
andl $0x1f, %esi
imull $0xb2, %esi, %esi
andl $0x1f, %eax
imull $0x4d, %eax, %eax
addl %esi, %eax
movzbl %ah, %eax
leal (%rax,%rcx,8), %eax
orl %edx, %eax
movw %ax, 0x2(%rbx)
movl %r14d, %edi
movl $0x5a, %esi
movl $0x46, %edx
callq 0x2a624
movzwl %ax, %edx
movzwl 0x4(%rbx), %esi
movl %esi, %ecx
shrl $0xb, %ecx
imull $0xb2, %ecx, %edi
movl %edx, %ecx
shrl $0xb, %ecx
imull $0x4d, %ecx, %ecx
addl %edi, %ecx
andl $0xffff3f00, %ecx       # imm = 0xFFFF3F00
movl %esi, %edi
shrl $0x5, %edi
andl $0x3f, %edi
imull $0xb2, %edi, %edi
shrl $0x5, %edx
andl $0x3f, %edx
imull $0x4d, %edx, %edx
addl %edi, %edx
shrl $0x3, %edx
andl %ebp, %edx
andl $0x1f, %esi
imull $0xb2, %esi, %esi
andl $0x1f, %eax
imull $0x4d, %eax, %eax
addl %esi, %eax
movzbl %ah, %eax
leal (%rax,%rcx,8), %eax
orl %edx, %eax
movw %ax, 0x4(%rbx)
movl %r14d, %edi
movl $0x5a, %esi
movl $0x46, %edx
callq 0x2a624
movzwl %ax, %edx
movzwl 0x10(%rbx), %esi
movl %esi, %ecx
shrl $0xb, %ecx
imull $0x99, %ecx, %edi
movl %edx, %ecx
shrl $0xb, %ecx
imull $0x66, %ecx, %ecx
addl %edi, %ecx
andl $0xffff3f00, %ecx       # imm = 0xFFFF3F00
movl %esi, %edi
shrl $0x5, %edi
andl $0x3f, %edi
imull $0x99, %edi, %edi
shrl $0x5, %edx
andl $0x3f, %edx
imull $0x66, %edx, %edx
addl %edi, %edx
shrl $0x3, %edx
andl %ebp, %edx
andl $0x1f, %esi
imull $0x99, %esi, %esi
andl $0x1f, %eax
imull $0x66, %eax, %eax
addl %esi, %eax
movzbl %ah, %eax
leal (%rax,%rcx,8), %eax
orl %edx, %eax
movw %ax, 0x10(%rbx)
movl %r14d, %edi
movl $0x5a, %esi
movl $0x46, %edx
callq 0x2a624
movzwl %ax, %edx
movzwl 0x20(%rbx), %esi
movl %esi, %ecx
shrl $0xb, %ecx
imull $0xb2, %ecx, %edi
movl %edx, %ecx
shrl $0xb, %ecx
imull $0x4d, %ecx, %ecx
addl %edi, %ecx
andl $0xffff3f00, %ecx       # imm = 0xFFFF3F00
movl %esi, %edi
shrl $0x5, %edi
andl $0x3f, %edi
imull $0xb2, %edi, %edi
shrl $0x5, %edx
andl $0x3f, %edx
imull $0x4d, %edx, %edx
addl %edi, %edx
shrl $0x3, %edx
andl %ebp, %edx
andl $0x1f, %esi
imull $0xb2, %esi, %esi
andl $0x1f, %eax
imull $0x4d, %eax, %eax
addl %esi, %eax
movzbl %ah, %eax
leal (%rax,%rcx,8), %eax
orl %edx, %eax
movw %ax, 0x20(%rbx)
popq %rbx
popq %r14
popq %rbp
retq