// File: /workspace/github_c_makefile_star2_O1/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 0x2e268
leaq 0x25360(%rip), %rsi     # 0x535c8
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, 0x3d886(%rip)     # 0x6bb00
xorl %eax, %eax
leaq 0x3d885(%rip), %rcx     # 0x6bb08
leaq 0x3dbde(%rip), %r15     # 0x6be68
movq %r15, (%rax,%rcx)
addq $0x8, %rax
movzwl %ax, %edx
cmpl $0x350, %edx            # imm = 0x350
jne 0x2e28a
leaq 0x31d04(%rip), %rbx     # 0x5ffa8
movq %r15, %rdi
movq %rbx, %rsi
callq 0x798d
leaq 0x3dbfa(%rip), %r12     # 0x6beb0
movq %r12, %rdi
movq %r15, %rsi
callq 0x798d
xorl %eax, %eax
movq %rax, 0x3dbfc(%rip)     # 0x6bec6
leaq 0x3dc27(%rip), %rdi     # 0x6bef8
leaq 0x31d18(%rip), %rsi     # 0x5fff0
callq 0x798d
movzwl 0x3dc16(%rip), %eax     # 0x6befa
movw %ax, 0x3dc11(%rip)      # 0x6befc
movzwl 0x3dc22(%rip), %eax     # 0x6bf14
movl %eax, %ecx
shrl $0xf, %ecx
addl %eax, %ecx
movswl %cx, %eax
shrl %eax
movw %ax, 0x3dc0f(%rip)      # 0x6bf14
movzwl 0x3dc04(%rip), %eax     # 0x6bf10
movl %eax, %ecx
shrl $0xf, %ecx
addl %eax, %ecx
movswl %cx, %eax
shrl %eax
movw %ax, 0x3dbf1(%rip)      # 0x6bf10
leaq 0x3dc1a(%rip), %rdi     # 0x6bf40
leaq 0x31beb(%rip), %r13     # 0x5ff18
movq %r13, %rsi
callq 0x798d
movl $0x2bdd7, 0x3dc0b(%rip) # imm = 0x2BDD7
movq %r13, 0x3d7ca(%rip)     # 0x6bb10
movq %r12, 0x3d7bb(%rip)     # 0x6bb08
movq %rbx, 0x3d7c4(%rip)     # 0x6bb18
leaq 0x31db5(%rip), %rax     # 0x60110
movq %rax, 0x3d7c6(%rip)     # 0x6bb28
leaq 0x31def(%rip), %rax     # 0x60158
movq %rax, 0x3d7c0(%rip)     # 0x6bb30
leaq 0x31e29(%rip), %rax     # 0x601a0
movq %rax, 0x3d7ba(%rip)     # 0x6bb38
leaq 0x31e63(%rip), %rax     # 0x601e8
movq %rax, 0x3d7b4(%rip)     # 0x6bb40
leaq 0x31e9d(%rip), %rax     # 0x60230
movq %rax, 0x3d7ae(%rip)     # 0x6bb48
leaq 0x3dbe7(%rip), %r12     # 0x6bf88
movq %r12, %rdi
movq %r13, %rsi
callq 0x798d
leaq 0x3dc1d(%rip), %r14     # 0x6bfd0
movq %r14, %rdi
movq %r13, %rsi
callq 0x798d
leaq 0x3dc53(%rip), %rbp     # 0x6c018
movq %rbp, %rdi
movq %r13, %rsi
callq 0x798d
movw $0x1082, 0x3dbcf(%rip)  # imm = 0x1082
movw $0x8c51, %ax            # imm = 0x8C51
movw %ax, 0x3dc0c(%rip)      # 0x6bff0
movw $0x8c51, %r13w          # imm = 0x8C51
movw $0xad55, 0x3dc46(%rip)  # imm = 0xAD55
movq %r12, 0x3d77f(%rip)     # 0x6bb78
movq %r14, 0x3d780(%rip)     # 0x6bb80
movq %rbp, 0x3d781(%rip)     # 0x6bb88
movq %r15, 0x3d782(%rip)     # 0x6bb90
movq %r15, 0x3d783(%rip)     # 0x6bb98
movq %r15, 0x3d784(%rip)     # 0x6bba0
leaq 0x3dc3d(%rip), %r14     # 0x6c060
movq %r14, %rdi
leaq 0x31bc3(%rip), %r12     # 0x5fff0
movq %r12, %rsi
callq 0x798d
movw $0xa, 0x3dc34(%rip)     # 0x6c072
movw $0x7c18, 0x3dc1f(%rip)  # imm = 0x7C18
movw $0x3, 0x3dc1c(%rip)     # 0x6c06c
movb $0x4c, 0x3dc18(%rip)    # 0x6c06f
movzwl 0x3dc04(%rip), %eax     # 0x6c062
movw %ax, 0x3dc0b(%rip)      # 0x6c070
movq %r14, 0x3d73c(%rip)     # 0x6bba8
movq %rbx, 0x3d73d(%rip)     # 0x6bbb0
movq %r12, 0x3d73e(%rip)     # 0x6bbb8
leaq 0x3dc27(%rip), %r14     # 0x6c0a8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x798d
movabsq $0x5000500050005, %rax  # imm = 0x5000500050005
movq %rax, 0x3dc21(%rip)     # 0x6c0be
movq %r14, 0x3d71c(%rip)     # 0x6bbc0
movq %r12, 0x3d71d(%rip)     # 0x6bbc8
movq %rbx, 0x3d71e(%rip)     # 0x6bbd0
leaq 0x3dc37(%rip), %r14     # 0x6c0f0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x798d
movabsq $0x3000300030003, %rax  # imm = 0x3000300030003
movq %rax, 0x3dc31(%rip)     # 0x6c106
movq %r14, 0x3d71c(%rip)     # 0x6bbf8
movq %r12, 0x3d71d(%rip)     # 0x6bc00
movq %rbx, 0x3d71e(%rip)     # 0x6bc08
movq %rbx, 0x3d71f(%rip)     # 0x6bc10
leaq 0x3dc40(%rip), %r15     # 0x6c138
movq %r15, %rdi
movq %r12, %rsi
callq 0x798d
movl $0x2defb, 0x3dc67(%rip) # imm = 0x2DEFB
movzwl 0x3dc26(%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, 0x3dbd3(%rip)      # 0x6c13a
movzwl 0x3dbce(%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, 0x3db8d(%rip)      # 0x6c13c
movq %r15, 0x3d622(%rip)     # 0x6bbd8
leaq 0x3dbc3(%rip), %r14     # 0x6c180
movq %r14, %rdi
movq %r15, %rsi
callq 0x798d
movq 0x3d609(%rip), %rax     # 0x6bbd8
movzwl 0x4(%rax), %ecx
movw %cx, 0x3dbe2(%rip)      # 0x6c1bc
movw $0x2, 0x3dbdb(%rip)     # 0x6c1be
movw %r13w, 0x3db97(%rip)    # 0x6c182
movzwl 0x2(%rax), %eax
movw %ax, 0x3db8e(%rip)      # 0x6c184
movw %r13w, 0x3dba2(%rip)    # 0x6c1a0
movq %r14, 0x3d5db(%rip)     # 0x6bbe0
movq %rbx, 0x3d60c(%rip)     # 0x6bc18
leaq 0x31a25(%rip), %rax     # 0x60038
movq %rax, 0x3d646(%rip)     # 0x6bc60
movq %rbx, 0x3d647(%rip)     # 0x6bc68
leaq 0x31b30(%rip), %r9      # 0x60158
movq %r9, 0x3d641(%rip)      # 0x6bc70
leaq 0x31b6a(%rip), %r10     # 0x601a0
movq %r10, 0x3d63b(%rip)     # 0x6bc78
leaq 0x31ba4(%rip), %rcx     # 0x601e8
movq %rcx, 0x3d635(%rip)     # 0x6bc80
leaq 0x31bde(%rip), %rdx     # 0x60230
movq %rdx, 0x3d62f(%rip)     # 0x6bc88
movq %rbx, 0x3d630(%rip)     # 0x6bc90
leaq 0x31aa9(%rip), %r8      # 0x60110
movq %r8, 0x3d62a(%rip)      # 0x6bc98
movq %r9, 0x3d62b(%rip)      # 0x6bca0
movq %r10, 0x3d62c(%rip)     # 0x6bca8
movq %rcx, 0x3d62d(%rip)     # 0x6bcb0
movq %rdx, 0x3d62e(%rip)     # 0x6bcb8
movq %rbx, 0x3d62f(%rip)     # 0x6bcc0
movq %r8, 0x3d630(%rip)      # 0x6bcc8
movq %r9, 0x3d631(%rip)      # 0x6bcd0
movq %r10, 0x3d632(%rip)     # 0x6bcd8
movq %rcx, 0x3d633(%rip)     # 0x6bce0
movq %rdx, 0x3d634(%rip)     # 0x6bce8
movq %rdx, %rdi
movq %rbx, 0x3d632(%rip)     # 0x6bcf0
movq %rax, 0x3d633(%rip)     # 0x6bcf8
movq %r8, 0x3d634(%rip)      # 0x6bd00
movq %rcx, 0x3d635(%rip)     # 0x6bd08
movq %rcx, %r11
movq %rbx, 0x3d633(%rip)     # 0x6bd10
leaq 0x319e4(%rip), %rcx     # 0x600c8
movq %rcx, 0x3d62d(%rip)     # 0x6bd18
leaq 0x3d806(%rip), %rsi     # 0x6bef8
movq %rsi, 0x3d627(%rip)     # 0x6bd20
movq %rbx, 0x3d628(%rip)     # 0x6bd28
movq %rbx, 0x3d629(%rip)     # 0x6bd30
movl $0x0, %edx
movq %rdx, 0x3d625(%rip)     # 0x6bd38
movq %rsi, 0x3d626(%rip)     # 0x6bd40
movq %rbx, 0x3d63f(%rip)     # 0x6bd60
leaq 0x31958(%rip), %rdx     # 0x60080
movq %rdx, 0x3d639(%rip)     # 0x6bd68
movq %rsi, 0x3d63a(%rip)     # 0x6bd70
movq %r8, 0x3d63b(%rip)      # 0x6bd78
movq %r9, 0x3d63c(%rip)      # 0x6bd80
movq %r10, 0x3d63d(%rip)     # 0x6bd88
movq %r11, 0x3d63e(%rip)     # 0x6bd90
movq %rdi, 0x3d63f(%rip)     # 0x6bd98
movq %rbx, 0x3d640(%rip)     # 0x6bda0
leaq 0x317f9(%rip), %rdx     # 0x5ff60
movq %rdx, 0x3d63a(%rip)     # 0x6bda8
movq %rsi, 0x3d63b(%rip)     # 0x6bdb0
movq %rbx, 0x3d63c(%rip)     # 0x6bdb8
movq %rdx, 0x3d63d(%rip)     # 0x6bdc0
leaq 0x3d7b6(%rip), %rdi     # 0x6bf40
movq %rdi, 0x3d637(%rip)     # 0x6bdc8
movq %rdx, 0x3d638(%rip)     # 0x6bdd0
movq %rax, 0x3d639(%rip)     # 0x6bdd8
movq %r8, 0x3d63a(%rip)      # 0x6bde0
movq %r9, 0x3d63b(%rip)      # 0x6bde8
movq %r10, 0x3d63c(%rip)     # 0x6bdf0
movq %r11, 0x3d63d(%rip)     # 0x6bdf8
movq %rcx, 0x3d656(%rip)     # 0x6be18
leaq 0x3174f(%rip), %rcx     # 0x5ff18
movq %rcx, 0x3d650(%rip)     # 0x6be20
movq %rdi, 0x3d651(%rip)     # 0x6be28
movq %rsi, 0x3d652(%rip)     # 0x6be30
movq %rdx, 0x3d653(%rip)     # 0x6be38
movq %rax, 0x3d654(%rip)     # 0x6be40
movq %r8, 0x3d655(%rip)      # 0x6be48
movq %r9, 0x3d656(%rip)      # 0x6be50
leaq 0x2b(%rip), %rax        # 0x2e82c
movq %rax, 0x3d650(%rip)     # 0x6be58
leaq 0x183(%rip), %rax       # 0x2e992
movq %rax, 0x3d64a(%rip)     # 0x6be60
leaq 0x3d2eb(%rip), %rax     # 0x6bb08
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq