	.file	"extr_x11_window.c_acquireMonitor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	acquireMonitor, @function
acquireMonitor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR _glfw[rip+8], 0
	je	.L8
.L2:
	mov	rdi, QWORD PTR [rbx]
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jne	.L3
	add	QWORD PTR _glfw[rip+8], 1
.L3:
	lea	rsi, 24[rbx]
	call	_glfwSetVideoModeX11@PLT
	cmp	QWORD PTR 16[rbx], 0
	mov	r12d, eax
	jne	.L9
.L4:
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rbx
	call	_glfwInputMonitorWindowChange@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	r8, _glfw[rip+16]
	mov	edi, DWORD PTR _glfw[rip]
	lea	rcx, 4[r8]
	lea	rdx, 4[rcx]
	lea	rsi, 4[rdx]
	call	XGetScreenSaver@PLT
	mov	r8d, DWORD PTR DefaultExposures[rip]
	xor	edx, edx
	xor	esi, esi
	mov	ecx, DWORD PTR DontPreferBlanking[rip]
	mov	edi, DWORD PTR _glfw[rip]
	call	XSetScreenSaver@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR [rbx]
	lea	rdx, 12[rsp]
	lea	rsi, 8[rsp]
	call	_glfwPlatformGetMonitorPos@PLT
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, 16[rsp]
	call	_glfwPlatformGetVideoMode@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	r9d, DWORD PTR 16[rsp]
	mov	r8d, DWORD PTR 20[rsp]
	mov	ecx, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR _glfw[rip]
	call	XMoveResizeWindow@PLT
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	acquireMonitor, .-acquireMonitor
	.comm	_glfw,32,32
	.comm	DontPreferBlanking,4,4
	.comm	DefaultExposures,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_x11_window.c_acquireMonitor.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acquireMonitor, %function
acquireMonitor:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L14
	ldr	r3, .L14+4
	ldr	r6, [r5, #4]
	sub	sp, sp, #32
	cmp	r6, #0
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	beq	.L11
.L2:
	ldr	r0, [r4]
	add	r1, r4, #12
	ldr	r3, [r0]
	cmp	r3, #0
	ldreq	r3, [r5, #4]
	addeq	r3, r3, #1
	streq	r3, [r5, #4]
	bl	_glfwSetVideoModeX11
	ldr	r3, [r4, #8]
	mov	r6, r0
	cmp	r3, #0
	bne	.L12
.L4:
	mov	r1, r4
	ldr	r0, [r4]
	bl	_glfwInputMonitorWindowChange
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r6
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	mov	r2, r5
	ldr	r0, [r2], #8
	add	r3, r5, #12
	str	r2, [sp]
	add	r1, r5, #20
	add	r2, r5, #16
	bl	XGetScreenSaver
	ldr	r2, .L14+8
	ldr	r3, .L14+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r6
	str	r2, [sp]
	ldr	r0, [r5]
	mov	r2, r6
	bl	XSetScreenSaver
	b	.L2
.L12:
	add	r2, sp, #16
	add	r1, sp, #12
	ldr	r0, [r4]
	bl	_glfwPlatformGetMonitorPos
	add	r1, sp, #20
	ldr	r0, [r4]
	bl	_glfwPlatformGetVideoMode
	ldr	r2, [sp, #20]
	ldr	r3, [sp, #24]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r0, [r5]
	ldr	r3, [sp, #16]
	ldr	r2, [sp, #12]
	ldr	r1, [r4, #4]
	bl	XMoveResizeWindow
	b	.L4
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	_glfw
	.word	.LC0
	.word	DefaultExposures
	.word	DontPreferBlanking
	.size	acquireMonitor, .-acquireMonitor
	.comm	_glfw,24,4
	.comm	DontPreferBlanking,4,4
	.comm	DefaultExposures,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
