	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vgem_fence_create
_vgem_fence_create:                     ## @vgem_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_init
	movl	$1, %edi
	callq	_dma_fence_context_alloc
	movq	_vgem_fence_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_dma_fence_init
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	_vgem_fence_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_VGEM_FENCE_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_mod_timer
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_vgem_fence_ops,4,2             ## @vgem_fence_ops
	.comm	_vgem_fence_timeout,4,2         ## @vgem_fence_timeout
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_VGEM_FENCE_TIMEOUT,8,3         ## @VGEM_FENCE_TIMEOUT
	.no_dead_strip	_vgem_fence_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vgem_fence_create
_vgem_fence_create:                     ; @vgem_fence_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_init
	mov	w0, #1
	bl	_dma_fence_context_alloc
	mov	x3, x0
Lloh3:
	adrp	x1, _vgem_fence_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _vgem_fence_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	mov	w4, #1
	bl	_dma_fence_init
	add	x20, x19, #4
Lloh5:
	adrp	x8, _vgem_fence_timeout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vgem_fence_timeout@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _VGEM_FENCE_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VGEM_FENCE_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_mod_timer
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_vgem_fence_ops,4,2             ; @vgem_fence_ops
	.comm	_vgem_fence_timeout,4,2         ; @vgem_fence_timeout
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_VGEM_FENCE_TIMEOUT,8,3         ; @VGEM_FENCE_TIMEOUT
	.no_dead_strip	_vgem_fence_create
.subsections_via_symbols
