// File: /workspace/github_c_makefile_star2_O3/OnionIoT[P]lv_example/lvgl/src/lv_themes/lv_theme_default.c
// Function: lv_theme_default_init
lv_theme_t * lv_theme_default_init(uint16_t hue, lv_font_t * font)
{
    if(font == NULL) font = LV_FONT_DEFAULT;

    _hue  = hue;
    _font = font;

    /*For backward compatibility initialize all theme elements with a default style */
    uint16_t i;
    lv_style_t ** style_p = (lv_style_t **)&theme.style;
    for(i = 0; i < LV_THEME_STYLE_COUNT; i++) {
        *style_p = &def;
        style_p++;
    }

    basic_init();
    btn_init();
    label_init();
    img_init();
    line_init();
    led_init();
    bar_init();
    slider_init();
    sw_init();
    lmeter_init();
    gauge_init();
    chart_init();
    cb_init();
    btnm_init();
    kb_init();
    mbox_init();
    page_init();
    ta_init();
    list_init();
    ddlist_init();
    roller_init();
    tabview_init();
    table_init();
    win_init();

#if LV_USE_GROUP
    theme.group.style_mod_xcb      = style_mod;
    theme.group.style_mod_edit_xcb = style_mod_edit;
#endif

    return &theme;
}

// Assembly:
testq %rsi, %rsi
jne 0x2e940
leaq 0x24c88(%rip), %rsi     # 0x535c8
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, 0x3d1ae(%rip)     # 0x6bb00
xorl %eax, %eax
leaq 0x3d1ad(%rip), %rcx     # 0x6bb08
leaq 0x3d506(%rip), %r15     # 0x6be68
movq %r15, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqu %xmm0, (%rax,%rcx)
addq $0x10, %rax
cmpq $0x350, %rax            # imm = 0x350
jne 0x2e96c
leaq 0x31624(%rip), %rbx     # 0x5ffa8
movq %r15, %rdi
movq %rbx, %rsi
callq 0x799d
leaq 0x3d51a(%rip), %r12     # 0x6beb0
movq %r12, %rdi
movq %r15, %rsi
callq 0x799d
xorl %eax, %eax
movq %rax, 0x3d51c(%rip)     # 0x6bec6
leaq 0x3d547(%rip), %rdi     # 0x6bef8
leaq 0x31638(%rip), %rsi     # 0x5fff0
callq 0x799d
movzwl 0x3d536(%rip), %eax     # 0x6befa
movw %ax, 0x3d531(%rip)      # 0x6befc
movzwl 0x3d542(%rip), %eax     # 0x6bf14
movl %eax, %ecx
shrl $0xf, %ecx
addl %eax, %ecx
movswl %cx, %eax
shrl %eax
movw %ax, 0x3d52f(%rip)      # 0x6bf14
movzwl 0x3d524(%rip), %eax     # 0x6bf10
movl %eax, %ecx
shrl $0xf, %ecx
addl %eax, %ecx
movswl %cx, %eax
shrl %eax
movw %ax, 0x3d511(%rip)      # 0x6bf10
leaq 0x3d53a(%rip), %rdi     # 0x6bf40
leaq 0x3150b(%rip), %r13     # 0x5ff18
movq %r13, %rsi
callq 0x799d
movl $0x2bdd7, 0x3d52b(%rip) # imm = 0x2BDD7
movq %r13, 0x3d0ea(%rip)     # 0x6bb10
movq %r12, 0x3d0db(%rip)     # 0x6bb08
movq %rbx, 0x3d0e4(%rip)     # 0x6bb18
leaq 0x316d5(%rip), %rax     # 0x60110
movq %rax, 0x3d0e6(%rip)     # 0x6bb28
leaq 0x3170f(%rip), %rax     # 0x60158
movq %rax, 0x3d0e0(%rip)     # 0x6bb30
leaq 0x31749(%rip), %rax     # 0x601a0
movq %rax, 0x3d0da(%rip)     # 0x6bb38
leaq 0x31783(%rip), %rax     # 0x601e8
movq %rax, 0x3d0d4(%rip)     # 0x6bb40
leaq 0x317bd(%rip), %rax     # 0x60230
movq %rax, 0x3d0ce(%rip)     # 0x6bb48
leaq 0x3d507(%rip), %r12     # 0x6bf88
movq %r12, %rdi
movq %r13, %rsi
callq 0x799d
leaq 0x3d53d(%rip), %r14     # 0x6bfd0
movq %r14, %rdi
movq %r13, %rsi
callq 0x799d
leaq 0x3d573(%rip), %rbp     # 0x6c018
movq %rbp, %rdi
movq %r13, %rsi
callq 0x799d
movw $0x1082, 0x3d4ef(%rip)  # imm = 0x1082
movw $0x8c51, %ax            # imm = 0x8C51
movw %ax, 0x3d52c(%rip)      # 0x6bff0
movw $0x8c51, %r13w          # imm = 0x8C51
movw $0xad55, 0x3d566(%rip)  # imm = 0xAD55
movq %r12, 0x3d09f(%rip)     # 0x6bb78
movq %r14, 0x3d0a0(%rip)     # 0x6bb80
movq %rbp, 0x3d0a1(%rip)     # 0x6bb88
movq %r15, 0x3d0a2(%rip)     # 0x6bb90
movq %r15, 0x3d0a3(%rip)     # 0x6bb98
movq %r15, 0x3d0a4(%rip)     # 0x6bba0
leaq 0x3d55d(%rip), %r14     # 0x6c060
movq %r14, %rdi
leaq 0x314e3(%rip), %r12     # 0x5fff0
movq %r12, %rsi
callq 0x799d
movw $0xa, 0x3d554(%rip)     # 0x6c072
movw $0x7c18, 0x3d53f(%rip)  # imm = 0x7C18
movw $0x3, 0x3d53c(%rip)     # 0x6c06c
movb $0x4c, 0x3d538(%rip)    # 0x6c06f
movzwl 0x3d524(%rip), %eax     # 0x6c062
movw %ax, 0x3d52b(%rip)      # 0x6c070
movq %r14, 0x3d05c(%rip)     # 0x6bba8
movq %rbx, 0x3d05d(%rip)     # 0x6bbb0
movq %r12, 0x3d05e(%rip)     # 0x6bbb8
leaq 0x3d547(%rip), %r14     # 0x6c0a8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x799d
movabsq $0x5000500050005, %rax  # imm = 0x5000500050005
movq %rax, 0x3d541(%rip)     # 0x6c0be
movq %r14, 0x3d03c(%rip)     # 0x6bbc0
movq %r12, 0x3d03d(%rip)     # 0x6bbc8
movq %rbx, 0x3d03e(%rip)     # 0x6bbd0
leaq 0x3d557(%rip), %r14     # 0x6c0f0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x799d
movabsq $0x3000300030003, %rax  # imm = 0x3000300030003
movq %rax, 0x3d551(%rip)     # 0x6c106
movq %r14, 0x3d03c(%rip)     # 0x6bbf8
movq %r12, 0x3d03d(%rip)     # 0x6bc00
movq %rbx, 0x3d03e(%rip)     # 0x6bc08
movq %rbx, 0x3d03f(%rip)     # 0x6bc10
leaq 0x3d560(%rip), %r15     # 0x6c138
movq %r15, %rdi
movq %r12, %rsi
callq 0x799d
movl $0x2defb, 0x3d587(%rip) # imm = 0x2DEFB
movzwl 0x3d546(%rip), %eax     # 0x6c13a
movl %eax, %ecx
shrl $0xb, %ecx
imull $0x3f8, %ecx, %ecx      # imm = 0x3F8
addl $0x7c00, %ecx           # imm = 0x7C00
andl $0xfffff800, %ecx       # imm = 0xFFFFF800
movl %eax, %edx
shrl $0x5, %edx
andl $0x3f, %edx
movl %edx, %esi
shll $0x7, %esi
subl %edx, %esi
addl $0x1f80, %esi           # imm = 0x1F80
shrl $0x3, %esi
andl $0x7e0, %esi            # imm = 0x7E0
andl $0x1f, %eax
movl %eax, %edx
shll $0x7, %edx
subl %eax, %edx
addl $0xf80, %edx            # imm = 0xF80
movzbl %dh, %eax
orl %ecx, %eax
orl %esi, %eax
movw %ax, 0x3d4f3(%rip)      # 0x6c13a
movzwl 0x3d4ee(%rip), %eax     # 0x6c13c
movl %eax, %ecx
shrl $0xb, %ecx
imull $0x3f8, %ecx, %ecx      # imm = 0x3F8
andl $0x7800, %ecx           # imm = 0x7800
movl %eax, %edx
shrl $0x5, %edx
andl $0x3f, %edx
movl %edx, %esi
shll $0x7, %esi
subl %edx, %esi
shrl $0x3, %esi
andl $0x3e0, %esi            # imm = 0x3E0
andl $0x1f, %eax
movl %eax, %edx
shll $0x7, %edx
subl %eax, %edx
movzbl %dh, %eax
orl %ecx, %eax
orl %esi, %eax
movw %ax, 0x3d4ad(%rip)      # 0x6c13c
movq %r15, 0x3cf42(%rip)     # 0x6bbd8
leaq 0x3d4e3(%rip), %r14     # 0x6c180
movq %r14, %rdi
movq %r15, %rsi
callq 0x799d
movq 0x3cf29(%rip), %rax     # 0x6bbd8
movzwl 0x4(%rax), %ecx
movw %cx, 0x3d502(%rip)      # 0x6c1bc
movw $0x2, 0x3d4fb(%rip)     # 0x6c1be
movw %r13w, 0x3d4b7(%rip)    # 0x6c182
movzwl 0x2(%rax), %eax
movw %ax, 0x3d4ae(%rip)      # 0x6c184
movw %r13w, 0x3d4c2(%rip)    # 0x6c1a0
movq %r14, 0x3cefb(%rip)     # 0x6bbe0
movq %rbx, 0x3cf2c(%rip)     # 0x6bc18
leaq 0x31345(%rip), %rax     # 0x60038
movq %rax, 0x3cf66(%rip)     # 0x6bc60
movq %rbx, 0x3cf67(%rip)     # 0x6bc68
leaq 0x31450(%rip), %r9      # 0x60158
movq %r9, 0x3cf61(%rip)      # 0x6bc70
leaq 0x3148a(%rip), %r10     # 0x601a0
movq %r10, 0x3cf5b(%rip)     # 0x6bc78
leaq 0x314c4(%rip), %rcx     # 0x601e8
movq %rcx, 0x3cf55(%rip)     # 0x6bc80
leaq 0x314fe(%rip), %rdx     # 0x60230
movq %rdx, 0x3cf4f(%rip)     # 0x6bc88
movq %rbx, 0x3cf50(%rip)     # 0x6bc90
leaq 0x313c9(%rip), %r8      # 0x60110
movq %r8, 0x3cf4a(%rip)      # 0x6bc98
movq %r9, 0x3cf4b(%rip)      # 0x6bca0
movq %r10, 0x3cf4c(%rip)     # 0x6bca8
movq %rcx, 0x3cf4d(%rip)     # 0x6bcb0
movq %rdx, 0x3cf4e(%rip)     # 0x6bcb8
movq %rbx, 0x3cf4f(%rip)     # 0x6bcc0
movq %r8, 0x3cf50(%rip)      # 0x6bcc8
movq %r9, 0x3cf51(%rip)      # 0x6bcd0
movq %r10, 0x3cf52(%rip)     # 0x6bcd8
movq %rcx, 0x3cf53(%rip)     # 0x6bce0
movq %rdx, 0x3cf54(%rip)     # 0x6bce8
movq %rdx, %rdi
movq %rbx, 0x3cf52(%rip)     # 0x6bcf0
movq %rax, 0x3cf53(%rip)     # 0x6bcf8
movq %r8, 0x3cf54(%rip)      # 0x6bd00
movq %rcx, 0x3cf55(%rip)     # 0x6bd08
movq %rcx, %r11
movq %rbx, 0x3cf53(%rip)     # 0x6bd10
leaq 0x31304(%rip), %rcx     # 0x600c8
movq %rcx, 0x3cf4d(%rip)     # 0x6bd18
leaq 0x3d126(%rip), %rsi     # 0x6bef8
movq %rsi, 0x3cf47(%rip)     # 0x6bd20
movq %rbx, 0x3cf48(%rip)     # 0x6bd28
movq %rbx, 0x3cf49(%rip)     # 0x6bd30
movl $0x0, %edx
movq %rdx, 0x3cf45(%rip)     # 0x6bd38
movq %rsi, 0x3cf46(%rip)     # 0x6bd40
movq %rbx, 0x3cf5f(%rip)     # 0x6bd60
leaq 0x31278(%rip), %rdx     # 0x60080
movq %rdx, 0x3cf59(%rip)     # 0x6bd68
movq %rsi, 0x3cf5a(%rip)     # 0x6bd70
movq %r8, 0x3cf5b(%rip)      # 0x6bd78
movq %r9, 0x3cf5c(%rip)      # 0x6bd80
movq %r10, 0x3cf5d(%rip)     # 0x6bd88
movq %r11, 0x3cf5e(%rip)     # 0x6bd90
movq %rdi, 0x3cf5f(%rip)     # 0x6bd98
movq %rbx, 0x3cf60(%rip)     # 0x6bda0
leaq 0x31119(%rip), %rdx     # 0x5ff60
movq %rdx, 0x3cf5a(%rip)     # 0x6bda8
movq %rsi, 0x3cf5b(%rip)     # 0x6bdb0
movq %rbx, 0x3cf5c(%rip)     # 0x6bdb8
movq %rdx, 0x3cf5d(%rip)     # 0x6bdc0
leaq 0x3d0d6(%rip), %rdi     # 0x6bf40
movq %rdi, 0x3cf57(%rip)     # 0x6bdc8
movq %rdx, 0x3cf58(%rip)     # 0x6bdd0
movq %rax, 0x3cf59(%rip)     # 0x6bdd8
movq %r8, 0x3cf5a(%rip)      # 0x6bde0
movq %r9, 0x3cf5b(%rip)      # 0x6bde8
movq %r10, 0x3cf5c(%rip)     # 0x6bdf0
movq %r11, 0x3cf5d(%rip)     # 0x6bdf8
movq %rcx, 0x3cf76(%rip)     # 0x6be18
leaq 0x3106f(%rip), %rcx     # 0x5ff18
movq %rcx, 0x3cf70(%rip)     # 0x6be20
movq %rdi, 0x3cf71(%rip)     # 0x6be28
movq %rsi, 0x3cf72(%rip)     # 0x6be30
movq %rdx, 0x3cf73(%rip)     # 0x6be38
movq %rax, 0x3cf74(%rip)     # 0x6be40
movq %r8, 0x3cf75(%rip)      # 0x6be48
movq %r9, 0x3cf76(%rip)      # 0x6be50
leaq 0x2b(%rip), %rax        # 0x2ef0c
movq %rax, 0x3cf70(%rip)     # 0x6be58
leaq 0x147(%rip), %rax       # 0x2f036
movq %rax, 0x3cf6a(%rip)     # 0x6be60
leaq 0x3cc0b(%rip), %rax     # 0x6bb08
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq