	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_win32_display_server_set_screen_orientation ## -- Begin function win32_display_server_set_screen_orientation
	.p2align	4, 0x90
_win32_display_server_set_screen_orientation: ## @win32_display_server_set_screen_orientation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	leaq	-32(%rbp), %rdi
	movl	$-1, %esi
	movl	$16, %edx
	callq	_win32_get_video_output
	cmpl	$128, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$130, %ebx
	je	LBB0_8
## %bb.2:
	cmpl	$131, %ebx
	jne	LBB0_3
## %bb.7:
	movl	-32(%rbp), %ecx
	movl	-24(%rbp), %edx
	movq	_DMDO_90@GOTPCREL(%rip), %rsi
	movq	_DMDO_180@GOTPCREL(%rip), %rax
	cmpl	(%rsi), %edx
	jne	LBB0_5
	jmp	LBB0_12
LBB0_6:
	movl	-32(%rbp), %ecx
	movl	-24(%rbp), %edx
	movq	_DMDO_DEFAULT@GOTPCREL(%rip), %rsi
	movq	_DMDO_270@GOTPCREL(%rip), %rax
	cmpl	(%rsi), %edx
	jne	LBB0_10
	jmp	LBB0_12
LBB0_8:
	movl	-32(%rbp), %ecx
	movl	-24(%rbp), %edx
	movq	_DMDO_DEFAULT@GOTPCREL(%rip), %rsi
	movq	_DMDO_90@GOTPCREL(%rip), %rax
	cmpl	(%rsi), %edx
	je	LBB0_12
LBB0_10:
	movq	_DMDO_180@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_14
	jmp	LBB0_12
LBB0_3:
	movl	-32(%rbp), %ecx
	movl	-24(%rbp), %edx
	movq	_DMDO_90@GOTPCREL(%rip), %rsi
	movq	_DMDO_DEFAULT@GOTPCREL(%rip), %rax
	cmpl	(%rsi), %edx
	je	LBB0_12
LBB0_5:
	movq	_DMDO_270@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_14
LBB0_12:
	movl	-28(%rbp), %edx
	cmpl	%edx, %ecx
	je	LBB0_14
## %bb.13:
	movl	%edx, -32(%rbp)
	movl	%ecx, -28(%rbp)
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	leaq	-32(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_win32_change_display_settings
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMDO_90,4,2                    ## @DMDO_90
	.comm	_DMDO_270,4,2                   ## @DMDO_270
	.comm	_DMDO_DEFAULT,4,2               ## @DMDO_DEFAULT
	.comm	_DMDO_180,4,2                   ## @DMDO_180
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_win32_display_server_set_screen_orientation ; -- Begin function win32_display_server_set_screen_orientation
	.p2align	2
_win32_display_server_set_screen_orientation: ; @win32_display_server_set_screen_orientation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp]
	mov	x0, sp
	mov	w1, #-1
	mov	w2, #16
	bl	_win32_get_video_output
	cmp	w19, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w19, #130
	b.eq	LBB0_11
; %bb.2:
	cmp	w19, #131
	b.ne	LBB0_15
; %bb.3:
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _DMDO_90@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMDO_90@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _DMDO_270@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DMDO_270@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_6
; %bb.4:
	ldp	w8, w9, [sp]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.5:
	stp	w9, w8, [sp]
LBB0_6:
Lloh6:
	adrp	x8, _DMDO_180@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMDO_180@GOTPAGEOFF]
	b	LBB0_19
LBB0_7:
	ldr	w8, [sp, #8]
Lloh8:
	adrp	x9, _DMDO_DEFAULT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMDO_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _DMDO_180@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DMDO_180@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_10
; %bb.8:
	ldp	w8, w9, [sp]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.9:
	stp	w9, w8, [sp]
LBB0_10:
Lloh14:
	adrp	x8, _DMDO_270@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMDO_270@GOTPAGEOFF]
	b	LBB0_19
LBB0_11:
	ldr	w8, [sp, #8]
Lloh16:
	adrp	x9, _DMDO_DEFAULT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DMDO_DEFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _DMDO_180@GOTPAGE
Lloh20:
	ldr	x10, [x10, _DMDO_180@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_14
; %bb.12:
	ldp	w8, w9, [sp]
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.13:
	stp	w9, w8, [sp]
LBB0_14:
Lloh22:
	adrp	x8, _DMDO_90@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DMDO_90@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
	ldr	w8, [sp, #8]
Lloh24:
	adrp	x9, _DMDO_90@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DMDO_90@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _DMDO_270@GOTPAGE
Lloh28:
	ldr	x10, [x10, _DMDO_270@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_18
; %bb.16:
	ldp	w8, w9, [sp]
	cmp	w8, w9
	b.eq	LBB0_18
; %bb.17:
	stp	w9, w8, [sp]
LBB0_18:
Lloh30:
	adrp	x8, _DMDO_DEFAULT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DMDO_DEFAULT@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x1, sp
	mov	x0, #0
	mov	w2, #0
	bl	_win32_change_display_settings
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DMDO_90,4,2                    ; @DMDO_90
	.comm	_DMDO_270,4,2                   ; @DMDO_270
	.comm	_DMDO_DEFAULT,4,2               ; @DMDO_DEFAULT
	.comm	_DMDO_180,4,2                   ; @DMDO_180
.subsections_via_symbols
