	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_gem_close_vma              ## -- Begin function msm_gem_close_vma
	.p2align	4, 0x90
_msm_gem_close_vma:                     ## @msm_gem_close_vma
	.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, %rbx
	movq	%rdi, %r14
	movl	$1, %edi
	cmpq	$0, (%rsi)
	jg	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	setne	%dil
LBB0_2:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_lock
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	leaq	16(%rbx), %rdi
	callq	_drm_mm_remove_node
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_msm_gem_address_space_put      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_gem_close_vma              ; -- Begin function msm_gem_close_vma
	.p2align	2
_msm_gem_close_vma:                     ; @msm_gem_close_vma
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	cmp	x8, #0
	b.le	LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x20, #16
	bl	_drm_mm_remove_node
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
	str	xzr, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msm_gem_address_space_put
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
