	.file	"extr_os_win32.c_mch_inchar.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mch_inchar
	.type	mch_inchar, @function
mch_inchar:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR [rsp], rdi
	mov	DWORD PTR 28[rsp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR typeaheadlen.1998[rip]
	test	eax, eax
	jg	.L3
	mov	r12d, ecx
	test	rdx, rdx
	js	.L4
	mov	rdi, rdx
	call	WaitForChar@PLT
	test	rax, rax
	je	.L5
.L6:
	mov	esi, DWORD PTR typeaheadlen.1998[rip]
	lea	r15, 48[rsp]
	lea	r14, 44[rsp]
	mov	rax, QWORD PTR FALSE[rip]
	lea	rbx, typeahead.1997[rip]
	mov	QWORD PTR g_fCBrkPressed[rip], rax
	lea	rbp, 160[rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, r12d
	call	typebuf_changed@PLT
	test	rax, rax
	jne	.L68
	mov	rax, QWORD PTR NUL[rip]
	mov	rdi, r14
	mov	rsi, r15
	mov	DWORD PTR 44[rsp], 0
	mov	QWORD PTR 48[rsp], rax
	call	tgetch@PLT
	mov	edi, r12d
	mov	r13d, eax
	call	typebuf_changed@PLT
	test	rax, rax
	jne	.L68
	cmp	DWORD PTR Ctrl_C[rip], r13d
	je	.L71
.L13:
	movsx	rcx, DWORD PTR typeaheadlen.1998[rip]
	mov	rax, QWORD PTR 48[rsp]
	movsx	rdx, r13d
	cmp	rax, QWORD PTR NUL[rip]
	mov	rdi, QWORD PTR FALSE[rip]
	mov	QWORD PTR [rbx+rcx*8], rdx
	mov	rsi, rcx
	je	.L72
	lea	edx, 1[rcx]
	movsx	rdx, edx
	mov	QWORD PTR [rbx+rdx*8], 3
	lea	edx, 2[rcx]
	movsx	rdx, edx
	mov	QWORD PTR [rbx+rdx*8], rax
	test	edi, edi
	jne	.L18
.L30:
	mov	eax, DWORD PTR 44[rsp]
	mov	r8d, 3
.L17:
	test	eax, eax
	jne	.L73
.L24:
	add	esi, r8d
	mov	DWORD PTR typeaheadlen.1998[rip], esi
.L9:
	test	esi, esi
	je	.L25
	xor	edi, edi
	call	WaitForChar@PLT
	test	rax, rax
	je	.L3
	cmp	DWORD PTR typeaheadlen.1998[rip], 15
	jle	.L25
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jle	.L5
	lea	ebp, -1[rax]
	xor	ebx, ebx
	lea	r14, typeahead.1997[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, QWORD PTR [rsp]
	mov	rax, QWORD PTR [r14]
	sub	edx, 1
	lea	r12d, 1[rbx]
	lea	rsi, typeahead.1997[rip+8]
	mov	DWORD PTR typeaheadlen.1998[rip], edx
	mov	QWORD PTR [rdi+rbx*8], rax
	lea	rdi, -8[rsi]
	call	mch_memmove@PLT
	lea	rax, 1[rbx]
	cmp	rbp, rbx
	je	.L1
	mov	rbx, rax
.L11:
	mov	edx, DWORD PTR typeaheadlen.1998[rip]
	mov	r12d, ebx
	test	edx, edx
	jg	.L27
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L74
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	xor	eax, eax
	call	mch_set_winsize_now@PLT
	mov	rdi, QWORD PTR p_ut[rip]
	call	WaitForChar@PLT
	test	rax, rax
	jne	.L6
	call	before_blocking@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L72:
	test	edi, edi
	jne	.L15
	mov	eax, DWORD PTR 44[rsp]
	mov	edi, DWORD PTR MOD_MASK_ALT[rip]
	mov	r9d, eax
	test	eax, edi
	je	.L69
.L16:
	test	dl, -128
	je	.L23
	mov	eax, r9d
	mov	r8d, 1
	test	eax, eax
	je	.L24
	.p2align 4,,10
	.p2align 3
.L73:
	sal	rsi, 3
	mov	edx, r8d
	mov	DWORD PTR 8[rsp], r8d
	lea	r9, [rbx+rsi]
	lea	rdi, 24[rbx+rsi]
	mov	rsi, r9
	call	mch_memmove@PLT
	movsx	rdx, DWORD PTR typeaheadlen.1998[rip]
	mov	r8d, DWORD PTR 8[rsp]
	mov	rcx, QWORD PTR K_SPECIAL[rip]
	mov	rax, rdx
	mov	QWORD PTR [rbx+rdx*8], rcx
	mov	rcx, QWORD PTR KS_MODIFIER[rip]
	lea	edx, 1[rdx]
	lea	esi, 3[rax]
	movsx	rdx, edx
	add	eax, 2
	mov	QWORD PTR [rbx+rdx*8], rcx
	movsx	rdx, DWORD PTR 44[rsp]
	cdqe
	mov	QWORD PTR [rbx+rax*8], rdx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L71:
	cmp	QWORD PTR ctrl_c_interrupts[rip], 0
	je	.L13
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR got_int[rip], rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, edi
	or	dl, -128
	not	eax
	mov	QWORD PTR [rbx+rcx*8], rdx
	and	eax, r9d
	mov	DWORD PTR 44[rsp], eax
.L69:
	mov	r8d, 1
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rcx, [rbx+rcx*8]
	mov	rax, QWORD PTR [rcx]
	cmp	rcx, rbp
	jnb	.L30
	mov	r8d, 3
	test	rax, rax
	jne	.L21
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rax, r13
	mov	r13, rcx
	mov	rcx, rax
	mov	rax, QWORD PTR 8[r13]
	cmp	rcx, rbp
	jnb	.L35
.L75:
	test	rax, rax
	je	.L35
.L21:
	movsx	rdx, DWORD PTR K_NUL[rip]
	lea	r13, 8[rcx]
	cmp	rdx, rax
	jne	.L33
	mov	rdx, rbp
	lea	rdi, 16[rcx]
	mov	rsi, r13
	mov	DWORD PTR 24[rsp], r8d
	sub	rdx, r13
	mov	QWORD PTR 16[rsp], rcx
	sar	rdx, 3
	mov	QWORD PTR 8[rsp], rdi
	sub	edx, 1
	call	mch_memmove@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	mov	r8d, DWORD PTR 24[rsp]
	mov	QWORD PTR 8[rcx], 3
	mov	rcx, rdi
	mov	rax, QWORD PTR 8[r13]
	add	r8d, 1
	cmp	rcx, rbp
	jb	.L75
	.p2align 4,,10
	.p2align 3
.L35:
	movsx	rsi, DWORD PTR typeaheadlen.1998[rip]
.L19:
	mov	r9d, DWORD PTR 44[rsp]
	mov	edi, DWORD PTR MOD_MASK_ALT[rip]
	mov	eax, r9d
	test	r9d, edi
	je	.L17
	cmp	r8d, 1
	jne	.L17
	movsx	rcx, esi
	mov	rdx, QWORD PTR [rbx+rcx*8]
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rcx, [rbx+rcx*8]
	mov	r8d, 1
	mov	rax, QWORD PTR [rcx]
	test	rax, rax
	je	.L19
	cmp	rcx, rbp
	jb	.L21
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L68:
	mov	DWORD PTR typeaheadlen.1998[rip], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	xor	r12d, r12d
	jmp	.L1
.L74:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mch_inchar, .-mch_inchar
	.local	typeahead.1997
	.comm	typeahead.1997,160,32
	.local	typeaheadlen.1998
	.comm	typeaheadlen.1998,4,4
	.comm	want_sniff_request,8,8
	.comm	sniff_request_waiting,8,8
	.comm	p_ut,8,8
	.comm	input_conv,8,8
	.comm	got_int,8,8
	.comm	g_yMouse,4,4
	.comm	g_xMouse,4,4
	.comm	g_nMouseClick,4,4
	.comm	g_fCBrkPressed,8,8
	.comm	fdDump,8,8
	.comm	enc_dbcs,4,4
	.comm	ctrl_c_interrupts,8,8
	.comm	TYPEAHEADLEN,4,4
	.comm	TRUE,8,8
	.comm	NUL,8,8
	.comm	MOD_MASK_ALT,4,4
	.comm	K_SPECIAL,8,8
	.comm	K_NUL,4,4
	.comm	KS_MODIFIER,8,8
	.comm	KS_EXTRA,8,8
	.comm	KE_SNIFF,8,8
	.comm	KE_CURSORHOLD,8,8
	.comm	FALSE,8,8
	.comm	ESC,8,8
	.comm	Ctrl_C,4,4
	.comm	CSI,8,8
	.comm	CONV_NONE,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_os_win32.c_mch_inchar.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mch_inchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	mch_inchar, %function
mch_inchar:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L64
	sub	sp, sp, #36
	str	r0, [sp, #12]
	ldr	r0, [r5]
	mov	r9, r3
	ldr	r3, .L64+4
	str	r1, [sp, #8]
	cmp	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bgt	.L3
	cmp	r2, #0
	blt	.L4
	mov	r0, r2
	bl	WaitForChar
	cmp	r0, #0
	beq	.L5
.L6:
	ldr	r2, .L64+8
	ldr	r3, .L64+12
	ldr	r2, [r2]
	ldr	r6, [r5]
	str	r2, [r3]
	ldr	r3, .L64+16
	ldr	r10, .L64+20
	ldr	fp, .L64+24
	add	r7, r3, #80
	b	.L9
.L24:
	mov	r0, r9
	bl	typebuf_changed
	subs	r4, r0, #0
	bne	.L57
	ldr	r3, [r10]
	add	r1, sp, #20
	add	r0, sp, #24
	str	r3, [sp, #20]
	str	r4, [sp, #24]
	bl	tgetch
	mov	r8, r0
	mov	r0, r9
	bl	typebuf_changed
	cmp	r0, #0
	bne	.L58
	ldr	r3, [fp]
	cmp	r3, r8
	bne	.L13
	ldr	r3, .L64+28
	ldr	r3, [r3]
	cmp	r3, #0
	ldrne	r3, .L64+32
	ldrne	r2, .L64+36
	ldrne	r3, [r3]
	strne	r3, [r2]
.L13:
	ldr	r2, [r5]
	ldr	r3, [sp, #20]
	add	r1, r5, r2, lsl #2
	ldr	r0, [r10]
	str	r8, [r1, #4]
	ldr	r1, .L64+8
	cmp	r3, r0
	ldr	r1, [r1]
	lsl	r4, r2, #2
	beq	.L59
	mov	r6, #3
	add	r0, r5, r2, lsl #2
	cmp	r1, #0
	str	r6, [r0, #8]
	str	r3, [r0, #12]
	bne	.L18
.L52:
	ldr	r3, [sp, #24]
.L17:
	cmp	r3, #0
	bne	.L60
.L23:
	add	r6, r6, r2
	str	r6, [r5]
.L9:
	cmp	r6, #0
	beq	.L24
	mov	r0, #0
	bl	WaitForChar
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r5]
	cmp	r3, #15
	ble	.L24
.L3:
	ldr	r8, [sp, #8]
	cmp	r8, #0
	ble	.L5
	ldr	r3, [sp, #12]
	mov	r4, #0
	ldr	r7, .L64+40
	sub	r6, r3, #4
	b	.L11
.L26:
	ldr	r3, [r5, #4]
	sub	r2, r2, #1
	mov	r1, r7
	ldr	r0, .L64+16
	add	r4, r4, #1
	str	r3, [r6, #4]!
	str	r2, [r5]
	bl	mch_memmove
	cmp	r8, r4
	beq	.L1
.L11:
	ldr	r2, [r5]
	cmp	r2, #0
	bgt	.L26
.L1:
	ldr	r3, .L64+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L61
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	bl	mch_set_winsize_now
	ldr	r3, .L64+44
	ldr	r0, [r3]
	bl	WaitForChar
	cmp	r0, #0
	bne	.L6
	bl	before_blocking
	b	.L6
.L59:
	cmp	r1, #0
	bne	.L15
	ldr	r1, .L64+48
	ldr	r3, [sp, #24]
	ldr	r0, [r1]
	mov	r1, r3
	tst	r3, r0
	beq	.L55
	tst	r8, #128
	beq	.L22
.L63:
	mov	r3, r1
.L55:
	cmp	r3, #0
	mov	r6, #1
	beq	.L23
.L60:
	add	r0, r2, #3
	ldr	r3, .L64+16
	lsl	r0, r0, #2
	sub	r1, r0, #12
	add	r1, r3, r1
	mov	r2, r6
	add	r0, r3, r0
	bl	mch_memmove
	ldr	r1, .L64+52
	ldr	r3, .L64+56
	ldr	r2, [r5]
	ldr	r1, [r1]
	ldr	r0, [r3]
	add	r3, r5, r2, lsl #2
	str	r1, [r3, #4]
	ldr	r1, [sp, #24]
	str	r0, [r3, #8]
	add	r2, r2, #3
	str	r1, [r3, #12]
	b	.L23
.L18:
	ldr	r1, .L64+16
	ldr	r3, [r1, r4]
	add	r4, r1, r4
	cmp	r3, #0
	cmpne	r4, r7
	bcs	.L52
.L27:
	str	r9, [sp, #4]
	mov	r2, r3
	mov	r9, r6
	ldr	r8, .L64+60
	b	.L21
.L20:
	ldr	r2, [r1, #4]
	cmp	r2, #0
	cmpne	r4, r7
	bcs	.L62
.L21:
	ldr	r0, [r8]
	add	r1, r4, #4
	cmp	r0, r2
	movne	r2, r1
	movne	r1, r4
	movne	r4, r2
	bne	.L20
	sub	r2, r7, r1
	add	r6, r4, #8
	asr	r2, r2, #2
	sub	r2, r2, #1
	mov	r0, r6
	str	r1, [sp]
	bl	mch_memmove
	mov	r3, #3
	str	r3, [r4, #4]
	mov	r4, r6
	ldr	r1, [sp]
	add	r9, r9, #1
	ldr	r2, [r1, #4]
	cmp	r2, #0
	cmpne	r4, r7
	bcc	.L21
.L62:
	mov	r6, r9
	ldr	r2, [r5]
	ldr	r9, [sp, #4]
.L19:
	sub	ip, r6, #1
	clz	ip, ip
	ldr	r3, .L64+48
	ldr	r1, [sp, #24]
	ldr	r0, [r3]
	lsr	ip, ip, #5
	and	lr, r1, r0
	cmp	lr, #0
	moveq	ip, #0
	cmp	ip, #0
	mov	r3, r1
	beq	.L17
	add	r3, r5, r2, lsl #2
	ldr	r8, [r3, #4]
	lsl	r4, r2, #2
	tst	r8, #128
	bne	.L63
.L22:
	add	r4, r5, r4
	orr	r8, r8, #128
	bic	r3, r1, r0
	mov	r6, #1
	str	r8, [r4, #4]
	str	r3, [sp, #24]
	b	.L17
.L15:
	ldr	r1, .L64+16
	mov	r6, #1
	ldr	r3, [r1, r4]
	add	r4, r1, r4
	cmp	r3, #0
	cmpne	r4, r7
	bcc	.L27
	b	.L19
.L5:
	mov	r4, #0
	b	.L1
.L57:
	mov	r3, #0
	str	r3, [r5]
	b	.L3
.L58:
	str	r4, [r5]
	b	.L3
.L61:
	bl	__stack_chk_fail
.L65:
	.align	2
.L64:
	.word	.LANCHOR0
	.word	.LC0
	.word	FALSE
	.word	g_fCBrkPressed
	.word	.LANCHOR0+4
	.word	NUL
	.word	Ctrl_C
	.word	ctrl_c_interrupts
	.word	TRUE
	.word	got_int
	.word	.LANCHOR0+8
	.word	p_ut
	.word	MOD_MASK_ALT
	.word	K_SPECIAL
	.word	KS_MODIFIER
	.word	K_NUL
	.size	mch_inchar, .-mch_inchar
	.comm	want_sniff_request,4,4
	.comm	sniff_request_waiting,4,4
	.comm	p_ut,4,4
	.comm	input_conv,4,4
	.comm	got_int,4,4
	.comm	g_yMouse,4,4
	.comm	g_xMouse,4,4
	.comm	g_nMouseClick,4,4
	.comm	g_fCBrkPressed,4,4
	.comm	fdDump,4,4
	.comm	enc_dbcs,4,4
	.comm	ctrl_c_interrupts,4,4
	.comm	TYPEAHEADLEN,4,4
	.comm	TRUE,4,4
	.comm	NUL,4,4
	.comm	MOD_MASK_ALT,4,4
	.comm	K_SPECIAL,4,4
	.comm	K_NUL,4,4
	.comm	KS_MODIFIER,4,4
	.comm	KS_EXTRA,4,4
	.comm	KE_SNIFF,4,4
	.comm	KE_CURSORHOLD,4,4
	.comm	FALSE,4,4
	.comm	ESC,4,4
	.comm	Ctrl_C,4,4
	.comm	CSI,4,4
	.comm	CONV_NONE,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	typeaheadlen.4282, %object
	.size	typeaheadlen.4282, 4
typeaheadlen.4282:
	.space	4
	.type	typeahead.4281, %object
	.size	typeahead.4281, 80
typeahead.4281:
	.space	80
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
