	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_event_fence_action_create
_vmw_event_fence_action_create:         ## @vmw_event_fence_action_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
	movl	%r8d, %r12d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_fman_from_fence
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_DRM_VMW_EVENT_FENCE_SIGNALED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	12(%rbx), %rcx
	movl	%eax, 16(%rbx)
	movl	$24, 12(%rbx)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%rbx)
	movq	%r13, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_drm_event_reserve_init
	movl	%eax, %r14d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_4:
	movq	_DRM_VMW_FE_FLAG_REQ_TIME@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	8(%rbx), %rcx
	movq	%rbx, %r8
	addq	$4, %r8
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_7:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_vmw_event_fence_action_queue
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_drm_event_cancel_free
	jmp	LBB0_10
LBB0_8:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate an event.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_VMW_EVENT_FENCE_SIGNALED,4,2 ## @DRM_VMW_EVENT_FENCE_SIGNALED
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate event space for this file.\n"

	.comm	_DRM_VMW_FE_FLAG_REQ_TIME,4,2   ## @DRM_VMW_FE_FLAG_REQ_TIME
	.no_dead_strip	_vmw_event_fence_action_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_event_fence_action_create
_vmw_event_fence_action_create:         ; @vmw_event_fence_action_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x25, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x1
	bl	_fman_from_fence
	ldr	x8, [x0]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w26, #24
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_9
LBB0_2:
Lloh8:
	adrp	x8, _DRM_VMW_EVENT_FENCE_SIGNALED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_VMW_EVENT_FENCE_SIGNALED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x3, x19
	str	w26, [x3, #12]!
	stp	w8, w25, [x19, #16]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_drm_event_reserve_init
	mov	x25, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_kfree
	b	LBB0_9
LBB0_4:
Lloh13:
	adrp	x8, _DRM_VMW_FE_FLAG_REQ_TIME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DRM_VMW_FE_FLAG_REQ_TIME@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_6
; %bb.5:
	add	x3, x19, #8
	add	x4, x19, #4
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	b	LBB0_7
LBB0_6:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
LBB0_7:
	mov	x5, x21
	bl	_vmw_event_fence_action_queue
	mov	x25, x0
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_drm_event_cancel_free
LBB0_9:
	mov	x0, x25
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate an event.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_VMW_EVENT_FENCE_SIGNALED,4,2 ; @DRM_VMW_EVENT_FENCE_SIGNALED
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate event space for this file.\n"

	.comm	_DRM_VMW_FE_FLAG_REQ_TIME,4,2   ; @DRM_VMW_FE_FLAG_REQ_TIME
	.no_dead_strip	_vmw_event_fence_action_create
.subsections_via_symbols
