	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_bo_kunmap_atomic_page      ## -- Begin function qxl_bo_kunmap_atomic_page
	.p2align	4, 0x90
_qxl_bo_kunmap_atomic_page:             ## @qxl_bo_kunmap_atomic_page
	.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	%rsi, %r14
	movq	(%rsi), %rbx
	movq	_TTM_PL_VRAM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_2
## %bb.1:
	movq	_TTM_PL_PRIV@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qxl_bo_kunmap                  ## TAILCALL
LBB0_2:
	movq	8(%r14), %rax
	shlq	$2, %rbx
	addq	(%rax), %rbx
	movq	%rdx, %rdi
	callq	_io_mapping_unmap_atomic
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ttm_mem_io_lock
	movq	8(%r14), %rdi
	movq	%r14, %rsi
	callq	_ttm_mem_io_free
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ttm_mem_io_unlock              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_VRAM,8,3                ## @TTM_PL_VRAM
	.comm	_TTM_PL_PRIV,8,3                ## @TTM_PL_PRIV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_bo_kunmap_atomic_page      ; -- Begin function qxl_bo_kunmap_atomic_page
	.p2align	2
_qxl_bo_kunmap_atomic_page:             ; @qxl_bo_kunmap_atomic_page
	.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, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _TTM_PL_VRAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTM_PL_VRAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _TTM_PL_PRIV@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TTM_PL_PRIV@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	add	x20, x9, x8, lsl #2
	mov	x0, x2
	bl	_io_mapping_unmap_atomic
	mov	x0, x20
	mov	w1, #0
	bl	_ttm_mem_io_lock
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_ttm_mem_io_free
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ttm_mem_io_unlock
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qxl_bo_kunmap
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_VRAM,8,3                ; @TTM_PL_VRAM
	.comm	_TTM_PL_PRIV,8,3                ; @TTM_PL_PRIV
.subsections_via_symbols
