	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_user_resource_lookup_handle ## -- Begin function vmw_user_resource_lookup_handle
	.p2align	4, 0x90
_vmw_user_resource_lookup_handle:       ## @vmw_user_resource_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, %r15
	movq	%rsi, %rdi
	movq	_EINVAL@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movl	%edx, %esi
	callq	_ttm_base_object_lookup
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	subl	(%r13), %r12d
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_ttm_base_object_type
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	negl	%r12d
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	*8(%r15)
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_kref_get
	movq	%rbx, (%r14)
	xorl	%r12d, %r12d
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_ttm_base_object_unref
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_user_resource_lookup_handle ; -- Begin function vmw_user_resource_lookup_handle
	.p2align	2
_vmw_user_resource_lookup_handle:       ; @vmw_user_resource_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	x19, x4
	mov	x20, x3
	mov	x0, x1
Lloh0:
	adrp	x23, _EINVAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	x1, x2
	bl	_ttm_base_object_lookup
	mov	x21, x0
	str	x0, [sp, #8]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x23]
	neg	w20, w8
	b	LBB0_6
LBB0_2:
	mov	x0, x21
	bl	_ttm_base_object_type
	ldr	x8, [x20]
	cmp	x0, x8
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	neg	w20, w22
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20, #8]
	mov	x0, x21
	blr	x8
	mov	x21, x0
	bl	_kref_get
	mov	w20, #0
	str	x21, [x19]
LBB0_5:
	add	x0, sp, #8
	bl	_ttm_base_object_unref
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
