	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___vmw_execbuf_release_pinned_bo ## -- Begin function __vmw_execbuf_release_pinned_bo
	.p2align	4, 0x90
___vmw_execbuf_release_pinned_bo:       ## @__vmw_execbuf_release_pinned_bo
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movq	_val_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_DECLARE_VAL_CONTEXT
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	leaq	8(%rbx), %r14
	movq	_val_ctx@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vmw_validation_add_bo
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	movq	16(%rbx), %rsi
	movq	_val_ctx@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vmw_validation_add_bo
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movq	_val_ctx@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_vmw_validation_bo_reserve
	testl	%eax, %eax
	je	LBB0_4
LBB0_16:
	movq	_val_ctx@GOTPCREL(%rip), %rdi
	callq	_vmw_validation_unref_lists
	movq	%rbx, %rdi
	callq	_vmw_execbuf_unpin_panic
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmw_bo_unreference             ## TAILCALL
LBB0_4:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.5:
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_BUG_ON
	movl	24(%rbx), %esi
	movq	%rbx, %rdi
	callq	_vmw_fifo_emit_dummy_query
	testl	%eax, %eax
	je	LBB0_6
## %bb.15:
	movq	_val_ctx@GOTPCREL(%rip), %rdi
	callq	_vmw_validation_bo_backoff
	jmp	LBB0_16
LBB0_6:
	movl	$0, (%rbx)
LBB0_7:
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_vmw_bo_pin_reserved
	cmpl	$0, 4(%rbx)
	je	LBB0_9
## %bb.8:
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_vmw_bo_pin_reserved
	movl	$0, 4(%rbx)
LBB0_9:
	testq	%r15, %r15
	jne	LBB0_11
## %bb.10:
	leaq	-32(%rbp), %rdx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_vmw_execbuf_fence_commands
	movq	-32(%rbp), %r15
LBB0_11:
	movq	_val_ctx@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_vmw_validation_bo_fence
	cmpq	$0, -32(%rbp)
	je	LBB0_13
## %bb.12:
	leaq	-32(%rbp), %rdi
	callq	_vmw_fence_obj_unreference
LBB0_13:
	movq	_val_ctx@GOTPCREL(%rip), %rdi
	callq	_vmw_validation_unref_lists
	movq	%r14, %rdi
	callq	_vmw_bo_unreference
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_val_ctx,4,2                    ## @val_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___vmw_execbuf_release_pinned_bo ; -- Begin function __vmw_execbuf_release_pinned_bo
	.p2align	2
___vmw_execbuf_release_pinned_bo:       ; @__vmw_execbuf_release_pinned_bo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _val_ctx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _val_ctx@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	mov	w2, #0
	bl	_DECLARE_VAL_CONTEXT
	mov	x19, x20
	ldr	x1, [x19, #8]!
	cbz	x1, LBB0_16
; %bb.1:
Lloh3:
	adrp	x0, _val_ctx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _val_ctx@GOTPAGEOFF]
	mov	w2, #0
	mov	w3, #0
	bl	_vmw_validation_add_bo
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x1, [x20, #16]
Lloh5:
	adrp	x0, _val_ctx@GOTPAGE
Lloh6:
	ldr	x0, [x0, _val_ctx@GOTPAGEOFF]
	mov	w2, #0
	mov	w3, #0
	bl	_vmw_validation_add_bo
	cbnz	w0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, _val_ctx@GOTPAGE
Lloh8:
	ldr	x0, [x0, _val_ctx@GOTPAGEOFF]
	mov	w1, #0
	bl	_vmw_validation_bo_reserve
	cbz	w0, LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, _val_ctx@GOTPAGE
Lloh10:
	ldr	x0, [x0, _val_ctx@GOTPAGEOFF]
	bl	_vmw_validation_unref_lists
	mov	x0, x20
	bl	_vmw_execbuf_unpin_panic
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_vmw_bo_unreference
LBB0_5:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.6:
	cmp	x21, #0
	cset	w0, ne
	bl	_BUG_ON
	ldr	w1, [x20, #24]
	mov	x0, x20
	bl	_vmw_fifo_emit_dummy_query
	cbz	w0, LBB0_8
; %bb.7:
Lloh11:
	adrp	x0, _val_ctx@GOTPAGE
Lloh12:
	ldr	x0, [x0, _val_ctx@GOTPAGEOFF]
	bl	_vmw_validation_bo_backoff
	b	LBB0_4
LBB0_8:
	str	wzr, [x20]
LBB0_9:
	ldr	x0, [x20, #8]
	mov	w1, #0
	bl	_vmw_bo_pin_reserved
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	x0, [x20, #16]
	mov	w1, #0
	bl	_vmw_bo_pin_reserved
	str	wzr, [x20, #4]
LBB0_11:
	cbnz	x21, LBB0_13
; %bb.12:
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, x20
	mov	x3, #0
	bl	_vmw_execbuf_fence_commands
	ldr	x21, [sp, #8]
LBB0_13:
Lloh13:
	adrp	x0, _val_ctx@GOTPAGE
Lloh14:
	ldr	x0, [x0, _val_ctx@GOTPAGEOFF]
	mov	x1, x21
	bl	_vmw_validation_bo_fence
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_15
; %bb.14:
	add	x0, sp, #8
	bl	_vmw_fence_obj_unreference
LBB0_15:
Lloh15:
	adrp	x0, _val_ctx@GOTPAGE
Lloh16:
	ldr	x0, [x0, _val_ctx@GOTPAGEOFF]
	bl	_vmw_validation_unref_lists
	mov	x0, x19
	bl	_vmw_bo_unreference
LBB0_16:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_val_ctx,4,2                    ; @val_ctx
.subsections_via_symbols
