// File: /workspace/github_c_makefile_star2_O0/OnionIoT[P]lv_example/lvgl/src/lv_objx/lv_cb.c
// Function: lv_cb_signal
static lv_res_t lv_cb_signal(lv_obj_t * cb, lv_signal_t sign, void * param)
{
    lv_res_t res;

    /* Include the ancient signal function */
    res = ancestor_signal(cb, sign, param);
    if(res != LV_RES_OK) return res;
    if(sign == LV_SIGNAL_GET_TYPE) return lv_obj_handle_get_type_signal(param, LV_OBJX_NAME);

    lv_cb_ext_t * ext = lv_obj_get_ext_attr(cb);

    if(sign == LV_SIGNAL_STYLE_CHG) {
        const lv_style_t * label_style = lv_label_get_style(ext->label, LV_LABEL_STYLE_MAIN);
        lv_obj_set_size(ext->bullet, lv_font_get_line_height(label_style->text.font),
                        lv_font_get_line_height(label_style->text.font));
        lv_btn_set_state(ext->bullet, lv_btn_get_state(cb));
    } else if(sign == LV_SIGNAL_PRESSED || sign == LV_SIGNAL_RELEASED || sign == LV_SIGNAL_PRESS_LOST) {
        lv_btn_set_state(ext->bullet, lv_btn_get_state(cb));
    } else if(sign == LV_SIGNAL_CONTROL) {
        char c = *((char *)param);
        if(c == LV_KEY_RIGHT || c == LV_KEY_DOWN || c == LV_KEY_LEFT || c == LV_KEY_UP) {
            /*Follow the backgrounds state with the bullet*/
            lv_btn_set_state(ext->bullet, lv_btn_get_state(cb));
        }
    }

    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movb %sil, %al
movq %rdi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq %rdx, -0x20(%rbp)
movq 0x797cb(%rip), %rax     # 0x89378
movq -0x10(%rbp), %rdi
movb -0x11(%rbp), %cl
movq -0x20(%rbp), %rdx
movzbl %cl, %esi
callq *%rax
movb %al, -0x21(%rbp)
movzbl -0x21(%rbp), %eax
cmpl $0x1, %eax
je 0xfbd4
movb -0x21(%rbp), %al
movb %al, -0x1(%rbp)
jmp 0xfd28
movzbl -0x11(%rbp), %eax
cmpl $0x7, %eax
jne 0xfbf5
movq -0x20(%rbp), %rdi
leaq 0x58592(%rip), %rsi     # 0x6817a
callq 0xaa80
movb %al, -0x1(%rbp)
jmp 0xfd28
movq -0x10(%rbp), %rdi
callq 0xa8f0
movq %rax, -0x30(%rbp)
movzbl -0x11(%rbp), %eax
cmpl $0x4, %eax
jne 0xfc87
movq -0x30(%rbp), %rax
movq 0x40(%rax), %rdi
xorl %esi, %esi
callq 0x10320
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x10350
movzbl %al, %eax
movw %ax, -0x4a(%rbp)
movq -0x38(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x10350
movq -0x58(%rbp), %rdi
movw -0x4a(%rbp), %cx
movzbl %al, %eax
movswl %cx, %esi
movswl %ax, %edx
callq 0x8180
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
callq 0x20930
movq -0x48(%rbp), %rdi
movzbl %al, %esi
callq 0x20730
jmp 0xfd22
movzbl -0x11(%rbp), %eax
cmpl $0x8, %eax
je 0xfca2
movzbl -0x11(%rbp), %eax
cmpl $0xb, %eax
je 0xfca2
movzbl -0x11(%rbp), %eax
cmpl $0xa, %eax
jne 0xfcc5
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0x20930
movq -0x60(%rbp), %rdi
movzbl %al, %esi
callq 0x20730
jmp 0xfd20
movzbl -0x11(%rbp), %eax
cmpl $0x12, %eax
jne 0xfd1e
movq -0x20(%rbp), %rax
movb (%rax), %al
movb %al, -0x39(%rbp)
movsbl -0x39(%rbp), %eax
cmpl $0x13, %eax
je 0xfcfb
movsbl -0x39(%rbp), %eax
cmpl $0x12, %eax
je 0xfcfb
movsbl -0x39(%rbp), %eax
cmpl $0x14, %eax
je 0xfcfb
movsbl -0x39(%rbp), %eax
cmpl $0x11, %eax
jne 0xfd1c
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
callq 0x20930
movq -0x68(%rbp), %rdi
movzbl %al, %esi
callq 0x20730
jmp 0xfd1e
jmp 0xfd20
jmp 0xfd22
movb -0x21(%rbp), %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)