	.file	"extr_x11_monitor.c__glfwSetVideoModeX11.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"X11: Monitor mode list changed"
	.text
	.p2align 4
	.globl	_glfwSetVideoModeX11
	.type	_glfwSetVideoModeX11, @function
_glfwSetVideoModeX11:
.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, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR _glfw[rip+16], 0
	je	.L2
	mov	edx, DWORD PTR _glfw[rip+8]
	test	edx, edx
	je	.L16
.L2:
	mov	eax, DWORD PTR GLFW_TRUE[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 56
	.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
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR None[rip]
	mov	rbx, rdi
	lea	rbp, 32[rsp]
	mov	QWORD PTR 24[rsp], rax
	call	_glfwChooseVideoMode@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	r15, rax
	mov	QWORD PTR 8[rsp], rax
	call	_glfwPlatformGetVideoMode@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	_glfwCompareVideoModes@PLT
	test	rax, rax
	je	.L2
	mov	esi, DWORD PTR _glfw[rip+4]
	mov	edi, DWORD PTR _glfw[rip]
	call	XRRGetScreenResources@PLT
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR _glfw[rip]
	mov	rsi, rax
	mov	rbp, rax
	call	XRRGetCrtcInfo@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR _glfw[rip]
	mov	rsi, rbp
	mov	r13, rax
	call	XRRGetOutputInfo@PLT
	mov	r15, rax
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L5
	lea	rax, 36[rsp]
	xor	r12d, r12d
	mov	QWORD PTR 16[rsp], rax
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[r15]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+r12*4]
	call	getModeInfo@PLT
	mov	rdi, rax
	mov	r14, rax
	call	modeIsGood@PLT
	test	eax, eax
	je	.L8
	mov	rsi, r13
	mov	rdi, r14
	call	vidmodeFromModeInfo@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	mov	DWORD PTR 36[rsp], eax
	call	_glfwCompareVideoModes@PLT
	test	rax, rax
	je	.L18
.L8:
	add	r12, 1
	cmp	DWORD PTR [r15], r12d
	jg	.L7
.L5:
	cmp	QWORD PTR 24[rsp], 0
	je	.L9
	mov	rax, QWORD PTR None[rip]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L10
	mov	rax, QWORD PTR 24[r13]
	mov	QWORD PTR 8[rbx], rax
.L10:
	mov	eax, DWORD PTR 0[r13]
	mov	r9d, DWORD PTR 12[r13]
	mov	rsi, rbp
	mov	r8d, DWORD PTR 16[r13]
	mov	ecx, DWORD PTR CurrentTime[rip]
	push	rax
	.cfi_def_cfa_offset 120
	mov	eax, DWORD PTR 4[r13]
	mov	edi, DWORD PTR _glfw[rip]
	push	rax
	.cfi_def_cfa_offset 128
	mov	eax, DWORD PTR 8[r13]
	push	rax
	.cfi_def_cfa_offset 136
	mov	edx, DWORD PTR [rbx]
	push	QWORD PTR 48[rsp]
	.cfi_def_cfa_offset 144
	call	XRRSetCrtcConfig@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	mov	rdi, r15
	call	XRRFreeOutputInfo@PLT
	mov	rdi, r13
	call	XRRFreeCrtcInfo@PLT
	mov	rdi, rbp
	call	XRRFreeScreenResources@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r15
	call	XRRFreeOutputInfo@PLT
	mov	rdi, r13
	call	XRRFreeCrtcInfo@PLT
	mov	rdi, rbp
	call	XRRFreeScreenResources@PLT
	mov	edi, DWORD PTR GLFW_PLATFORM_ERROR[rip]
	lea	rsi, .LC0[rip]
	call	_glfwInputError@PLT
	mov	eax, DWORD PTR GLFW_FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR [r14]
	mov	QWORD PTR 24[rsp], rax
	jmp	.L5
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_glfwSetVideoModeX11, .-_glfwSetVideoModeX11
	.comm	_glfw,24,16
	.comm	None,8,8
	.comm	GLFW_TRUE,4,4
	.comm	GLFW_PLATFORM_ERROR,4,4
	.comm	GLFW_FALSE,4,4
	.comm	CurrentTime,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_monitor.c__glfwSetVideoModeX11.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"X11: Monitor mode list changed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_glfwSetVideoModeX11
	.syntax unified
	.arm
	.fpu softvfp
	.type	_glfwSetVideoModeX11, %function
_glfwSetVideoModeX11:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, .L22
	ldr	r3, .L22+4
	ldr	r2, [fp, #12]
	sub	sp, sp, #52
	cmp	r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	beq	.L2
	ldr	r4, [fp, #8]
	cmp	r4, #0
	beq	.L19
.L2:
	ldr	r3, .L22+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	ldr	r3, .L22+12
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	bl	_glfwChooseVideoMode
	mov	r9, r0
	add	r1, sp, #36
	mov	r0, r5
	bl	_glfwPlatformGetVideoMode
	mov	r1, r9
	add	r0, sp, #36
	bl	_glfwCompareVideoModes
	cmp	r0, #0
	beq	.L2
	ldm	fp, {r0, r1}
	bl	XRRGetScreenResources
	ldr	r2, [r5]
	mov	r1, r0
	mov	r8, r0
	ldr	r0, [fp]
	bl	XRRGetCrtcInfo
	ldr	r2, [r5, #8]
	mov	r10, r0
	mov	r1, r8
	ldr	r0, [fp]
	bl	XRRGetOutputInfo
	ldr	r2, [r0]
	mov	r7, r0
	cmp	r2, #0
	ble	.L5
.L7:
	ldr	r2, [r7, #4]
	mov	r0, r8
	ldr	r1, [r2, r4, lsl #2]
	bl	getModeInfo
	mov	r6, r0
	bl	modeIsGood
	cmp	r0, #0
	beq	.L8
	mov	r1, r10
	mov	r0, r6
	bl	vidmodeFromModeInfo
	mov	r2, r0
	add	r1, sp, #40
	mov	r0, r9
	str	r2, [sp, #40]
	bl	_glfwCompareVideoModes
	cmp	r0, #0
	beq	.L21
.L8:
	ldr	r2, [r7]
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L7
.L5:
	ldr	r3, [sp, #28]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L22+12
	ldr	r1, [r5, #4]
	ldr	r2, [r3]
	ldr	r0, [fp]
	cmp	r1, r2
	ldreq	r2, [r10, #20]
	ldr	r1, [r10]
	streq	r2, [r5, #4]
	ldr	r2, [r5]
	str	r1, [sp, #20]
	ldr	r1, [r10, #4]
	str	r1, [sp, #16]
	ldr	r3, [r10, #8]
	ldr	r1, [sp, #28]
	str	r3, [sp, #12]
	str	r1, [sp, #8]
	ldr	r1, [r10, #12]
	ldr	r3, .L22+16
	str	r1, [sp, #4]
	ldr	r1, [r10, #16]
	ldr	r3, [r3]
	str	r1, [sp]
	mov	r1, r8
	bl	XRRSetCrtcConfig
	mov	r0, r7
	bl	XRRFreeOutputInfo
	mov	r0, r10
	bl	XRRFreeCrtcInfo
	mov	r0, r8
	bl	XRRFreeScreenResources
	b	.L2
.L9:
	mov	r0, r7
	bl	XRRFreeOutputInfo
	mov	r0, r10
	bl	XRRFreeCrtcInfo
	mov	r0, r8
	bl	XRRFreeScreenResources
	ldr	r3, .L22+20
	ldr	r1, .L22+24
	ldr	r0, [r3]
	bl	_glfwInputError
	ldr	r3, .L22+28
	ldr	r0, [r3]
	b	.L1
.L21:
	ldr	r3, [r6]
	str	r3, [sp, #28]
	b	.L5
.L20:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	_glfw
	.word	.LC1
	.word	GLFW_TRUE
	.word	None
	.word	CurrentTime
	.word	GLFW_PLATFORM_ERROR
	.word	.LC0
	.word	GLFW_FALSE
	.size	_glfwSetVideoModeX11, .-_glfwSetVideoModeX11
	.comm	_glfw,16,4
	.comm	None,4,4
	.comm	GLFW_TRUE,4,4
	.comm	GLFW_PLATFORM_ERROR,4,4
	.comm	GLFW_FALSE,4,4
	.comm	CurrentTime,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
