	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_mmap                    ## -- Begin function radeon_mmap
	.p2align	4, 0x90
_radeon_mmap:                           ## @radeon_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	_DRM_FILE_PAGE_OFFSET@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_mmap                       ## TAILCALL
LBB0_1:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ttm_bo_mmap
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	_ttm_vm_ops@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%r14), %rax
	movq	%rax, (%rbx)
	movq	_radeon_ttm_fault@GOTPCREL(%rip), %rax
	movq	_radeon_ttm_vm_ops@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_6:
	movq	_radeon_ttm_vm_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_FILE_PAGE_OFFSET,8,3       ## @DRM_FILE_PAGE_OFFSET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ttm_vm_ops,8,3                 ## @ttm_vm_ops
	.comm	_radeon_ttm_vm_ops,8,3          ## @radeon_ttm_vm_ops
	.comm	_radeon_ttm_fault,4,2           ## @radeon_ttm_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_mmap                    ; -- Begin function radeon_mmap
	.p2align	2
_radeon_mmap:                           ; @radeon_mmap
	.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
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _DRM_FILE_PAGE_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_FILE_PAGE_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_mmap
LBB0_2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x2, [x8]
	cbz	x2, LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_ttm_bo_mmap
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.4:
Lloh3:
	adrp	x20, _ttm_vm_ops@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ttm_vm_ops@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
Lloh5:
	adrp	x8, _radeon_ttm_vm_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _radeon_ttm_vm_ops@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x9, [x19, #8]
	str	x9, [x20]
Lloh7:
	adrp	x9, _radeon_ttm_fault@GOTPAGE
Lloh8:
	ldr	x9, [x9, _radeon_ttm_fault@GOTPAGEOFF]
	str	x9, [x8]
LBB0_6:
	mov	w20, #0
	str	x8, [x19, #8]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_FILE_PAGE_OFFSET,8,3       ; @DRM_FILE_PAGE_OFFSET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ttm_vm_ops,8,3                 ; @ttm_vm_ops
	.comm	_radeon_ttm_vm_ops,8,3          ; @radeon_ttm_vm_ops
	.comm	_radeon_ttm_fault,4,2           ; @radeon_ttm_fault
.subsections_via_symbols
