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

    /*Make the style to be a little bit orange*/
    style->body.border.opa   = LV_OPA_COVER;
    style->body.border.color = lv_color_hsv_to_rgb(hue2, 90, 70);

    /*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 = 2;
#endif
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movzwl 0x3bb64(%rip), %eax     # 0x6e990
movl %eax, %ecx
addl $0x3c, %ecx
imulq $0xb60b61, %rcx, %rcx   # imm = 0xB60B61
shrq $0x20, %rcx
imull $0x168, %ecx, %ecx      # imm = 0x168
negl %ecx
leal (%rax,%rcx), %ebp
addl $0x3c, %ebp
movb $-0x1, 0xf(%rsi)
movl %ebp, %edi
movl $0x5a, %esi
movl $0x46, %edx
callq 0x29fe4
movw %ax, 0xa(%rbx)
cmpb $0x0, 0x8(%rbx)
jne 0x32e70
cmpw $0x0, 0xc(%rbx)
je 0x32e76
movw $0x3, 0xc(%rbx)
movzwl %bp, %ebp
movl %ebp, %edi
movl $0x5a, %esi
movl $0x46, %edx
callq 0x29fe4
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, %r14d           # imm = 0x7E0
andl %r14d, %edx
andl $0x1f, %esi
imull $0xb2, %esi, %esi
andl $0x1f, %eax
imull $0x4d, %eax, %eax
addl %esi, %eax
shrl $0x8, %eax
andl $0x1f, %eax
leal (%rax,%rcx,8), %eax
orl %edx, %eax
movw %ax, 0x2(%rbx)
movl %ebp, %edi
movl $0x5a, %esi
movl $0x46, %edx
callq 0x29fe4
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 %r14d, %edx
andl $0x1f, %esi
imull $0xb2, %esi, %esi
andl $0x1f, %eax
imull $0x4d, %eax, %eax
addl %esi, %eax
shrl $0x8, %eax
andl $0x1f, %eax
leal (%rax,%rcx,8), %eax
orl %edx, %eax
movw %ax, 0x4(%rbx)
movl %ebp, %edi
movl $0x5a, %esi
movl $0x46, %edx
callq 0x29fe4
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 %r14d, %edx
andl $0x1f, %esi
imull $0x99, %esi, %esi
andl $0x1f, %eax
imull $0x66, %eax, %eax
addl %esi, %eax
shrl $0x8, %eax
andl $0x1f, %eax
leal (%rax,%rcx,8), %eax
orl %edx, %eax
movw %ax, 0x10(%rbx)
movl %ebp, %edi
movl $0x5a, %esi
movl $0x46, %edx
callq 0x29fe4
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 %r14d, %edx
andl $0x1f, %esi
imull $0xb2, %esi, %esi
andl $0x1f, %eax
imull $0x4d, %eax, %eax
addl %esi, %eax
shrl $0x8, %eax
andl $0x1f, %eax
leal (%rax,%rcx,8), %eax
orl %edx, %eax
movw %ax, 0x20(%rbx)
popq %rbx
popq %r14
popq %rbp
retq