	.file	"extr_grid-view.c_grid_view_insert_cells.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	grid_view_insert_cells
	.type	grid_view_insert_cells, @function
grid_view_insert_cells:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	call	grid_view_x@PLT
	mov	esi, r13d
	mov	rdi, rbp
	mov	r12d, eax
	call	grid_view_y@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	r13d, eax
	call	grid_view_x@PLT
	lea	edx, -1[rax]
	cmp	edx, r12d
	jg	.L2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	r9d, r14d
	mov	edx, r13d
	mov	esi, r12d
	mov	rdi, rbp
	mov	r8d, 1
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	ecx, 1
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	grid_clear@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	sub	eax, r12d
	lea	esi, [r12+rbx]
	mov	r9d, r14d
	mov	ecx, r13d
	sub	eax, ebx
	mov	edx, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	mov	r8d, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	grid_move_cells@PLT
	.cfi_endproc
.LFE0:
	.size	grid_view_insert_cells, .-grid_view_insert_cells
	.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_grid-view.c_grid_view_insert_cells.c"
	.text
	.align	2
	.global	grid_view_insert_cells
	.syntax unified
	.arm
	.fpu softvfp
	.type	grid_view_insert_cells, %function
grid_view_insert_cells:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r8, r2
	mov	r4, r0
	mov	r6, r3
	ldr	r7, [sp, #32]
	bl	grid_view_x
	mov	r1, r8
	mov	r5, r0
	mov	r0, r4
	bl	grid_view_y
	ldr	r1, [r4]
	mov	r8, r0
	mov	r0, r4
	bl	grid_view_x
	sub	r3, r0, #1
	cmp	r3, r5
	bgt	.L2
	mov	r3, #1
	mov	r2, r8
	mov	r1, r5
	mov	r0, r4
	str	r7, [sp, #4]
	str	r3, [sp]
	bl	grid_clear
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	sub	r1, r0, r5
	sub	r1, r1, r6
	stm	sp, {r1, r7}
	mov	r3, r8
	mov	r2, r5
	mov	r0, r4
	add	r1, r5, r6
	bl	grid_move_cells
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
	.size	grid_view_insert_cells, .-grid_view_insert_cells
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
