	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_video_display_server_init      ## -- Begin function video_display_server_init
	.p2align	4, 0x90
_video_display_server_init:             ## @video_display_server_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_video_driver_display_type_get
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_video_display_server_destroy
	andl	$-2, %ebx
	cmpl	$128, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_current_display_server@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_dispserv_null@GOTPCREL(%rip), %rcx
	movq	_current_display_server@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
LBB0_3:
	xorl	%eax, %eax
	callq	*8(%rcx)
	movq	_current_display_server_data@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	_current_display_server@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	xorl	%eax, %eax
	callq	_video_display_server_get_screen_orientation
	movq	_initial_screen_orientation@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_current_screen_orientation@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dispserv_null,16,3             ## @dispserv_null
	.comm	_current_display_server,8,3     ## @current_display_server
	.comm	_current_display_server_data,8,3 ## @current_display_server_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Video]: Found display server: %s\n"

	.comm	_initial_screen_orientation,4,2 ## @initial_screen_orientation
	.comm	_current_screen_orientation,4,2 ## @current_screen_orientation
	.comm	_dispserv_android,16,3          ## @dispserv_android
	.comm	_dispserv_win32,16,3            ## @dispserv_win32
	.comm	_dispserv_x11,16,3              ## @dispserv_x11
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_video_display_server_init      ; -- Begin function video_display_server_init
	.p2align	2
_video_display_server_init:             ; @video_display_server_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_video_driver_display_type_get
	mov	x19, x0
	bl	_video_display_server_destroy
	and	w8, w19, #0xfffffffe
Lloh0:
	adrp	x19, _current_display_server@GOTPAGE
Lloh1:
	ldr	x19, [x19, _current_display_server@GOTPAGEOFF]
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _dispserv_null@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dispserv_null@GOTPAGEOFF]
	str	x8, [x19]
LBB0_3:
	ldr	x8, [x8, #8]
	blr	x8
Lloh4:
	adrp	x20, _current_display_server_data@GOTPAGE
Lloh5:
	ldr	x20, [x20, _current_display_server_data@GOTPAGEOFF]
	str	x0, [x20]
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	bl	_video_display_server_get_screen_orientation
Lloh8:
	adrp	x8, _initial_screen_orientation@GOTPAGE
Lloh9:
	ldr	x8, [x8, _initial_screen_orientation@GOTPAGEOFF]
Lloh10:
	str	w0, [x8]
Lloh11:
	adrp	x8, _current_screen_orientation@GOTPAGE
Lloh12:
	ldr	x8, [x8, _current_screen_orientation@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dispserv_null,16,3             ; @dispserv_null
	.comm	_current_display_server,8,3     ; @current_display_server
	.comm	_current_display_server_data,8,3 ; @current_display_server_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Video]: Found display server: %s\n"

	.comm	_initial_screen_orientation,4,2 ; @initial_screen_orientation
	.comm	_current_screen_orientation,4,2 ; @current_screen_orientation
	.comm	_dispserv_android,16,3          ; @dispserv_android
	.comm	_dispserv_win32,16,3            ; @dispserv_win32
	.comm	_dispserv_x11,16,3              ; @dispserv_x11
.subsections_via_symbols
