	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_pm_freeze
_vmw_pm_freeze:                         ## @vmw_pm_freeze
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_pci_dev
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_vmw_priv
	movq	%rax, %r12
	leaq	24(%rax), %r15
	movq	%r15, %rdi
	callq	_ttm_suspend_unlock
	movl	36(%r12), %edi
	callq	_vmw_kms_suspend
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ttm_suspend_lock
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_15
LBB0_2:
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_vmw_fb_off
LBB0_4:
	movq	%r15, %rdi
	callq	_ttm_suspend_lock
	movq	%r12, %rdi
	callq	_vmw_execbuf_release_pinned_bo
	movq	%r12, %rdi
	callq	_vmw_resource_evict_all
	movq	%r12, %rdi
	callq	_vmw_release_device_early
	leaq	32(%r12), %rdi
	callq	_ttm_bo_swapout_all
	cmpq	$0, 8(%r12)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_vmw_fifo_resource_dec
LBB0_6:
	movq	%r12, %rdi
	addq	$28, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	cmpq	$0, 8(%r12)
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_vmw_fifo_resource_inc
LBB0_9:
	movq	%r12, %rdi
	callq	_vmw_request_device_late
	movl	%eax, %edi
	callq	_WARN_ON
	movl	$0, (%r12)
	movq	%r15, %rdi
	callq	_ttm_suspend_unlock
	cmpq	$0, 16(%r12)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_vmw_kms_resume
LBB0_11:
	cmpq	$0, 8(%r12)
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_vmw_fb_on
LBB0_13:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_14:
	movl	4(%r12), %edi
	callq	_vmw_fence_fifo_down
	movq	%r12, %rdi
	callq	___vmw_svga_disable
	movq	%r12, %rdi
	callq	_vmw_release_device_late
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to freeze modesetting.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't hibernate while 3D resources are active.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_vmw_pm_freeze
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_pm_freeze
_vmw_pm_freeze:                         ; @vmw_pm_freeze
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_to_pci_dev
	bl	_pci_get_drvdata
	mov	x20, x0
	bl	_vmw_priv
	mov	x19, x0
	add	x21, x0, #24
	mov	x0, x21
	bl	_ttm_suspend_unlock
	ldr	w0, [x19, #36]
	bl	_vmw_kms_suspend
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	bl	_ttm_suspend_lock
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_15
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_vmw_fb_off
LBB0_4:
	mov	x0, x21
	bl	_ttm_suspend_lock
	mov	x0, x19
	bl	_vmw_execbuf_release_pinned_bo
	mov	x0, x19
	bl	_vmw_resource_evict_all
	mov	x0, x19
	bl	_vmw_release_device_early
	add	x0, x19, #32
	bl	_ttm_bo_swapout_all
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_vmw_fifo_resource_dec
LBB0_6:
	add	x0, x19, #28
	bl	_atomic_read
	cbz	x0, LBB0_14
; %bb.7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_vmw_fifo_resource_inc
LBB0_9:
	mov	x0, x19
	bl	_vmw_request_device_late
	bl	_WARN_ON
	str	wzr, [x19]
	mov	x0, x21
	bl	_ttm_suspend_unlock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_vmw_kms_resume
LBB0_11:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_vmw_fb_on
LBB0_13:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19, #4]
	bl	_vmw_fence_fifo_down
	mov	x0, x19
	bl	___vmw_svga_disable
	mov	x0, x19
	bl	_vmw_release_device_late
	mov	w22, #0
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to freeze modesetting.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't hibernate while 3D resources are active.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_vmw_pm_freeze
.subsections_via_symbols
