	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_mmap                       ## -- Begin function qxl_mmap
	.p2align	4, 0x90
_qxl_mmap:                              ## @qxl_mmap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rsi
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ttm_bo_mmap
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	_ttm_vm_ops@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	_qxl_ttm_fault@GOTPCREL(%rip), %rax
	movq	_qxl_ttm_vm_ops@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_5:
	movq	_qxl_ttm_vm_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filp->private_data->minor->dev->dev_private == NULL\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"filp->private_data = 0x%p, vma->vm_pgoff = %lx\n"

	.comm	_ttm_vm_ops,8,3                 ## @ttm_vm_ops
	.comm	_qxl_ttm_vm_ops,8,3             ## @qxl_ttm_vm_ops
	.comm	_qxl_ttm_fault,4,2              ## @qxl_ttm_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_mmap                       ; -- Begin function qxl_mmap
	.p2align	2
_qxl_mmap:                              ; @qxl_mmap
	.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
	mov	x19, x1
	ldr	x1, [x0]
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	x21, [x8]
	cbz	x21, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w2, [x19, #8]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ttm_bo_mmap
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x20, _ttm_vm_ops@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ttm_vm_ops@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
Lloh4:
	adrp	x8, _qxl_ttm_vm_ops@GOTPAGE
Lloh5:
	ldr	x8, [x8, _qxl_ttm_vm_ops@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x9, [x19]
	str	x9, [x20]
Lloh6:
	adrp	x9, _qxl_ttm_fault@GOTPAGE
Lloh7:
	ldr	x9, [x9, _qxl_ttm_fault@GOTPAGEOFF]
	str	x9, [x8]
LBB0_4:
	mov	w20, #0
	str	x8, [x19]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filp->private_data->minor->dev->dev_private == NULL\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"filp->private_data = 0x%p, vma->vm_pgoff = %lx\n"

	.comm	_ttm_vm_ops,8,3                 ; @ttm_vm_ops
	.comm	_qxl_ttm_vm_ops,8,3             ; @qxl_ttm_vm_ops
	.comm	_qxl_ttm_fault,4,2              ; @qxl_ttm_fault
.subsections_via_symbols
