	.file	"extr_scr-x.c_ScreenChangeResolution.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ScreenChangeResolution
	.type	ScreenChangeResolution, @function
ScreenChangeResolution:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	xor	edi, edi
	call	XOpenDisplay@PLT
	xor	esi, esi
	mov	rdi, rax
	mov	rbp, rax
	call	RootWindow@PLT
	mov	rdi, QWORD PTR x11Conf[rip]
	mov	r12d, eax
	test	rdi, rdi
	je	.L2
	call	XRRFreeScreenConfigInfo@PLT
.L2:
	mov	esi, r12d
	mov	rdi, rbp
	call	XRRGetScreenInfo@PLT
	mov	rdi, rax
	mov	QWORD PTR x11Conf[rip], rax
	call	XRRConfigCurrentRate@PLT
	mov	rdi, QWORD PTR x11Conf[rip]
	lea	rsi, x11OriginalRotation[rip]
	mov	DWORD PTR x11OriginalRate[rip], eax
	call	XRRConfigCurrentConfiguration@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	ecx, DWORD PTR 4[rbx]
	mov	r9d, DWORD PTR [rbx]
	mov	DWORD PTR x11OriginalSizeId[rip], eax
	mov	eax, DWORD PTR CurrentTime[rip]
	mov	edx, r12d
	mov	rdi, rbp
	mov	r8d, DWORD PTR RR_Rotate_0[rip]
	mov	rsi, QWORD PTR x11Conf[rip]
	push	rax
	.cfi_def_cfa_offset 48
	call	XRRSetScreenConfigAndRate@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rdx
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	XCloseDisplay@PLT
	.cfi_endproc
.LFE0:
	.size	ScreenChangeResolution, .-ScreenChangeResolution
	.comm	x11OriginalSizeId,4,4
	.comm	x11OriginalRotation,4,4
	.comm	x11OriginalRate,4,4
	.comm	x11Conf,8,8
	.comm	RR_Rotate_0,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_scr-x.c_ScreenChangeResolution.c"
	.text
	.align	2
	.global	ScreenChangeResolution
	.syntax unified
	.arm
	.fpu softvfp
	.type	ScreenChangeResolution, %function
ScreenChangeResolution:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	sub	sp, sp, #20
	mov	r0, #0
	bl	XOpenDisplay
	mov	r1, #0
	mov	r4, r0
	bl	RootWindow
	ldr	r6, .L8
	mov	r7, r0
	ldr	r0, [r6]
	cmp	r0, #0
	beq	.L2
	bl	XRRFreeScreenConfigInfo
.L2:
	mov	r1, r7
	mov	r0, r4
	bl	XRRGetScreenInfo
	str	r0, [r6]
	bl	XRRConfigCurrentRate
	ldr	r3, .L8+4
	ldr	r1, .L8+8
	str	r0, [r3]
	ldr	r0, [r6]
	bl	XRRConfigCurrentConfiguration
	mov	lr, r0
	ldr	r2, .L8+12
	ldr	r3, .L8+16
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	ip, .L8+20
	str	r0, [sp, #8]
	str	r3, [sp]
	ldm	r5, {r0, r3}
	mov	r2, r7
	str	r0, [sp, #4]
	ldr	r1, [r6]
	mov	r0, r4
	str	lr, [ip]
	bl	XRRSetScreenConfigAndRate
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	XCloseDisplay
.L9:
	.align	2
.L8:
	.word	x11Conf
	.word	x11OriginalRate
	.word	x11OriginalRotation
	.word	CurrentTime
	.word	RR_Rotate_0
	.word	x11OriginalSizeId
	.size	ScreenChangeResolution, .-ScreenChangeResolution
	.comm	x11OriginalSizeId,4,4
	.comm	x11OriginalRotation,4,4
	.comm	x11OriginalRate,4,4
	.comm	x11Conf,4,4
	.comm	RR_Rotate_0,4,4
	.comm	CurrentTime,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
