	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_bo_pin_reserved            ## -- Begin function vmw_bo_pin_reserved
	.p2align	4, 0x90
_vmw_bo_pin_reserved:                   ## @vmw_bo_pin_reserved
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, -32(%rbp)
	movq	8(%rdi), %r15
	movl	16(%rdi), %edi
	callq	_dma_resv_assert_held
	movq	(%rbx), %rax
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	testq	%rax, %rax
	jg	LBB0_8
	jmp	LBB0_3
LBB0_2:
	xorl	%edi, %edi
	testq	%rax, %rax
	setle	%dil
	callq	_WARN_ON
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpq	$1, %rax
	jg	LBB0_8
LBB0_3:
	movq	_TTM_PL_FLAG_VRAM@GOTPCREL(%rip), %rcx
	movq	_VMW_PL_FLAG_GMR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_VMW_PL_FLAG_MOB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_TTM_PL_FLAG_SYSTEM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	addq	$8, %rbx
	movq	_TTM_PL_FLAG_CACHED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movl	%eax, -72(%rbp)
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movq	_TTM_PL_FLAG_NO_EVICT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -72(%rbp)
LBB0_5:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$1, -48(%rbp)
	leaq	-72(%rbp), %rax
	movq	%rax, -40(%rbp)
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ttm_bo_validate
	movl	$1, %edi
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	cmpq	%r15, (%rbx)
	setne	%dil
LBB0_7:
	callq	_BUG_ON
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_FLAG_VRAM,4,2           ## @TTM_PL_FLAG_VRAM
	.comm	_VMW_PL_FLAG_GMR,4,2            ## @VMW_PL_FLAG_GMR
	.comm	_VMW_PL_FLAG_MOB,4,2            ## @VMW_PL_FLAG_MOB
	.comm	_TTM_PL_FLAG_SYSTEM,4,2         ## @TTM_PL_FLAG_SYSTEM
	.comm	_TTM_PL_FLAG_CACHED,4,2         ## @TTM_PL_FLAG_CACHED
	.comm	_TTM_PL_FLAG_NO_EVICT,4,2       ## @TTM_PL_FLAG_NO_EVICT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_bo_pin_reserved            ; -- Begin function vmw_bo_pin_reserved
	.p2align	2
_vmw_bo_pin_reserved:                   ; @vmw_bo_pin_reserved
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x21, x0
	mov	x8, #4294967296
	str	x8, [sp, #40]
	mov	x19, x0
	ldr	x22, [x19, #8]!
	ldr	w0, [x0, #16]
	bl	_dma_resv_assert_held
	ldr	x8, [x21]
	cbz	w20, LBB0_2
; %bb.1:
	add	x9, x8, #1
	str	x9, [x21]
	cmp	x8, #0
	b.gt	LBB0_8
	b	LBB0_3
LBB0_2:
	cmp	x8, #1
	cset	w0, lt
	bl	_WARN_ON
	ldr	x8, [x21]
	subs	x8, x8, #1
	str	x8, [x21]
	b.gt	LBB0_8
LBB0_3:
Lloh0:
	adrp	x8, _TTM_PL_FLAG_VRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_PL_FLAG_VRAM@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VMW_PL_FLAG_GMR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VMW_PL_FLAG_GMR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _VMW_PL_FLAG_MOB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VMW_PL_FLAG_MOB@GOTPAGEOFF]
	stp	xzr, xzr, [sp, #24]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _TTM_PL_FLAG_SYSTEM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TTM_PL_FLAG_SYSTEM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _TTM_PL_FLAG_CACHED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TTM_PL_FLAG_CACHED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #16]
	cbz	w20, LBB0_5
; %bb.4:
Lloh15:
	adrp	x9, _TTM_PL_FLAG_NO_EVICT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TTM_PL_FLAG_NO_EVICT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #16]
LBB0_5:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w20, #1
	str	w20, [sp]
	add	x8, sp, #16
	str	x8, [sp, #8]
	mov	x1, sp
	add	x2, sp, #40
	mov	x0, x19
	bl	_ttm_bo_validate
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	cmp	x8, x22
	cset	w20, ne
LBB0_7:
	mov	x0, x20
	bl	_BUG_ON
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_FLAG_VRAM,4,2           ; @TTM_PL_FLAG_VRAM
	.comm	_VMW_PL_FLAG_GMR,4,2            ; @VMW_PL_FLAG_GMR
	.comm	_VMW_PL_FLAG_MOB,4,2            ; @VMW_PL_FLAG_MOB
	.comm	_TTM_PL_FLAG_SYSTEM,4,2         ; @TTM_PL_FLAG_SYSTEM
	.comm	_TTM_PL_FLAG_CACHED,4,2         ; @TTM_PL_FLAG_CACHED
	.comm	_TTM_PL_FLAG_NO_EVICT,4,2       ; @TTM_PL_FLAG_NO_EVICT
.subsections_via_symbols
