	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv84_fence_context_new         ## -- Begin function nv84_fence_context_new
	.p2align	4, 0x90
_nv84_fence_context_new:                ## @nv84_fence_context_new
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_nouveau_client
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	8(%rax), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	leaq	16(%rax), %rdi
	callq	_nouveau_fence_context_new
	movq	_nv84_fence_emit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	_nv84_fence_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movq	_nv84_fence_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_nv84_fence_emit32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movq	_nv84_fence_sync32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	(%r15), %rdi
	movl	(%rbx), %esi
	leaq	12(%r13), %rdx
	callq	_nouveau_bo_vma_add
	movq	%rbx, %rcx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	8(%r15), %rdi
	movl	(%rcx), %esi
	movq	%r13, %rdx
	addq	$8, %rdx
	movq	%rcx, %rbx
	callq	_nouveau_bo_vma_add
	movq	%rbx, %rcx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movslq	(%rdi), %rax
	cmpq	%rax, %r14
	jge	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %esi
	callq	_nv50_display_crtc_sema
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %esi
	movq	(%r13), %rdx
	addq	%r15, %rdx
	movq	%rax, %rdi
	callq	_nouveau_bo_vma_add
	incq	%r14
	addq	$4, %r15
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	movl	%eax, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_8:
	movq	(%r15), %rdi
	movl	(%r14), %esi
	shll	$2, %esi
	xorl	%edx, %edx
	callq	_nouveau_bo_wr32
	movq	%r12, %rdi
	callq	_nv84_fence_context_del
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	shll	$2, %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_nouveau_bo_wr32
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nv84_fence_emit,4,2            ## @nv84_fence_emit
	.comm	_nv84_fence_sync,4,2            ## @nv84_fence_sync
	.comm	_nv84_fence_read,4,2            ## @nv84_fence_read
	.comm	_nv84_fence_emit32,4,2          ## @nv84_fence_emit32
	.comm	_nv84_fence_sync32,4,2          ## @nv84_fence_sync32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv84_fence_context_new         ; -- Begin function nv84_fence_context_new
	.p2align	2
_nv84_fence_context_new:                ; @nv84_fence_context_new
	.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	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_nouveau_client
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x25, [x8, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x0
	add	x0, x0, #16
	bl	_nouveau_fence_context_new
Lloh3:
	adrp	x8, _nv84_fence_emit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nv84_fence_emit@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _nv84_fence_sync@GOTPAGE
Lloh7:
	ldr	x9, [x9, _nv84_fence_sync@GOTPAGEOFF]
	str	w8, [x22, #32]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _nv84_fence_read@GOTPAGE
Lloh10:
	ldr	x9, [x9, _nv84_fence_read@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #24]
Lloh12:
	adrp	x8, _nv84_fence_emit32@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nv84_fence_emit32@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _nv84_fence_sync32@GOTPAGE
Lloh16:
	ldr	x9, [x9, _nv84_fence_sync32@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #16]
	ldr	x0, [x25]
	ldr	w1, [x21]
	add	x2, x22, #12
	bl	_nouveau_bo_vma_add
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x0, [x25, #8]
	ldr	w1, [x21]
	add	x2, x22, #8
	bl	_nouveau_bo_vma_add
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x26, #0
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldrsw	x8, [x0]
	cmp	x24, x8
	b.ge	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x24
	bl	_nv50_display_crtc_sema
	ldr	w1, [x21]
	ldr	x8, [x22]
	add	x2, x8, x26
	bl	_nouveau_bo_vma_add
	add	x24, x24, #1
	add	x26, x26, #4
	cbz	w0, LBB0_4
; %bb.6:
	mov	x23, x0
LBB0_7:
	ldr	x0, [x25]
	ldr	w8, [x20]
	lsl	w1, w8, #2
	mov	w2, #0
	bl	_nouveau_bo_wr32
	mov	x0, x19
	bl	_nv84_fence_context_del
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	mov	x0, x23
	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
LBB0_10:
	ldr	x0, [x25]
	ldr	w8, [x20]
	lsl	w1, w8, #2
	mov	w2, #0
	bl	_nouveau_bo_wr32
	mov	w23, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nv84_fence_emit,4,2            ; @nv84_fence_emit
	.comm	_nv84_fence_sync,4,2            ; @nv84_fence_sync
	.comm	_nv84_fence_read,4,2            ; @nv84_fence_read
	.comm	_nv84_fence_emit32,4,2          ; @nv84_fence_emit32
	.comm	_nv84_fence_sync32,4,2          ; @nv84_fence_sync32
.subsections_via_symbols
