// File: /workspace/github_c_makefile_star2_O1/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 0x80d4
testb %al, %al
je 0x1e63e
movq %rbx, %rdi
callq 0x6ad8
movq %rax, %r15
testb $0x2, 0x98(%rax)
sete %al
xorb %bpl, %al
je 0x1e64f
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20aef(%rip), %rdi     # 0x3f134
movq %rbx, %rsi
callq 0x829e
jmp 0x1e64d
movq %rbx, %rdi
callq 0x6697
movq %rax, %r14
testb %bpl, %bpl
je 0x1e6f2
movq %rbx, %rdi
callq 0x26288
movq %rax, %rdi
callq 0x6697
movq %rax, %r12
movq 0x50(%r15), %rdi
callq 0x6697
movq 0x28(%rax), %rax
movzbl 0x10(%rax), %ebp
orb $0x2, 0x98(%r15)
movq %rbx, %rdi
callq 0x26288
movq %rax, %rdi
movl $0x1, %esi
movl $0x1, %edx
movl $0x2, %ecx
movl $0x2, %r8d
callq 0x22602
addw 0x16(%r14), %bp
addw 0x18(%r14), %bp
addw 0x16(%r12), %bp
addw 0x18(%r12), %bp
movswl %bp, %esi
movq %rbx, %rdi
callq 0x572f
movq 0x50(%r15), %rdi
xorl %esi, %esi
callq 0x19e3d
movq 0x58(%r15), %rdi
testq %rdi, %rdi
je 0x1e74d
xorl %esi, %esi
callq 0x19e3d
jmp 0x1e74d
andb $-0x3, 0x98(%r15)
movq %rbx, %rdi
callq 0x26288
movq %rax, %rdi
movl $0x2, %esi
movl $0x2, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x22602
movq 0x50(%r15), %rdi
movl $0x1, %esi
callq 0x19e3d
movq 0x58(%r15), %rdi
testq %rdi, %rdi
je 0x1e740
movl $0x1, %esi
callq 0x19e3d
movq %rbx, %rdi
movl $0x64, %esi
callq 0x572f
movq %rbx, %rdi
callq 0x26288
movswl 0x1a(%r14), %esi
movswl 0x16(%r14), %edx
movq %rax, %rdi
callq 0x4ae2
movq %rbx, %rdi
callq 0x1f074
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1f77a