	.file	"extr_n_tty.c_n_tty_receive_buf_standard.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	n_tty_receive_buf_standard, @function
n_tty_receive_buf_standard:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	eax, ecx
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	movzx	r14d, BYTE PTR TTY_NORMAL[rip]
	mov	DWORD PTR 20[rsp], ecx
	mov	rcx, QWORD PTR [rdi]
	mov	QWORD PTR 24[rsp], rcx
	test	eax, eax
	je	.L1
	lea	ebx, -1[rax]
	mov	r13, rdi
	mov	r12, rsi
	mov	rbp, rdx
	mov	eax, r14d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L42:
	movzx	r15d, BYTE PTR [r12]
	mov	rdi, r13
	call	I_ISTRIP@PLT
	mov	rdi, r13
	mov	r8, rax
	mov	eax, r15d
	and	eax, 127
	test	r8, r8
	cmovne	r15d, eax
	call	I_IUCLC@PLT
	movzx	r15d, r15b
	test	rax, rax
	jne	.L40
.L6:
	mov	rdi, r13
	call	L_EXTPROC@PLT
	test	rax, rax
	jne	.L41
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, r15d
	mov	esi, DWORD PTR [rax]
	call	test_bit@PLT
	mov	esi, r15d
	mov	rdi, r13
	test	eax, eax
	jne	.L9
	call	n_tty_receive_char_inline@PLT
.L8:
	lea	edx, -1[rbx]
	test	ebx, ebx
	je	.L1
.L43:
	movzx	eax, BYTE PTR TTY_NORMAL[rip]
	mov	r12, QWORD PTR 8[rsp]
	mov	DWORD PTR 20[rsp], ebx
	mov	ebx, edx
.L11:
	test	rbp, rbp
	je	.L3
	movzx	r14d, BYTE PTR 0[rbp]
	add	rbp, 1
.L3:
	xor	edi, edi
	cmp	al, r14b
	sete	dil
	call	likely@PLT
	lea	rcx, 1[r12]
	mov	QWORD PTR 8[rsp], rcx
	test	rax, rax
	jne	.L42
	movzx	esi, BYTE PTR [r12]
	movsx	edx, r14b
	mov	rdi, r13
	call	n_tty_receive_char_flagged@PLT
	lea	edx, -1[rbx]
	test	ebx, ebx
	jne	.L43
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	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
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	call	n_tty_receive_char_special@PLT
	test	rax, rax
	je	.L8
	test	ebx, ebx
	je	.L1
	test	rbp, rbp
	je	.L10
	movzx	r14d, BYTE PTR 0[rbp]
	add	rbp, 1
.L10:
	movzx	esi, BYTE PTR 1[r12]
	lea	rax, 2[r12]
	movsx	edx, r14b
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], rax
	call	n_tty_receive_char_lnext@PLT
	mov	ebx, DWORD PTR 20[rsp]
	sub	ebx, 2
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rsi, QWORD PTR 24[rsp]
	mov	edi, r15d
	call	put_tty_queue@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, r13
	call	L_IEXTEN@PLT
	test	rax, rax
	je	.L6
	mov	edi, r15d
	call	tolower@PLT
	movzx	r15d, al
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	n_tty_receive_buf_standard, .-n_tty_receive_buf_standard
	.comm	TTY_NORMAL,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_n_tty.c_n_tty_receive_buf_standard.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	n_tty_receive_buf_standard, %function
n_tty_receive_buf_standard:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	fp, r3, #0
	ldr	r3, [r0]
	sub	sp, sp, #12
	str	r3, [sp, #4]
	ldr	r3, .L45
	ldrb	r8, [r3]	@ zero_extendqisi2
	beq	.L1
	mov	r7, r0
	mov	r6, r1
	mov	r4, r2
	mov	r0, r8
	sub	r5, fp, #1
	b	.L11
.L43:
	mov	r0, r7
	ldrb	r9, [r6]	@ zero_extendqisi2
	bl	I_ISTRIP
	cmp	r0, #0
	mov	r0, r7
	andne	r9, r9, #127
	bl	I_IUCLC
	cmp	r0, #0
	bne	.L41
.L6:
	mov	r0, r7
	bl	L_EXTPROC
	cmp	r0, #0
	bne	.L42
	ldr	r3, [sp, #4]
	mov	r0, r9
	ldr	r1, [r3]
	bl	test_bit
	cmp	r0, #0
	mov	r1, r9
	mov	r0, r7
	bne	.L9
	bl	n_tty_receive_char_inline
.L8:
	cmp	r5, #0
	sub	r3, r5, #1
	beq	.L1
.L44:
	mov	r6, r10
	mov	fp, r5
	mov	r5, r3
	ldr	r3, .L45
	ldrb	r0, [r3]	@ zero_extendqisi2
.L11:
	cmp	r4, #0
	ldrbne	r8, [r4], #1	@ zero_extendqisi2
	add	r10, r6, #1
	sub	r0, r0, r8
	clz	r0, r0
	lsr	r0, r0, #5
	bl	likely
	cmp	r0, #0
	bne	.L43
	mov	r2, r8
	mov	r0, r7
	ldrb	r1, [r6]	@ zero_extendqisi2
	bl	n_tty_receive_char_flagged
	cmp	r5, #0
	sub	r3, r5, #1
	bne	.L44
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	bl	n_tty_receive_char_special
	cmp	r0, #0
	beq	.L8
	cmp	r5, #0
	beq	.L1
	cmp	r4, #0
	ldrbne	r8, [r4], #1	@ zero_extendqisi2
	mov	r0, r7
	mov	r2, r8
	ldrb	r1, [r6, #1]	@ zero_extendqisi2
	sub	r5, fp, #2
	add	r10, r6, #2
	bl	n_tty_receive_char_lnext
	b	.L8
.L42:
	mov	r0, r9
	ldr	r1, [sp, #4]
	bl	put_tty_queue
	b	.L8
.L41:
	mov	r0, r7
	bl	L_IEXTEN
	cmp	r0, #0
	beq	.L6
	mov	r0, r9
	bl	tolower
	mov	r9, r0
	b	.L6
.L46:
	.align	2
.L45:
	.word	TTY_NORMAL
	.size	n_tty_receive_buf_standard, .-n_tty_receive_buf_standard
	.comm	TTY_NORMAL,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
