// File: /workspace/github_c_makefile_star2_O3/OnionIoT[P]lv_example/lvgl/src/lv_objx/lv_ta.c
// Function: lv_ta_set_one_line
void lv_ta_set_one_line(lv_obj_t * ta, bool en)
{
    LV_ASSERT_OBJ(ta, LV_OBJX_NAME);

    lv_ta_ext_t * ext = lv_obj_get_ext_attr(ta);
    if(ext->one_line == en) return;

    if(en) {
        const lv_style_t * style_ta    = lv_obj_get_style(ta);
        const lv_style_t * style_scrl  = lv_obj_get_style(lv_page_get_scrl(ta));
        const lv_style_t * style_label = lv_obj_get_style(ext->label);
        lv_coord_t font_h              = lv_font_get_line_height(style_label->text.font);

        ext->one_line = 1;
        lv_page_set_scrl_fit2(ta, LV_FIT_TIGHT, LV_FIT_FLOOD);
        lv_obj_set_height(ta, font_h + style_ta->body.padding.top + style_ta->body.padding.bottom +
                                  style_scrl->body.padding.top + style_scrl->body.padding.bottom);
        lv_label_set_long_mode(ext->label, LV_LABEL_LONG_EXPAND);
        if(ext->placeholder) lv_label_set_long_mode(ext->placeholder, LV_LABEL_LONG_EXPAND);
        lv_obj_set_pos(lv_page_get_scrl(ta), style_ta->body.padding.left, style_ta->body.padding.top);
    } else {
        const lv_style_t * style_ta = lv_obj_get_style(ta);

        ext->one_line = 0;
        lv_page_set_scrl_fit2(ta, LV_FIT_FLOOD, LV_FIT_TIGHT);
        lv_label_set_long_mode(ext->label, LV_LABEL_LONG_BREAK);
        if(ext->placeholder) lv_label_set_long_mode(ext->placeholder, LV_LABEL_LONG_BREAK);

        lv_obj_set_height(ta, LV_TA_DEF_HEIGHT);
        lv_obj_set_pos(lv_page_get_scrl(ta), style_ta->body.padding.left, style_ta->body.padding.top);
    }

    placeholder_update(ta);
    refr_cursor_area(ta);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
callq 0x80e4
testb %al, %al
je 0x1ee3a
movq %rbx, %rdi
callq 0x6af7
movq %rax, %r15
testb $0x2, 0x98(%rax)
sete %al
xorb %bpl, %al
je 0x1ee4b
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x203a3(%rip), %rdi     # 0x3f1e4
movq %rbx, %rsi
callq 0x8294
jmp 0x1ee49
movq %rbx, %rdi
callq 0x66b6
movq %rax, %r14
testb %bpl, %bpl
je 0x1eeee
movq %rbx, %rdi
callq 0x2695e
movq %rax, %rdi
callq 0x66b6
movq %rax, %r12
movq 0x50(%r15), %rdi
callq 0x66b6
movq 0x28(%rax), %rax
movzbl 0x10(%rax), %ebp
orb $0x2, 0x98(%r15)
movq %rbx, %rdi
callq 0x2695e
movq %rax, %rdi
movl $0x1, %esi
movl $0x1, %edx
movl $0x2, %ecx
movl $0x2, %r8d
callq 0x22d84
addw 0x16(%r14), %bp
addw 0x18(%r14), %bp
addw 0x16(%r12), %bp
addw 0x18(%r12), %bp
movswl %bp, %esi
movq %rbx, %rdi
callq 0x574b
movq 0x50(%r15), %rdi
xorl %esi, %esi
callq 0x1a602
movq 0x58(%r15), %rdi
testq %rdi, %rdi
je 0x1ef49
xorl %esi, %esi
callq 0x1a602
jmp 0x1ef49
andb $-0x3, 0x98(%r15)
movq %rbx, %rdi
callq 0x2695e
movq %rax, %rdi
movl $0x2, %esi
movl $0x2, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x22d84
movq 0x50(%r15), %rdi
movl $0x1, %esi
callq 0x1a602
movq 0x58(%r15), %rdi
testq %rdi, %rdi
je 0x1ef3c
movl $0x1, %esi
callq 0x1a602
movq %rbx, %rdi
movl $0x64, %esi
callq 0x574b
movq %rbx, %rdi
callq 0x2695e
movswl 0x1a(%r14), %esi
movswl 0x16(%r14), %edx
movq %rax, %rdi
callq 0x4ad8
movq %rbx, %rdi
callq 0x1f852
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1ff6e