	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_user_fence_create          ## -- Begin function vmw_user_fence_create
	.p2align	4, 0x90
_vmw_user_fence_create:                 ## @vmw_user_fence_create
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %rbx
	callq	_vmw_fpriv
	movq	(%rax), %r14
	movl	4(%rbx), %edi
	callq	_vmw_mem_glob
	movq	%rax, %r15
	movq	$0, -80(%rbp)
	movl	(%rbx), %esi
	leaq	-80(%rbp), %rdx
	movq	%rax, %rdi
	callq	_ttm_mem_global_alloc
	movl	%eax, %r12d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	%r13d, %r12d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_3:
	movq	_vmw_user_fence_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_vmw_fence_obj_init
	movl	%eax, %r12d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_vmw_fence_obj_reference
	movq	%rax, -56(%rbp)
	movq	%r14, %rsi
	addq	$4, %rsi
	movq	_VMW_RES_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_vmw_user_fence_base_release@GOTPCREL(%rip), %r8
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_ttm_base_object_init
	xorl	%edi, %edi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_vmw_fence_obj_unreference
	movq	%r14, -56(%rbp)
	movq	%r12, %rdi
	callq	_vmw_fence_obj_unreference
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r12d
LBB0_7:
	movq	%r15, %rdi
	movl	(%rbx), %esi
	callq	_ttm_mem_global_free
LBB0_8:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, (%r13)
	movl	4(%r14), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vmw_user_fence_destroy,4,2     ## @vmw_user_fence_destroy
	.comm	_VMW_RES_FENCE,4,2              ## @VMW_RES_FENCE
	.comm	_vmw_user_fence_base_release,4,2 ## @vmw_user_fence_base_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_user_fence_create          ; -- Begin function vmw_user_fence_create
	.p2align	2
_vmw_user_fence_create:                 ; @vmw_user_fence_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x22, x3
	mov	x26, x2
	mov	x19, x1
	bl	_vmw_fpriv
	ldr	x23, [x0]
	ldr	w0, [x19, #4]
	bl	_vmw_mem_glob
	mov	x20, x0
	str	xzr, [sp]
	ldr	w1, [x19]
	mov	x2, sp
	bl	_ttm_mem_global_alloc
	mov	x24, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	mov	x25, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _vmw_user_fence_destroy@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vmw_user_fence_destroy@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	bl	_vmw_fence_obj_init
	mov	x24, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x25
	bl	_kfree
	b	LBB0_7
LBB0_5:
	mov	x0, x25
	bl	_vmw_fence_obj_reference
	str	x0, [sp, #8]
	add	x1, x25, #4
Lloh9:
	adrp	x8, _VMW_RES_FENCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VMW_RES_FENCE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x4, _vmw_user_fence_base_release@GOTPAGE
Lloh13:
	ldr	x4, [x4, _vmw_user_fence_base_release@GOTPAGEOFF]
	mov	x0, x23
	mov	w2, #0
	mov	x5, #0
	bl	_ttm_base_object_init
	mov	x24, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.6:
	add	x0, sp, #8
	bl	_vmw_fence_obj_unreference
	str	x25, [sp, #8]
	add	x0, sp, #8
	bl	_vmw_fence_obj_unreference
LBB0_7:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_ttm_mem_global_free
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	mov	w24, #0
	str	x25, [x22]
	ldr	w8, [x25, #4]
	str	w8, [x21]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vmw_user_fence_destroy,4,2     ; @vmw_user_fence_destroy
	.comm	_VMW_RES_FENCE,4,2              ; @VMW_RES_FENCE
	.comm	_vmw_user_fence_base_release,4,2 ; @vmw_user_fence_base_release
.subsections_via_symbols
