	.file	"extr_listview.c_listview_draw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	listview_draw, @function
listview_draw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR LISTVIEW_SCROLL_CONTINIOUS[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L28
	call	scroll_per_page@PLT
	mov	ebx, eax
.L3:
	mov	rsi, QWORD PTR 72[r15]
	mov	edi, DWORD PTR 36[r15]
	call	scrollbar_set_max_value@PLT
	mov	esi, DWORD PTR 8[r15]
	imul	esi, DWORD PTR 12[r15]
	mov	edi, DWORD PTR 36[r15]
	call	scrollbar_set_handle_length@PLT
	cmp	QWORD PTR 56[r15], 0
	je	.L4
	mov	rsi, QWORD PTR 72[r15]
	mov	edi, DWORD PTR 36[r15]
	sub	rsi, QWORD PTR 88[r15]
	sub	rsi, 1
	call	scrollbar_set_handle@PLT
.L5:
	mov	edi, DWORD PTR 80[r15]
	mov	esi, DWORD PTR ROFI_ORIENTATION_VERTICAL[rip]
	mov	DWORD PTR 16[r15], ebx
	call	distance_get_pixel@PLT
	mov	esi, DWORD PTR ROFI_ORIENTATION_HORIZONTAL[rip]
	mov	edi, DWORD PTR 80[r15]
	mov	DWORD PTR 12[rsp], eax
	call	distance_get_pixel@PLT
	mov	rdi, r15
	mov	r12d, eax
	call	widget_padding_get_left@PLT
	mov	rdi, r15
	mov	DWORD PTR 16[rsp], eax
	call	widget_padding_get_top@PLT
	mov	rdi, QWORD PTR 24[r15]
	mov	DWORD PTR 20[rsp], eax
	test	rdi, rdi
	jle	.L7
	mov	eax, DWORD PTR 12[r15]
	test	eax, eax
	jg	.L29
.L7:
	mov	edi, DWORD PTR 36[r15]
	call	WIDGET@PLT
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	widget_draw@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rsi, QWORD PTR 88[r15]
	mov	edi, DWORD PTR 36[r15]
	call	scrollbar_set_handle@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rsi, QWORD PTR 72[r15]
	mov	eax, ebx
	sub	rsi, rax
	call	MIN@PLT
	cmp	QWORD PTR 48[r15], 0
	jne	.L9
	lea	r13d, -1[rax]
	xor	r12d, r12d
	test	eax, eax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rcx, QWORD PTR FALSE[rip]
	lea	edx, [rbx+r12]
	mov	esi, r12d
	mov	rdi, r15
	call	update_element@PLT
	mov	rax, QWORD PTR 40[r15]
	mov	edi, DWORD PTR [rax+r12*4]
	call	WIDGET@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	widget_draw@PLT
	mov	rax, r12
	add	r12, 1
	cmp	rax, r13
	jne	.L17
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	call	scroll_continious@PLT
	mov	ebx, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR 8[r15]
	mov	rdi, r15
	mov	r14d, DWORD PTR 64[r15]
	sub	eax, 1
	imul	eax, r12d
	sub	r14d, eax
	call	widget_padding_get_padding_width@PLT
	mov	edi, DWORD PTR 36[r15]
	sub	r14d, eax
	call	WIDGET@PLT
	mov	edi, eax
	call	widget_enabled@PLT
	mov	ecx, DWORD PTR 32[rsp]
	test	rax, rax
	jne	.L30
.L11:
	mov	eax, r14d
	xor	edx, edx
	div	DWORD PTR 8[r15]
	mov	DWORD PTR 32[rsp], eax
	test	ecx, ecx
	je	.L16
	add	r12d, DWORD PTR 32[rsp]
	lea	eax, -1[rcx]
	mov	DWORD PTR 40[rsp], ebx
	mov	rbx, r15
	mov	DWORD PTR 36[rsp], r12d
	xor	r12d, r12d
	mov	QWORD PTR 24[rsp], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, rbx
	mov	r13d, DWORD PTR [rbx]
	call	widget_padding_get_bottom@PLT
	xor	edx, edx
	mov	ecx, DWORD PTR 32[rbx]
	mov	r10d, eax
	mov	eax, r12d
	div	DWORD PTR 12[rbx]
	sub	r13d, ecx
	add	ecx, DWORD PTR 12[rsp]
	imul	ecx, edx
	sub	r13d, ecx
	sub	r13d, r10d
.L26:
	mov	rax, QWORD PTR 40[rbx]
	mov	edi, DWORD PTR [rax+r12*4]
	call	WIDGET@PLT
	mov	esi, DWORD PTR 44[rsp]
	mov	edx, r13d
	mov	edi, eax
	call	widget_move@PLT
	mov	rax, QWORD PTR 40[rbx]
	mov	r13d, DWORD PTR 32[rbx]
	mov	edi, DWORD PTR [rax+r12*4]
	call	WIDGET@PLT
	mov	esi, DWORD PTR 32[rsp]
	mov	edx, r13d
	mov	edi, eax
	call	widget_resize@PLT
	mov	eax, DWORD PTR 40[rsp]
	mov	esi, r15d
	mov	rdi, rbx
	mov	rcx, QWORD PTR TRUE[rip]
	lea	edx, [rax+r15]
	call	update_element@PLT
	mov	rax, QWORD PTR 40[rbx]
	mov	edi, DWORD PTR [rax+r14]
	call	WIDGET@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	widget_draw@PLT
	lea	rax, 1[r12]
	cmp	QWORD PTR 24[rsp], r12
	je	.L31
	mov	r12, rax
.L15:
	xor	edx, edx
	mov	eax, r12d
	mov	ecx, DWORD PTR 16[rsp]
	mov	r15d, r12d
	div	DWORD PTR 12[rbx]
	lea	r14, 0[0+r12*4]
	imul	eax, DWORD PTR 36[rsp]
	cmp	QWORD PTR 56[rbx], 0
	lea	esi, [rax+rcx]
	mov	DWORD PTR 44[rsp], esi
	jne	.L32
	mov	r13d, DWORD PTR 12[rsp]
	add	r13d, DWORD PTR 32[rbx]
	imul	r13d, edx
	add	r13d, DWORD PTR 20[rsp]
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L31:
	mov	r15, rbx
.L16:
	mov	rax, QWORD PTR FALSE[rip]
	mov	QWORD PTR 48[r15], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, DWORD PTR 36[r15]
	sub	r14d, r12d
	call	WIDGET@PLT
	mov	edi, eax
	call	widget_get_width@PLT
	mov	ecx, DWORD PTR 32[rsp]
	sub	r14d, eax
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	listview_draw, .-listview_draw
	.comm	TRUE,8,8
	.comm	ROFI_ORIENTATION_VERTICAL,4,4
	.comm	ROFI_ORIENTATION_HORIZONTAL,4,4
	.comm	LISTVIEW_SCROLL_CONTINIOUS,8,8
	.comm	FALSE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_listview.c_listview_draw.c"
	.text
	.global	__aeabi_uidiv
	.global	__aeabi_uidivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	listview_draw, %function
listview_draw:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L30
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r2, r3
	mov	r7, r1
	sub	sp, sp, #28
	beq	.L26
	bl	scroll_per_page
	mov	r6, r0
.L3:
	ldr	r1, [r4, #44]
	ldr	r0, [r4, #24]
	bl	scrollbar_set_max_value
	ldr	r3, [r4, #4]
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #24]
	mul	r1, r3, r1
	bl	scrollbar_set_handle_length
	ldr	r3, [r4, #36]
	cmp	r3, #0
	ldrne	r1, [r4, #44]
	ldrne	r3, [r4, #52]
	ldreq	r1, [r4, #52]
	subne	r1, r1, r3
	subne	r1, r1, #1
	ldrne	r0, [r4, #24]
	ldreq	r0, [r4, #24]
	bl	scrollbar_set_handle
	ldr	r3, .L30+4
	ldr	r0, [r4, #48]
	ldr	r1, [r3]
	str	r6, [r4, #12]
	bl	distance_get_pixel
	ldr	r2, .L30+8
	mov	fp, r0
	ldr	r1, [r2]
	ldr	r0, [r4, #48]
	bl	distance_get_pixel
	mov	r10, r0
	mov	r0, r4
	bl	widget_padding_get_left
	mov	r8, r0
	mov	r0, r4
	bl	widget_padding_get_top
	ldr	r3, [r4, #16]
	str	r0, [sp]
	cmp	r3, #0
	ble	.L7
	ldr	r2, [r4, #8]
	cmp	r2, #0
	bgt	.L27
.L7:
	ldr	r0, [r4, #24]
	bl	WIDGET
	mov	r1, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	widget_draw
.L27:
	ldr	r1, [r4, #44]
	mov	r0, r3
	sub	r1, r1, r6
	bl	MIN
	ldr	r5, [r4, #32]
	mov	r9, r0
	cmp	r5, #0
	bne	.L9
	cmp	r0, #0
	ldrne	r8, .L30+12
	beq	.L7
.L10:
	mov	r1, r5
	add	r2, r6, r5
	ldr	r3, [r8]
	mov	r0, r4
	bl	update_element
	ldr	r3, [r4, #28]
	ldr	r0, [r3, r5, lsl #2]
	bl	WIDGET
	add	r5, r5, #1
	mov	r1, r7
	bl	widget_draw
	cmp	r9, r5
	bne	.L10
	b	.L7
.L26:
	bl	scroll_continious
	mov	r6, r0
	b	.L3
.L9:
	ldr	r3, [r4, #4]
	ldr	r5, [r4, #40]
	sub	r3, r3, #1
	mul	r3, r10, r3
	mov	r0, r4
	sub	r5, r5, r3
	bl	widget_padding_get_padding_width
	mov	r3, r0
	ldr	r0, [r4, #24]
	sub	r5, r5, r3
	bl	WIDGET
	bl	widget_enabled
	cmp	r0, #0
	bne	.L28
.L11:
	mov	r0, r5
	ldr	r1, [r4, #4]
	bl	__aeabi_uidiv
	cmp	r9, #0
	beq	.L16
	add	r2, r10, r0
	stmib	sp, {r2, r6, fp}
	mov	r5, #0
	mov	fp, r0
	b	.L15
.L29:
	ldr	r3, [r4]
	mov	r0, r4
	str	r3, [sp, #20]
	bl	widget_padding_get_bottom
	mov	r2, r0
	ldr	r1, [r4, #8]
	mov	r0, r5
	str	r2, [sp, #16]
	bl	__aeabi_uidivmod
	ldr	ip, [r4, #20]
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #16]
	add	lr, ip, r3
	mul	r1, lr, r1
	ldr	r3, [sp, #20]
	ldr	r0, [r4, #28]
	sub	r3, r3, ip
	sub	r3, r3, r1
	sub	r2, r3, r2
	ldr	r0, [r0, r5, lsl #2]
	str	r2, [sp, #16]
.L24:
	bl	WIDGET
	mov	r1, r6
	ldr	r2, [sp, #16]
	bl	widget_move
	ldr	r3, [r4, #28]
	ldr	r0, [r3, r5, lsl #2]
	bl	WIDGET
	mov	r1, fp
	ldr	r2, [r4, #20]
	bl	widget_resize
	ldr	r2, [sp, #8]
	ldr	r3, .L30+16
	mov	r1, r5
	add	r2, r2, r5
	ldr	r3, [r3]
	mov	r0, r4
	bl	update_element
	ldr	r3, [r4, #28]
	add	r5, r5, #1
	ldr	r0, [r3, r10]
	bl	WIDGET
	mov	r1, r7
	bl	widget_draw
	cmp	r9, r5
	beq	.L16
.L15:
	mov	r0, r5
	ldr	r1, [r4, #8]
	bl	__aeabi_uidivmod
	ldr	r3, [r4, #36]
	ldr	r6, [sp, #4]
	cmp	r3, #0
	mla	r6, r0, r6, r8
	lsl	r10, r5, #2
	bne	.L29
	ldr	r0, [sp, #12]
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #28]
	add	r2, r0, r2
	ldr	r0, [sp]
	mla	r0, r1, r2, r0
	str	r0, [sp, #16]
	ldr	r0, [r3, r5, lsl #2]
	b	.L24
.L16:
	ldr	r3, .L30+12
	ldr	r3, [r3]
	str	r3, [r4, #32]
	b	.L7
.L28:
	ldr	r0, [r4, #24]
	bl	WIDGET
	bl	widget_get_width
	sub	r5, r5, r10
	sub	r5, r5, r0
	b	.L11
.L31:
	.align	2
.L30:
	.word	LISTVIEW_SCROLL_CONTINIOUS
	.word	ROFI_ORIENTATION_VERTICAL
	.word	ROFI_ORIENTATION_HORIZONTAL
	.word	FALSE
	.word	TRUE
	.size	listview_draw, .-listview_draw
	.comm	TRUE,4,4
	.comm	ROFI_ORIENTATION_VERTICAL,4,4
	.comm	ROFI_ORIENTATION_HORIZONTAL,4,4
	.comm	LISTVIEW_SCROLL_CONTINIOUS,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
