	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_user_lookup_handle         ## -- Begin function vmw_user_lookup_handle
	.p2align	4, 0x90
_vmw_user_lookup_handle:                ## @vmw_user_lookup_handle
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	$1, %edi
	cmpq	$0, (%rcx)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
LBB0_2:
	callq	_BUG_ON
	movq	_user_surface_converter@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_vmw_user_resource_lookup_handle
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	$0, (%rbx)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_vmw_user_bo_lookup
	jmp	LBB0_5
LBB0_3:
	movq	-48(%rbp), %rdi
	callq	_vmw_res_to_srf
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_user_surface_converter,4,2     ## @user_surface_converter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_user_lookup_handle         ; -- Begin function vmw_user_lookup_handle
	.p2align	2
_vmw_user_lookup_handle:                ; @vmw_user_lookup_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x8, [x3]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
LBB0_3:
	bl	_BUG_ON
Lloh0:
	adrp	x8, _user_surface_converter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _user_surface_converter@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_vmw_user_resource_lookup_handle
	cbz	w0, LBB0_5
; %bb.4:
	str	xzr, [x19]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, #0
	bl	_vmw_user_bo_lookup
	b	LBB0_6
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_vmw_res_to_srf
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_user_surface_converter,4,2     ; @user_surface_converter
.subsections_via_symbols
