	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_prime_mmap             ## -- Begin function drm_gem_prime_mmap
	.p2align	4, 0x90
_drm_gem_prime_mmap:                    ## @drm_gem_prime_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, %r13
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	8(%r15), %rax
	movl	8(%rax), %eax
	movl	%eax, 8(%r13)
	movq	%r13, (%r14)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_drm_vma_node_allow
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_drm_vma_node_start
	addl	%eax, (%r12)
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_drm_vma_node_revoke
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_prime_mmap             ; -- Begin function drm_gem_prime_mmap
	.p2align	2
_drm_gem_prime_mmap:                    ; @drm_gem_prime_mmap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #16
	bl	_kzalloc
	mov	x19, x0
	ldr	w1, [x20]
	mov	w0, #16
	bl	_kzalloc
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_4
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #8]
	str	w8, [x19, #8]
	str	x19, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_drm_vma_node_allow
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_drm_vma_node_start
	ldr	w8, [x22]
	add	w8, w8, w0
	str	w8, [x22]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	mov	x23, x0
	mov	x0, x21
	mov	x1, x19
	bl	_drm_vma_node_revoke
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
