	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rsi), %r14
	movq	%rsi, 24(%rdi)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_DRM_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 16(%rdi)
	movq	16(%r14), %rax
	incq	%rax
	movq	%rax, 16(%r14)
	movq	%rax, 8(%rdi)
	callq	*(%r14)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	4(%rbx), %rdi
	callq	_kref_get
	leaq	8(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	addq	$12, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock
LBB0_2:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DRM_HZ,4,2                     ## @DRM_HZ
.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x22, [x1]
	str	x1, [x0, #24]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DRM_HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_HZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #1
	add	x8, x8, x9
	ldr	x9, [x22, #16]
	add	x9, x9, #1
	str	x9, [x22, #16]
	stp	x9, x8, [x0, #8]
	ldr	x8, [x22]
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	add	x0, x19, #4
	bl	_kref_get
	add	x21, x22, #8
	mov	x0, x21
	bl	_spin_lock
	add	x1, x22, #12
	mov	x0, x19
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DRM_HZ,4,2                     ; @DRM_HZ
.subsections_via_symbols
