	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_fence_emit             ## -- Begin function nouveau_fence_emit
	.p2align	4, 0x90
_nouveau_fence_emit:                    ## @nouveau_fence_emit
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	8(%rsi), %rbx
	movq	(%rax), %rax
	movq	%rsi, 16(%rdi)
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_HZ@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	addq	(%rcx), %rdx
	movq	%rdx, 8(%rdi)
	leaq	4(%rdi), %r13
	leaq	8(%rbx), %r15
	movl	24(%rbx), %r8d
	movl	28(%rbx), %ecx
	incl	%r8d
	cmpq	$0, (%rax)
	movl	%r8d, 24(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_nouveau_fence_ops_legacy@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_nouveau_fence_ops_uevent@GOTPCREL(%rip), %rsi
LBB0_3:
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_dma_fence_init
	leaq	20(%rbx), %rdi
	callq	_kref_get
	movq	%r13, %rdi
	callq	_trace_dma_fence_emit
	movq	%r14, %rdi
	callq	*(%rbx)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_dma_fence_get
	movq	%r15, %r13
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_nouveau_fence_update
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %rdi
	callq	_nvif_notify_put
LBB0_6:
	addq	$12, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_spin_unlock_irq
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_nouveau_fence_ops_uevent,4,2   ## @nouveau_fence_ops_uevent
	.comm	_nouveau_fence_ops_legacy,4,2   ## @nouveau_fence_ops_legacy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_fence_emit             ; -- Begin function nouveau_fence_emit
	.p2align	2
_nouveau_fence_emit:                    ; @nouveau_fence_emit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	mov	x19, x0
	ldp	x8, x20, [x1]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _jiffies@GOTPAGE
Lloh1:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _HZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	lsl	x11, x10, #4
	sub	x10, x11, x10
	add	x9, x9, x10
	stp	x9, x1, [x0, #8]
	ldr	x8, [x8]
	add	x24, x0, #4
	add	x21, x20, #8
	ldp	w9, w3, [x20, #24]
	add	w4, w9, #1
	str	w4, [x20, #24]
Lloh6:
	adrp	x9, _nouveau_fence_ops_uevent@GOTPAGE
Lloh7:
	ldr	x9, [x9, _nouveau_fence_ops_uevent@GOTPAGEOFF]
Lloh8:
	adrp	x10, _nouveau_fence_ops_legacy@GOTPAGE
Lloh9:
	ldr	x10, [x10, _nouveau_fence_ops_legacy@GOTPAGEOFF]
	cmp	x8, #0
	csel	x1, x10, x9, eq
	mov	x0, x24
	mov	x2, x21
	bl	_dma_fence_init
	add	x0, x20, #20
	bl	_kref_get
	mov	x0, x24
	bl	_trace_dma_fence_emit
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x24
	bl	_dma_fence_get
	mov	x0, x21
	bl	_spin_lock_irq
	mov	x0, x22
	mov	x1, x20
	bl	_nouveau_fence_update
	cbz	x0, LBB0_3
; %bb.2:
	add	x0, x20, #16
	bl	_nvif_notify_put
LBB0_3:
	add	x1, x20, #12
	mov	x0, x19
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irq
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_nouveau_fence_ops_uevent,4,2   ; @nouveau_fence_ops_uevent
	.comm	_nouveau_fence_ops_legacy,4,2   ; @nouveau_fence_ops_legacy
.subsections_via_symbols
