	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_bar_ctor
_nv50_bar_ctor:                         ## @nv50_bar_ctor
	.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	%r9, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_nv_device
	movq	%rax, %r14
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_nouveau_bar_create
	movl	%eax, %r12d
	movq	-48(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r15)
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.1:
	movq	_NVOBJ_FLAG_HEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %r9
	addq	$72, %r9
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$131072, %edx                   ## imm = 0x20000
	xorl	%ecx, %ecx
	callq	_nouveau_gpuobj_new
	movl	%eax, %r12d
	movq	-48(%rbp), %rax
	movq	72(%rax), %rdi
	callq	_nv_object
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.2:
	movq	%rax, %r15
	cmpl	$80, (%r14)
	movl	$5120, %eax                     ## imm = 0x1400
	movl	$512, %edx                      ## imm = 0x200
	cmovel	%eax, %edx
	movq	-48(%rbp), %r9
	addq	$64, %r9
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movq	-48(%rbp), %r9
	addq	$32, %r9
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$16384, %edx                    ## imm = 0x4000
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movl	4(%r14), %edi
	movl	$3, %esi
	callq	_pci_resource_len
	movl	%eax, %ebx
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_nouveau_vm_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movl	%ebx, %edx
	sarl	$9, %edx
	andl	$-8, %edx
	movq	_NVOBJ_FLAG_ZERO_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r9
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$4096, %ecx                     ## imm = 0x1000
	callq	_nouveau_gpuobj_new
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	$1, (%rax)
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.6:
	movq	-48(%rbp), %rsi
	movq	32(%rsi), %rdx
	addq	$56, %rsi
	callq	_nouveau_vm_ref
	movl	%eax, %r12d
	leaq	-56(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_nouveau_vm_ref
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.7:
	movq	-48(%rbp), %r9
	addq	$48, %r9
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$24, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	decl	%ebx
	movq	-48(%rbp), %rax
	movq	48(%rax), %rdi
	xorl	%esi, %esi
	movl	$2143289344, %edx               ## imm = 0x7FC00000
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	48(%rax), %r12
	movl	%ebx, %edi
	callq	_lower_32_bits
	movq	%r12, %rdi
	movl	$4, %esi
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	48(%rax), %r12
	xorl	%edi, %edi
	callq	_lower_32_bits
	movq	%r12, %rdi
	movl	$8, %esi
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	48(%rax), %r12
	movl	%ebx, %edi
	callq	_upper_32_bits
	movl	%eax, %ebx
	shll	$24, %ebx
	xorl	%edi, %edi
	callq	_upper_32_bits
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	$12, %esi
	movl	%ebx, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	48(%rax), %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	48(%rax), %rdi
	movl	$20, %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	movl	4(%r14), %edi
	movl	$1, %esi
	callq	_pci_resource_len
	movl	%eax, %ebx
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_nouveau_vm_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	movq	32(%rsi), %rdx
	addq	$40, %rsi
	callq	_nouveau_vm_ref
	movl	%eax, %r12d
	leaq	-56(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_nouveau_vm_ref
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.10:
	movq	-48(%rbp), %r9
	addq	$24, %r9
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$24, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	decl	%ebx
	movq	-48(%rbp), %rax
	movq	24(%rax), %rdi
	xorl	%esi, %esi
	movl	$2143289344, %edx               ## imm = 0x7FC00000
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	24(%rax), %r15
	movl	%ebx, %edi
	callq	_lower_32_bits
	movq	%r15, %rdi
	movl	$4, %esi
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	24(%rax), %r15
	xorl	%edi, %edi
	callq	_lower_32_bits
	movq	%r15, %rdi
	movl	$8, %esi
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	24(%rax), %r15
	movl	%ebx, %edi
	callq	_upper_32_bits
	movl	%eax, %ebx
	shll	$24, %ebx
	xorl	%edi, %edi
	callq	_upper_32_bits
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	$12, %esi
	movl	%ebx, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	24(%rax), %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	24(%rax), %rdi
	movl	$20, %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	_nouveau_bar_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdi
	movl	%eax, 20(%rdi)
	movq	_nv50_bar_kmap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_nv50_bar_umap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movq	_nv50_bar_unmap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	cmpl	$80, (%r14)
	jne	LBB0_12
## %bb.13:
	movq	_nv50_bar_flush@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_nv84_bar_flush@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	callq	_spin_lock_init
	xorl	%r12d, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVOBJ_FLAG_HEAP,4,2            ## @NVOBJ_FLAG_HEAP
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ## @NVOBJ_FLAG_ZERO_ALLOC
	.comm	_nouveau_bar_alloc,4,2          ## @nouveau_bar_alloc
	.comm	_nv50_bar_kmap,4,2              ## @nv50_bar_kmap
	.comm	_nv50_bar_umap,4,2              ## @nv50_bar_umap
	.comm	_nv50_bar_unmap,4,2             ## @nv50_bar_unmap
	.comm	_nv50_bar_flush,4,2             ## @nv50_bar_flush
	.comm	_nv84_bar_flush,4,2             ## @nv84_bar_flush
	.no_dead_strip	_nv50_bar_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_bar_ctor
_nv50_bar_ctor:                         ; @nv50_bar_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x5
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_nv_device
	mov	x19, x0
	mov	x3, sp
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_nouveau_bar_create
	mov	x22, x0
	ldr	x0, [sp]
	bl	_nv_object
	str	x0, [x21]
	cbnz	w22, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _NVOBJ_FLAG_HEAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVOBJ_FLAG_HEAP@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	ldr	x8, [sp]
	add	x5, x8, #72
	mov	x0, x20
	mov	x1, #0
	mov	w2, #131072
	mov	w3, #0
	bl	_nouveau_gpuobj_new
	mov	x22, x0
	ldr	x8, [sp]
	ldr	x0, [x8, #72]
	bl	_nv_object
	cbnz	w22, LBB0_12
; %bb.2:
	mov	x21, x0
	ldr	w8, [x19]
	mov	w9, #512
	mov	w10, #5120
	cmp	w8, #80
	csel	w2, w10, w9, eq
	ldr	x8, [sp]
	add	x5, x8, #64
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.3:
	ldr	x8, [sp]
	add	x5, x8, #32
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16384
	mov	w3, #0
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.4:
	ldr	w0, [x19, #4]
	mov	w1, #3
	bl	_pci_resource_len
	mov	x23, x0
	add	x4, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	mov	w3, #0
	bl	_nouveau_vm_new
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.5:
	asr	w8, w23, #9
	and	w2, w8, #0xfffffff8
Lloh3:
	adrp	x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x5, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #4096
	bl	_nouveau_gpuobj_new
	mov	x22, x0
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
	cbnz	w22, LBB0_12
; %bb.6:
	ldr	x8, [sp]
	add	x1, x8, #56
	ldr	x2, [x8, #32]
	bl	_nouveau_vm_ref
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, #0
	mov	x2, #0
	bl	_nouveau_vm_ref
	cbnz	w22, LBB0_12
; %bb.7:
	ldr	x8, [sp]
	add	x5, x8, #48
	mov	x0, x20
	mov	x1, x21
	mov	w2, #24
	mov	w3, #16
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.8:
	sub	w22, w23, #1
	ldr	x8, [sp]
	ldr	x0, [x8, #48]
	mov	w1, #0
	mov	w2, #2143289344
	bl	_nv_wo32
	ldr	x8, [sp]
	ldr	x23, [x8, #48]
	mov	x0, x22
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x23
	mov	w1, #4
	bl	_nv_wo32
	ldr	x8, [sp]
	ldr	x23, [x8, #48]
	mov	w0, #0
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x23
	mov	w1, #8
	bl	_nv_wo32
	ldr	x8, [sp]
	ldr	x23, [x8, #48]
	mov	x0, x22
	bl	_upper_32_bits
	mov	x22, x0
	mov	w0, #0
	bl	_upper_32_bits
	orr	w2, w0, w22, lsl #24
	mov	x0, x23
	mov	w1, #12
	bl	_nv_wo32
	ldr	x8, [sp]
	ldr	x0, [x8, #48]
	mov	w1, #16
	mov	w2, #0
	bl	_nv_wo32
	ldr	x8, [sp]
	ldr	x0, [x8, #48]
	mov	w1, #20
	mov	w2, #0
	bl	_nv_wo32
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_pci_resource_len
	mov	x23, x0
	add	x4, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	mov	w3, #0
	bl	_nouveau_vm_new
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.9:
	ldp	x8, x0, [sp]
	add	x1, x8, #40
	ldr	x2, [x8, #32]
	bl	_nouveau_vm_ref
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, #0
	mov	x2, #0
	bl	_nouveau_vm_ref
	cbnz	w22, LBB0_12
; %bb.10:
	ldr	x8, [sp]
	add	x5, x8, #24
	mov	x0, x20
	mov	x1, x21
	mov	w2, #24
	mov	w3, #16
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.11:
	sub	w20, w23, #1
	ldr	x8, [sp]
	ldr	x0, [x8, #24]
	mov	w1, #0
	mov	w2, #2143289344
	bl	_nv_wo32
	ldr	x8, [sp]
	ldr	x21, [x8, #24]
	mov	x0, x20
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x21
	mov	w1, #4
	bl	_nv_wo32
	ldr	x8, [sp]
	ldr	x21, [x8, #24]
	mov	w0, #0
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x21
	mov	w1, #8
	bl	_nv_wo32
	ldr	x8, [sp]
	ldr	x21, [x8, #24]
	mov	x0, x20
	bl	_upper_32_bits
	mov	x20, x0
	mov	w0, #0
	bl	_upper_32_bits
	orr	w2, w0, w20, lsl #24
	mov	x0, x21
	mov	w1, #12
	bl	_nv_wo32
	ldr	x8, [sp]
	ldr	x0, [x8, #24]
	mov	w1, #16
	mov	w2, #0
	bl	_nv_wo32
	ldr	x8, [sp]
	ldr	x0, [x8, #24]
	mov	w1, #20
	mov	w2, #0
	bl	_nv_wo32
Lloh6:
	adrp	x8, _nouveau_bar_alloc@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nouveau_bar_alloc@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x0, [sp]
Lloh9:
	adrp	x9, _nv50_bar_kmap@GOTPAGE
Lloh10:
	ldr	x9, [x9, _nv50_bar_kmap@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh12:
	adrp	x8, _nv50_bar_umap@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nv50_bar_umap@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _nv50_bar_unmap@GOTPAGE
Lloh16:
	ldr	x9, [x9, _nv50_bar_unmap@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _nv50_bar_flush@GOTPAGE
Lloh19:
	ldr	x9, [x9, _nv50_bar_flush@GOTPAGEOFF]
Lloh20:
	adrp	x10, _nv84_bar_flush@GOTPAGE
Lloh21:
	ldr	x10, [x10, _nv84_bar_flush@GOTPAGEOFF]
	cmp	w8, #80
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x0, #4]
	bl	_spin_lock_init
LBB0_12:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVOBJ_FLAG_HEAP,4,2            ; @NVOBJ_FLAG_HEAP
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ; @NVOBJ_FLAG_ZERO_ALLOC
	.comm	_nouveau_bar_alloc,4,2          ; @nouveau_bar_alloc
	.comm	_nv50_bar_kmap,4,2              ; @nv50_bar_kmap
	.comm	_nv50_bar_umap,4,2              ; @nv50_bar_umap
	.comm	_nv50_bar_unmap,4,2             ; @nv50_bar_unmap
	.comm	_nv50_bar_flush,4,2             ; @nv50_bar_flush
	.comm	_nv84_bar_flush,4,2             ; @nv84_bar_flush
	.no_dead_strip	_nv50_bar_ctor
.subsections_via_symbols
