	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_bo_pin_in_start_of_vram    ## -- Begin function vmw_bo_pin_in_start_of_vram
	.p2align	4, 0x90
_vmw_bo_pin_in_start_of_vram:           ## @vmw_bo_pin_in_start_of_vram
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, -56(%rbp)
	movq	$0, -52(%rbp)
	movq	8(%rsi), %rax
	movq	%rax, -64(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -96(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	%rax, -88(%rbp)
	movl	%edx, %esi
	callq	_ttm_write_lock
	movl	%eax, %r13d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	leaq	8(%r12), %r15
	movq	%r14, %rdi
	callq	_vmw_execbuf_release_pinned_bo
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ttm_bo_reserve
	movl	%eax, %r13d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movq	24(%r12), %rax
	movq	_TTM_PL_VRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	32(%r12), %rax
	testq	%rax, %rax
	jle	LBB0_7
## %bb.4:
	cmpq	8(%r12), %rax
	jge	LBB0_7
## %bb.5:
	cmpq	$0, (%r12)
	jne	LBB0_7
## %bb.6:
	movl	$0, -48(%rbp)
	movq	_vmw_sys_placement@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ttm_bo_validate
LBB0_7:
	cmpq	$0, (%r12)
	jle	LBB0_10
## %bb.8:
	leaq	24(%r12), %rsi
	leaq	-96(%rbp), %rdi
	leaq	-68(%rbp), %rdx
	callq	_ttm_bo_mem_compat
	cmpl	$1, %eax
	je	LBB0_13
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	testl	%r13d, %r13d
	jne	LBB0_12
LBB0_13:
	xorl	%edi, %edi
	cmpq	$0, 16(%r12)
	setne	%dil
	callq	_WARN_ON
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_vmw_bo_pin_reserved
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_10:
	leaq	-96(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ttm_bo_validate
	movl	%eax, %r13d
	testl	%r13d, %r13d
	je	LBB0_13
LBB0_12:
	xorl	%edi, %edi
	callq	_WARN_ON
LBB0_14:
	movq	%r15, %rdi
	callq	_ttm_bo_unreserve
LBB0_15:
	movq	%r14, %rdi
	callq	_ttm_write_unlock
LBB0_16:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vmw_vram_placement,8,3         ## @vmw_vram_placement
	.comm	_TTM_PL_VRAM,8,3                ## @TTM_PL_VRAM
	.comm	_vmw_sys_placement,24,3         ## @vmw_sys_placement
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_bo_pin_in_start_of_vram    ; -- Begin function vmw_bo_pin_in_start_of_vram
	.p2align	2
_vmw_bo_pin_in_start_of_vram:           ; @vmw_bo_pin_in_start_of_vram
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x2
	mov	x21, x1
	mov	x19, x0
	stp	wzr, wzr, [sp, #52]
	str	w2, [sp, #48]
	mov	x20, x1
	ldr	x8, [x20, #8]!
	str	x8, [sp, #16]
	add	x8, sp, #16
	movi.2s	v0, #1
	str	d0, [sp, #24]
	stp	x8, x8, [sp, #32]
	mov	x1, x2
	bl	_ttm_write_lock
	mov	x22, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_15
; %bb.1:
	mov	x0, x19
	bl	_vmw_execbuf_release_pinned_bo
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	mov	x3, #0
	bl	_ttm_bo_reserve
	mov	x22, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_14
; %bb.2:
	mov	x22, x21
	ldr	x8, [x22, #24]!
Lloh0:
	adrp	x9, _TTM_PL_VRAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTM_PL_VRAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x21, #32]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.5:
	ldr	x8, [x21]
	cbnz	x8, LBB0_7
; %bb.6:
	str	wzr, [sp, #56]
Lloh3:
	adrp	x1, _vmw_sys_placement@GOTPAGE
Lloh4:
	ldr	x1, [x1, _vmw_sys_placement@GOTPAGEOFF]
	add	x2, sp, #48
	mov	x0, x20
	bl	_ttm_bo_validate
LBB0_7:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.8:
	add	x0, sp, #24
	add	x2, sp, #12
	mov	x1, x22
	bl	_ttm_bo_mem_compat
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.9:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	cbnz	w22, LBB0_12
LBB0_10:
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	mov	x0, x21
	mov	w1, #1
	bl	_vmw_bo_pin_reserved
	mov	w22, #0
	b	LBB0_13
LBB0_11:
	add	x1, sp, #24
	add	x2, sp, #48
	mov	x0, x20
	bl	_ttm_bo_validate
	mov	x22, x0
	cbz	w22, LBB0_10
LBB0_12:
	mov	w0, #0
	bl	_WARN_ON
LBB0_13:
	mov	x0, x20
	bl	_ttm_bo_unreserve
LBB0_14:
	mov	x0, x19
	bl	_ttm_write_unlock
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_vmw_vram_placement,8,3         ; @vmw_vram_placement
	.comm	_TTM_PL_VRAM,8,3                ; @TTM_PL_VRAM
	.comm	_vmw_sys_placement,24,3         ; @vmw_sys_placement
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
