	.file	"extr_x11_monitor.c__glfwPlatformGetVideoMode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_glfwPlatformGetVideoMode
	.type	_glfwPlatformGetVideoMode, @function
_glfwPlatformGetVideoMode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR _glfw[rip+4]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR _glfw[rip+24], 0
	je	.L2
	mov	eax, DWORD PTR _glfw[rip+16]
	test	eax, eax
	je	.L9
.L2:
	mov	esi, DWORD PTR _glfw[rip]
	call	DisplayWidth@PLT
	mov	esi, DWORD PTR _glfw[rip]
	mov	edi, DWORD PTR _glfw[rip+4]
	mov	DWORD PTR 28[r12], eax
	call	DisplayHeight@PLT
	mov	edi, DWORD PTR _glfw[rip+4]
	mov	QWORD PTR 16[r12], 0
	mov	DWORD PTR 24[r12], eax
	mov	esi, DWORD PTR _glfw[rip]
	call	DefaultDepth@PLT
	mov	edi, eax
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdx, 4[r12]
	lea	rsi, 8[r12]
	mov	rcx, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	_glfwSplitBPP@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR _glfw[rip+8]
	call	XRRGetScreenResourcesCurrent@PLT
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR _glfw[rip+4]
	mov	rsi, rax
	mov	rbp, rax
	call	XRRGetCrtcInfo@PLT
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	mov	r13, rax
	call	getModeInfo@PLT
	mov	rdi, rsp
	mov	rdx, r13
	mov	esi, eax
	call	vidmodeFromModeInfo@PLT
	movdqu	xmm0, XMMWORD PTR [rsp]
	movdqu	xmm1, XMMWORD PTR 16[rsp]
	mov	rdi, r13
	movups	XMMWORD PTR [r12], xmm0
	movups	XMMWORD PTR 16[r12], xmm1
	call	XRRFreeCrtcInfo@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	XRRFreeScreenResources@PLT
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_glfwPlatformGetVideoMode, .-_glfwPlatformGetVideoMode
	.comm	_glfw,32,32
	.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__glfwPlatformGetVideoMode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_glfwPlatformGetVideoMode
	.syntax unified
	.arm
	.fpu softvfp
	.type	_glfwPlatformGetVideoMode, %function
_glfwPlatformGetVideoMode:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, .L13
	ldr	r3, .L13+4
	ldr	r2, [r6, #16]
	sub	sp, sp, #36
	cmp	r2, #0
	mov	r5, r0
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r0, [r6, #4]
	beq	.L2
	ldr	r3, [r6, #12]
	cmp	r3, #0
	beq	.L12
.L2:
	ldr	r1, [r6]
	bl	DisplayWidth
	ldr	r1, [r6]
	str	r0, [r4, #20]
	ldr	r0, [r6, #4]
	bl	DisplayHeight
	mov	r3, #0
	str	r0, [r4, #16]
	str	r3, [r4, #12]
	ldr	r1, [r6]
	ldr	r0, [r6, #4]
	bl	DefaultDepth
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r3, r4
	add	r2, r4, #4
	add	r1, r4, #8
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	_glfwSplitBPP
.L12:
	ldr	r1, [r6, #8]
	bl	XRRGetScreenResourcesCurrent
	mov	r7, r0
	ldr	r2, [r5]
	mov	r1, r7
	ldr	r0, [r6, #4]
	bl	XRRGetCrtcInfo
	mov	r5, r0
	mov	r0, r7
	ldr	r1, [r5]
	bl	getModeInfo
	mov	r2, r5
	mov	r1, r0
	mov	r0, sp
	bl	vidmodeFromModeInfo
	mov	ip, sp
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	r4!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	r4, {r0, r1}
	mov	r0, r5
	bl	XRRFreeCrtcInfo
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r7
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	XRRFreeScreenResources
.L10:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	_glfw
	.word	.LC0
	.size	_glfwPlatformGetVideoMode, .-_glfwPlatformGetVideoMode
	.comm	_glfw,20,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
