	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_pm_restore
_vmw_pm_restore:                        ## @vmw_pm_restore
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_pci_dev
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	movq	%rax, %rdi
	callq	_vmw_priv
	movq	%rax, %rbx
	movq	_SVGA_REG_ID@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_SVGA_ID_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_vmw_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vmw_read
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_vmw_fifo_resource_inc
LBB0_2:
	movq	%rbx, %rdi
	callq	_vmw_request_device
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	___vmw_svga_enable
LBB0_5:
	movl	36(%rbx), %edi
	callq	_vmw_fence_fifo_up
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	addq	$32, %rdi
	callq	_ttm_suspend_unlock
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.6:
	movl	16(%rbx), %edi
	callq	_vmw_kms_resume
LBB0_7:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_vmw_fb_on
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA_REG_ID,4,2                ## @SVGA_REG_ID
	.comm	_SVGA_ID_2,4,2                  ## @SVGA_ID_2
	.no_dead_strip	_vmw_pm_restore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_pm_restore
_vmw_pm_restore:                        ; @vmw_pm_restore
	.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	_to_pci_dev
	bl	_pci_get_drvdata
	bl	_vmw_priv
	mov	x19, x0
Lloh0:
	adrp	x20, _SVGA_REG_ID@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SVGA_REG_ID@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _SVGA_ID_2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SVGA_ID_2@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_vmw_write
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vmw_read
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_vmw_fifo_resource_inc
LBB0_2:
	mov	x0, x19
	bl	_vmw_request_device
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	___vmw_svga_enable
LBB0_5:
	ldr	w0, [x19, #36]
	bl	_vmw_fence_fifo_up
	str	wzr, [x19]
	add	x0, x19, #32
	bl	_ttm_suspend_unlock
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x19, #16]
	bl	_vmw_kms_resume
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_vmw_fb_on
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA_REG_ID,4,2                ; @SVGA_REG_ID
	.comm	_SVGA_ID_2,4,2                  ; @SVGA_ID_2
	.no_dead_strip	_vmw_pm_restore
.subsections_via_symbols
