	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_execbuf_tie_context
_vmw_execbuf_tie_context:               ## @vmw_execbuf_tie_context
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SVGA3D_INVALID_ID@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	%rdx, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_vmw_res_dx_context@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vmw_execbuf_res_size
	movl	16(%r14), %edi
	movl	%eax, %esi
	callq	_vmw_validation_preload_res
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movq	_user_context_converter@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_vmw_user_resource_noref_lookup_handle
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_VMW_DEBUG_USER
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_VMW_RES_DIRTY_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vmw_execbuf_res_noref_val_add
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vmw_execbuf_info_from_res
	movl	%eax, 4(%r14)
	movq	%r15, %rdi
	callq	_vmw_context_res_man
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA3D_INVALID_ID,8,3          ## @SVGA3D_INVALID_ID
	.comm	_vmw_res_dx_context,4,2         ## @vmw_res_dx_context
	.comm	_user_context_converter,4,2     ## @user_context_converter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not find or user DX context 0x%08x.\n"

	.comm	_VMW_RES_DIRTY_SET,4,2          ## @VMW_RES_DIRTY_SET
	.no_dead_strip	_vmw_execbuf_tie_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_execbuf_tie_context
_vmw_execbuf_tie_context:               ; @vmw_execbuf_tie_context
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _SVGA3D_INVALID_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVGA3D_INVALID_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_3
LBB0_2:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh3:
	adrp	x8, _vmw_res_dx_context@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vmw_res_dx_context@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_vmw_execbuf_res_size
	mov	x1, x0
	ldr	w0, [x19, #16]
	bl	_vmw_validation_preload_res
	mov	x22, x0
	cbz	w0, LBB0_4
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _user_context_converter@GOTPAGE
Lloh7:
	ldr	x8, [x8, _user_context_converter@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_vmw_user_resource_noref_lookup_handle
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_VMW_DEBUG_USER
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_6:
Lloh11:
	adrp	x8, _VMW_RES_DIRTY_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VMW_RES_DIRTY_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_vmw_execbuf_res_noref_val_add
	mov	x22, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_vmw_execbuf_info_from_res
	str	w0, [x19, #4]
	mov	x0, x21
	bl	_vmw_context_res_man
	mov	w22, #0
	str	w0, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA3D_INVALID_ID,8,3          ; @SVGA3D_INVALID_ID
	.comm	_vmw_res_dx_context,4,2         ; @vmw_res_dx_context
	.comm	_user_context_converter,4,2     ; @user_context_converter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not find or user DX context 0x%08x.\n"

	.comm	_VMW_RES_DIRTY_SET,4,2          ; @VMW_RES_DIRTY_SET
	.no_dead_strip	_vmw_execbuf_tie_context
.subsections_via_symbols
