	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_mmap                    ## -- Begin function ttm_bo_mmap
	.p2align	4, 0x90
_ttm_bo_mmap:                           ## @ttm_bo_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	_DRM_FILE_PAGE_OFFSET_START@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	(%r12), %r14
	movq	%r12, %rdi
	callq	_vma_pages
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ttm_bo_vm_lookup
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %rax
	movq	(%rax), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%rbx)
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_ttm_bo_put
	jmp	LBB0_8
LBB0_7:
	movq	_ttm_bo_vm_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movq	%r14, 16(%r12)
	movq	_VM_MIXEDMAP@GOTPCREL(%rip), %rax
	movl	8(%r12), %ecx
	orl	(%rax), %ecx
	movq	_VM_IO@GOTPCREL(%rip), %rax
	movq	_VM_DONTEXPAND@GOTPCREL(%rip), %rdx
	movq	_VM_DONTDUMP@GOTPCREL(%rip), %rsi
	orl	(%rax), %ecx
	orl	(%rdx), %ecx
	orl	(%rsi), %ecx
	movl	%ecx, 8(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_FILE_PAGE_OFFSET_START,8,3 ## @DRM_FILE_PAGE_OFFSET_START
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_ttm_bo_vm_ops,4,2              ## @ttm_bo_vm_ops
	.comm	_VM_MIXEDMAP,4,2                ## @VM_MIXEDMAP
	.comm	_VM_IO,4,2                      ## @VM_IO
	.comm	_VM_DONTEXPAND,4,2              ## @VM_DONTEXPAND
	.comm	_VM_DONTDUMP,4,2                ## @VM_DONTDUMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_mmap                    ; -- Begin function ttm_bo_mmap
	.p2align	2
_ttm_bo_mmap:                           ; @ttm_bo_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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _DRM_FILE_PAGE_OFFSET_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_FILE_PAGE_OFFSET_START@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x22, [x19]
	mov	x0, x19
	bl	_vma_pages
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_ttm_bo_vm_lookup
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x21
	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
LBB0_4:
	ldr	x8, [x20]
	ldr	x22, [x8]
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_6:
	ldr	x8, [x22]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_ttm_bo_put
	b	LBB0_3
LBB0_8:
	mov	w21, #0
Lloh9:
	adrp	x8, _ttm_bo_vm_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ttm_bo_vm_ops@GOTPAGEOFF]
	stp	x20, x8, [x19, #16]
Lloh11:
	adrp	x8, _VM_MIXEDMAP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VM_MIXEDMAP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
Lloh14:
	adrp	x10, _VM_IO@GOTPAGE
Lloh15:
	ldr	x10, [x10, _VM_IO@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh16:
	ldr	w9, [x10]
Lloh17:
	adrp	x10, _VM_DONTEXPAND@GOTPAGE
Lloh18:
	ldr	x10, [x10, _VM_DONTEXPAND@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _VM_DONTDUMP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VM_DONTDUMP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w10
	orr	w8, w8, w9
	str	w8, [x19, #8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_FILE_PAGE_OFFSET_START,8,3 ; @DRM_FILE_PAGE_OFFSET_START
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_ttm_bo_vm_ops,4,2              ; @ttm_bo_vm_ops
	.comm	_VM_MIXEDMAP,4,2                ; @VM_MIXEDMAP
	.comm	_VM_IO,4,2                      ; @VM_IO
	.comm	_VM_DONTEXPAND,4,2              ; @VM_DONTEXPAND
	.comm	_VM_DONTDUMP,4,2                ; @VM_DONTDUMP
.subsections_via_symbols
