	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ApplyMonitorChanges
_ApplyMonitorChanges:                   ## @ApplyMonitorChanges
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %esi
	callq	_DeskCplExtDisplaySaveSettings
	movq	_DISP_CHANGE_SUCCESSFUL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	*8(%rax)
	movl	%eax, 4(%rbx)
	movl	%eax, 8(%rbx)
	movq	_PSNRET_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_DISP_CHANGE_RESTART@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	callq	_GetParent
	movl	%eax, %edi
	callq	_PropSheet_RestartWindows
	movq	_PSNRET_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_InitMonitorDialog
	movq	_PSNRET_INVALID_NOCHANGEPAGE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISP_CHANGE_SUCCESSFUL,8,3     ## @DISP_CHANGE_SUCCESSFUL
	.comm	_PSNRET_NOERROR,8,3             ## @PSNRET_NOERROR
	.comm	_DISP_CHANGE_RESTART,8,3        ## @DISP_CHANGE_RESTART
	.comm	_PSNRET_INVALID_NOCHANGEPAGE,8,3 ## @PSNRET_INVALID_NOCHANGEPAGE
	.no_dead_strip	_ApplyMonitorChanges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ApplyMonitorChanges
_ApplyMonitorChanges:                   ; @ApplyMonitorChanges
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w1, [x19]
	bl	_DeskCplExtDisplaySaveSettings
Lloh0:
	adrp	x8, _DISP_CHANGE_SUCCESSFUL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISP_CHANGE_SUCCESSFUL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	blr	x9
	stp	w0, w0, [x19, #4]
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _DISP_CHANGE_RESTART@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISP_CHANGE_RESTART@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x19]
	bl	_GetParent
	bl	_PropSheet_RestartWindows
LBB0_5:
Lloh6:
	adrp	x8, _PSNRET_NOERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PSNRET_NOERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_InitMonitorDialog
Lloh8:
	adrp	x8, _PSNRET_INVALID_NOCHANGEPAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PSNRET_INVALID_NOCHANGEPAGE@GOTPAGEOFF]
LBB0_7:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DISP_CHANGE_SUCCESSFUL,8,3     ; @DISP_CHANGE_SUCCESSFUL
	.comm	_PSNRET_NOERROR,8,3             ; @PSNRET_NOERROR
	.comm	_DISP_CHANGE_RESTART,8,3        ; @DISP_CHANGE_RESTART
	.comm	_PSNRET_INVALID_NOCHANGEPAGE,8,3 ; @PSNRET_INVALID_NOCHANGEPAGE
	.no_dead_strip	_ApplyMonitorChanges
.subsections_via_symbols
