	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qxl_drm_freeze
_qxl_drm_freeze:                        ## @qxl_drm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	8(%rdi), %r14
	callq	_drm_mode_config_helper_suspend
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_qxl_destroy_monitors_object
	movq	%rbx, %rdi
	callq	_qxl_surf_evict
	movq	%rbx, %rdi
	callq	_qxl_vram_evict
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	callq	_qxl_check_idle
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_qxl_queue_garbage_collect
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_qxl_check_idle
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	callq	_pci_save_state
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qxl_drm_freeze
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_drm_freeze
_qxl_drm_freeze:                        ; @qxl_drm_freeze
	.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
	ldp	x20, x19, [x0]
	bl	_drm_mode_config_helper_suspend
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_qxl_destroy_monitors_object
	mov	x0, x20
	bl	_qxl_surf_evict
	mov	x0, x20
	bl	_qxl_vram_evict
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	bl	_qxl_check_idle
	cbz	w0, LBB0_2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_qxl_queue_garbage_collect
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_qxl_check_idle
	cbz	w0, LBB0_3
; %bb.5:
	mov	x0, x19
	bl	_pci_save_state
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qxl_drm_freeze
.subsections_via_symbols
