	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScreenChangeResolution         ## -- Begin function ScreenChangeResolution
	.p2align	4, 0x90
_ScreenChangeResolution:                ## @ScreenChangeResolution
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_XOpenDisplay
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_RootWindow
	movl	%eax, %r15d
	movq	_x11Conf@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_XRRFreeScreenConfigInfo
LBB0_2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_XRRGetScreenInfo
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_XRRConfigCurrentRate
	movq	_x11OriginalRate@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r12), %rdi
	movq	_x11OriginalRotation@GOTPCREL(%rip), %rsi
	callq	_XRRConfigCurrentConfiguration
	movq	_x11OriginalSizeId@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r12), %rsi
	movl	(%r14), %r9d
	movl	4(%r14), %ecx
	movq	_RR_Rotate_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CurrentTime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_XRRSetScreenConfigAndRate
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XCloseDisplay                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_x11Conf,8,3                    ## @x11Conf
	.comm	_x11OriginalRate,4,2            ## @x11OriginalRate
	.comm	_x11OriginalRotation,4,2        ## @x11OriginalRotation
	.comm	_x11OriginalSizeId,4,2          ## @x11OriginalSizeId
	.comm	_RR_Rotate_0,4,2                ## @RR_Rotate_0
	.comm	_CurrentTime,4,2                ## @CurrentTime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScreenChangeResolution         ; -- Begin function ScreenChangeResolution
	.p2align	2
_ScreenChangeResolution:                ; @ScreenChangeResolution
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	mov	x0, #0
	bl	_XOpenDisplay
	mov	x19, x0
	mov	w1, #0
	bl	_RootWindow
	mov	x21, x0
Lloh0:
	adrp	x22, _x11Conf@GOTPAGE
Lloh1:
	ldr	x22, [x22, _x11Conf@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_XRRFreeScreenConfigInfo
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_XRRGetScreenInfo
	str	x0, [x22]
	bl	_XRRConfigCurrentRate
Lloh2:
	adrp	x8, _x11OriginalRate@GOTPAGE
Lloh3:
	ldr	x8, [x8, _x11OriginalRate@GOTPAGEOFF]
Lloh4:
	str	w0, [x8]
	ldr	x0, [x22]
Lloh5:
	adrp	x1, _x11OriginalRotation@GOTPAGE
Lloh6:
	ldr	x1, [x1, _x11OriginalRotation@GOTPAGEOFF]
	bl	_XRRConfigCurrentConfiguration
Lloh7:
	adrp	x8, _x11OriginalSizeId@GOTPAGE
Lloh8:
	ldr	x8, [x8, _x11OriginalSizeId@GOTPAGEOFF]
Lloh9:
	str	w0, [x8]
	ldr	x1, [x22]
Lloh10:
	adrp	x8, _RR_Rotate_0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RR_Rotate_0@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	ldp	w5, w3, [x20]
Lloh13:
	adrp	x8, _CurrentTime@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CurrentTime@GOTPAGEOFF]
Lloh15:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_XRRSetScreenConfigAndRate
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_XCloseDisplay
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_x11Conf,8,3                    ; @x11Conf
	.comm	_x11OriginalRate,4,2            ; @x11OriginalRate
	.comm	_x11OriginalRotation,4,2        ; @x11OriginalRotation
	.comm	_x11OriginalSizeId,4,2          ; @x11OriginalSizeId
	.comm	_RR_Rotate_0,4,2                ; @RR_Rotate_0
	.comm	_CurrentTime,4,2                ; @CurrentTime
.subsections_via_symbols
