	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_video_display_server_destroy   ## -- Begin function video_display_server_destroy
	.p2align	4, 0x90
_video_display_server_destroy:          ## @video_display_server_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_initial_screen_orientation@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_current_screen_orientation@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_2
## %bb.1:
	callq	_video_display_server_set_screen_orientation
LBB0_2:
	movq	_current_display_server@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_current_display_server_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_initial_screen_orientation,8,3 ## @initial_screen_orientation
	.comm	_current_screen_orientation,8,3 ## @current_screen_orientation
	.comm	_current_display_server,8,3     ## @current_display_server
	.comm	_current_display_server_data,8,3 ## @current_display_server_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_video_display_server_destroy   ; -- Begin function video_display_server_destroy
	.p2align	2
_video_display_server_destroy:          ; @video_display_server_destroy
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _initial_screen_orientation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _initial_screen_orientation@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _current_screen_orientation@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current_screen_orientation@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	bl	_video_display_server_set_screen_orientation
LBB0_2:
Lloh6:
	adrp	x8, _current_display_server@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current_display_server@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x1, [x8]
Lloh9:
	adrp	x8, _current_display_server_data@GOTPAGE
Lloh10:
	ldr	x8, [x8, _current_display_server_data@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	cmp	x1, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_5
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_initial_screen_orientation,8,3 ; @initial_screen_orientation
	.comm	_current_screen_orientation,8,3 ; @current_screen_orientation
	.comm	_current_display_server,8,3     ; @current_display_server
	.comm	_current_display_server_data,8,3 ; @current_display_server_data
.subsections_via_symbols
