	.file	"extr_os_win32.c_mch_setmouse.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mch_setmouse
	.type	mch_setmouse, @function
mch_setmouse:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR g_fMouseAvail[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	edx, edx
	jne	.L9
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	DWORD PTR g_fMouseActive[rip], edi
	mov	edi, DWORD PTR g_hConIn[rip]
	lea	rsi, 4[rsp]
	call	GetConsoleMode@PLT
	mov	eax, DWORD PTR g_fMouseActive[rip]
	test	eax, eax
	je	.L4
	mov	esi, DWORD PTR 4[rsp]
	or	esi, DWORD PTR ENABLE_MOUSE_INPUT[rip]
.L5:
	mov	edi, DWORD PTR g_hConIn[rip]
	mov	DWORD PTR 4[rsp], esi
	call	SetConsoleMode@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR ENABLE_MOUSE_INPUT[rip]
	not	esi
	and	esi, DWORD PTR 4[rsp]
	jmp	.L5
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mch_setmouse, .-mch_setmouse
	.comm	g_hConIn,4,4
	.comm	g_fMouseAvail,4,4
	.comm	g_fMouseActive,4,4
	.comm	ENABLE_MOUSE_INPUT,4,4
	.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_setmouse.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mch_setmouse
	.syntax unified
	.arm
	.fpu softvfp
	.type	mch_setmouse, %function
mch_setmouse:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r2, .L10
	ldr	r1, .L10+4
	ldr	r2, [r2]
	sub	sp, sp, #12
	cmp	r2, #0
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	beq	.L1
	mov	r3, r0
	ldr	r4, .L10+8
	ldr	r5, .L10+12
	mov	r1, sp
	ldr	r0, [r4]
	str	r3, [r5]
	bl	GetConsoleMode
	ldr	r3, [r5]
	ldr	r1, [sp]
	cmp	r3, #0
	ldr	r3, .L10+16
	ldr	r0, [r4]
	ldr	r3, [r3]
	orrne	r1, r1, r3
	biceq	r1, r1, r3
	str	r1, [sp]
	bl	SetConsoleMode
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	g_fMouseAvail
	.word	.LC0
	.word	g_hConIn
	.word	g_fMouseActive
	.word	ENABLE_MOUSE_INPUT
	.size	mch_setmouse, .-mch_setmouse
	.comm	g_hConIn,4,4
	.comm	g_fMouseAvail,4,4
	.comm	g_fMouseActive,4,4
	.comm	ENABLE_MOUSE_INPUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
