	.file	"extr_term.c_bufferc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bufferc, @function
bufferc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR TERMP_NOBUF[rip], eax
	jne	.L9
	movsx	rax, DWORD PTR 4[rdi]
	mov	rdi, QWORD PTR 8[rdi]
	lea	esi, 1[rax]
	cmp	esi, DWORD PTR [rdi]
	jge	.L10
	mov	edx, DWORD PTR 4[rdi]
	cmp	edx, eax
	jg	.L11
.L4:
	mov	rdx, QWORD PTR 8[rdi]
	mov	BYTE PTR [rdx+rax], bl
	mov	rdi, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 4[rdi]
.L5:
	add	eax, 1
	mov	DWORD PTR 4[rbp], eax
	cmp	eax, edx
	jle	.L1
	mov	DWORD PTR 4[rdi], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	cmp	bl, 32
	je	.L5
	cmp	BYTE PTR ASCII_NBRSP[rip], bl
	jne	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	call	adjbuf@PLT
	mov	rdi, QWORD PTR 8[rbp]
	movsx	rax, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 4[rdi]
	cmp	edx, eax
	jle	.L4
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 16[rdi]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	movsx	esi, sil
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	rax
	.cfi_endproc
.LFE0:
	.size	bufferc, .-bufferc
	.comm	TERMP_NOBUF,4,4
	.comm	ASCII_NBRSP,1,1
	.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_term.c_bufferc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bufferc, %function
bufferc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	tst	r2, r3
	mov	r4, r0
	bne	.L12
	ldr	r0, [r0, #8]
	ldr	r3, [r4, #4]
	ldr	r2, [r0]
	mov	r5, r1
	add	r1, r3, #1
	cmp	r1, r2
	bge	.L13
	ldr	r2, [r0, #4]
	cmp	r2, r3
	bgt	.L14
.L4:
	ldr	r2, [r0, #8]
	strb	r5, [r2, r3]
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #4]
	ldr	r2, [r0, #4]
.L5:
	add	r3, r3, #1
	cmp	r3, r2
	str	r3, [r4, #4]
	strgt	r3, [r0, #4]
	pop	{r4, r5, r6, pc}
.L14:
	cmp	r5, #32
	beq	.L5
	ldr	r1, .L15+4
	ldrb	r1, [r1]	@ zero_extendqisi2
	cmp	r1, r5
	bne	.L4
	b	.L5
.L13:
	bl	adjbuf
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #4]
	ldr	r2, [r0, #4]
	cmp	r2, r3
	ble	.L4
	b	.L14
.L12:
	ldr	r3, [r0, #12]
	pop	{r4, r5, r6, lr}
	bx	r3
.L16:
	.align	2
.L15:
	.word	TERMP_NOBUF
	.word	ASCII_NBRSP
	.size	bufferc, .-bufferc
	.comm	TERMP_NOBUF,4,4
	.comm	ASCII_NBRSP,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
