	.file	"extr_x11_common.c_vo_x11_selectinput_witherr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"X11 error: error during XSelectInput call, trying without mouse events\n"
	.text
	.p2align 4
	.type	vo_x11_selectinput_witherr, @function
vo_x11_selectinput_witherr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	mov	esi, r12d
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, rbp
	mov	rbx, rcx
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rdx, QWORD PTR NoEventMask[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	XSelectInput@PLT
	mov	rdx, rbx
	mov	esi, r12d
	mov	rdi, rbp
	call	XSelectInput@PLT
	mov	rdx, rsp
	mov	esi, r12d
	mov	rdi, rbp
	call	XGetWindowAttributes@PLT
	test	rax, rax
	je	.L1
	mov	r13, QWORD PTR ButtonPressMask[rip]
	or	r13, QWORD PTR ButtonReleaseMask[rip]
	or	r13, QWORD PTR PointerMotionMask[rip]
	test	rbx, r13
	jne	.L18
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	test	QWORD PTR [rsp], r13
	je	.L1
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, rbx
	test	rax, r13
	je	.L1
	mov	edi, DWORD PTR [r14]
	lea	rsi, .LC0[rip]
	call	MP_ERR@PLT
	mov	rdx, r13
	mov	esi, r12d
	mov	rdi, rbp
	not	rdx
	and	rdx, rbx
	call	XSelectInput@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vo_x11_selectinput_witherr, .-vo_x11_selectinput_witherr
	.comm	PointerMotionMask,8,8
	.comm	NoEventMask,8,8
	.comm	ButtonReleaseMask,8,8
	.comm	ButtonPressMask,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_x11_common.c_vo_x11_selectinput_witherr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"X11 error: error during XSelectInput call, trying w"
	.ascii	"ithout mouse events\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vo_x11_selectinput_witherr, %function
vo_x11_selectinput_witherr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r2
	mov	r6, r3
	ldr	r2, .L20
	ldr	r3, .L20+4
	sub	sp, sp, #16
	mov	r1, r5
	ldr	r2, [r2]
	mov	r8, r0
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	XSelectInput
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	XSelectInput
	mov	r1, r5
	mov	r0, r4
	add	r2, sp, #4
	bl	XGetWindowAttributes
	cmp	r0, #0
	beq	.L1
	ldr	r1, .L20+8
	ldr	r3, .L20+12
	ldr	r2, .L20+16
	ldr	r7, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r7, r7, r3
	orr	r7, r7, r2
	tst	r6, r7
	bne	.L18
.L1:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r3, [sp, #4]
	tst	r7, r3
	beq	.L1
	ldr	r3, [sp, #8]
	eor	r3, r3, r6
	tst	r3, r7
	beq	.L1
	ldr	r0, [r8]
	ldr	r1, .L20+20
	bl	MP_ERR
	mov	r1, r5
	mov	r0, r4
	bic	r2, r6, r7
	bl	XSelectInput
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	NoEventMask
	.word	.LC1
	.word	ButtonPressMask
	.word	ButtonReleaseMask
	.word	PointerMotionMask
	.word	.LC0
	.size	vo_x11_selectinput_witherr, .-vo_x11_selectinput_witherr
	.comm	PointerMotionMask,4,4
	.comm	NoEventMask,4,4
	.comm	ButtonReleaseMask,4,4
	.comm	ButtonPressMask,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
