	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_bar_ctor
_nvc0_bar_ctor:                         ## @nvc0_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, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_nv_device
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	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, (%r14)
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.1:
	movq	-48(%rbp), %rax
	movq	24(%rax), %r9
	addq	$16, %r9
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	movq	-48(%rbp), %rax
	movq	24(%rax), %r9
	movq	16(%r9), %rbx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$3, %esi
	callq	_pci_resource_len
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_nouveau_vm_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$3, %esi
	callq	_pci_resource_len
	sarl	$9, %eax
	andl	$-8, %eax
	movq	_NVOBJ_FLAG_ZERO_ALLOC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	-56(%rbp), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %r9
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	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_11
## %bb.5:
	movq	-48(%rbp), %rax
	movq	24(%rax), %rsi
	movq	(%rsi), %rdx
	addq	$8, %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_11
## %bb.6:
	movq	-48(%rbp), %rax
	movq	24(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	24(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	$516, %esi                      ## imm = 0x204
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_pci_resource_len
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	$520, %esi                      ## imm = 0x208
	movl	%eax, %edx
	callq	_nv_wo32
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_pci_resource_len
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	$524, %esi                      ## imm = 0x20C
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	24(%rax), %r9
	addq	$40, %r9
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	-48(%rbp), %rax
	movq	24(%rax), %r9
	movq	40(%r9), %rbx
	addq	$24, %r9
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_pci_resource_len
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_nouveau_vm_new
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rax
	movq	24(%rax), %rsi
	movq	24(%rsi), %rdx
	addq	$32, %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_11
## %bb.10:
	movq	-48(%rbp), %rax
	movq	24(%rax), %rax
	movq	24(%rax), %rax
	movl	(%rax), %edi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rax
	movq	24(%rax), %rax
	movq	24(%rax), %rax
	movl	(%rax), %edi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	$516, %esi                      ## imm = 0x204
	movl	%eax, %edx
	callq	_nv_wo32
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pci_resource_len
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	$520, %esi                      ## imm = 0x208
	movl	%eax, %edx
	callq	_nv_wo32
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pci_resource_len
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	$524, %esi                      ## imm = 0x20C
	movl	%eax, %edx
	callq	_nv_wo32
	movq	_nouveau_bar_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdi
	movl	%eax, 20(%rdi)
	movq	_nvc0_bar_kmap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_nvc0_bar_umap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movq	_nvc0_bar_unmap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_nv84_bar_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	callq	_spin_lock_init
	xorl	%r12d, %r12d
LBB0_11:
	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_ZERO_ALLOC,4,2      ## @NVOBJ_FLAG_ZERO_ALLOC
	.comm	_nouveau_bar_alloc,4,2          ## @nouveau_bar_alloc
	.comm	_nvc0_bar_kmap,4,2              ## @nvc0_bar_kmap
	.comm	_nvc0_bar_umap,4,2              ## @nvc0_bar_umap
	.comm	_nvc0_bar_unmap,4,2             ## @nvc0_bar_unmap
	.comm	_nv84_bar_flush,4,2             ## @nv84_bar_flush
	.no_dead_strip	_nvc0_bar_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_bar_ctor
_nvc0_bar_ctor:                         ; @nvc0_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	x22, x5
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	bl	_nv_device
	mov	x20, x0
	ldr	x19, [x0]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_nouveau_bar_create
	mov	x23, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x22]
	cbnz	w23, LBB0_11
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #24]
	add	x5, x8, #16
	mov	x0, x21
	mov	x1, #0
	mov	w2, #4096
	mov	w3, #0
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x5, [x8, #24]
	ldr	x22, [x5, #16]
	mov	x0, x21
	mov	x1, #0
	mov	w2, #32768
	mov	w3, #0
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.3:
	mov	x0, x19
	mov	w1, #3
	bl	_pci_resource_len
	mov	x2, x0
	mov	x4, sp
	mov	x0, x20
	mov	w1, #0
	mov	w3, #0
	bl	_nouveau_vm_new
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.4:
	mov	x0, x19
	mov	w1, #3
	bl	_pci_resource_len
	asr	w8, w0, #9
	and	w2, w8, #0xfffffff8
Lloh0:
	adrp	x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	ldr	x8, [sp]
	ldr	x8, [x8]
	ldr	x5, [x8, #8]
	mov	x0, x21
	mov	x1, #0
	mov	w3, #4096
	bl	_nouveau_gpuobj_new
	mov	x23, x0
	ldr	x0, [sp]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
	cbnz	w23, LBB0_11
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x1, [x8, #24]
	ldr	x2, [x1], #8
	bl	_nouveau_vm_ref
	mov	x23, x0
	mov	x1, sp
	mov	x0, #0
	mov	x2, #0
	bl	_nouveau_vm_ref
	cbnz	w23, LBB0_11
; %bb.6:
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x22
	mov	w1, #512
	bl	_nv_wo32
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x22
	mov	w1, #516
	bl	_nv_wo32
	mov	x0, x19
	mov	w1, #3
	bl	_pci_resource_len
	sub	w0, w0, #1
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x22
	mov	w1, #520
	bl	_nv_wo32
	mov	x0, x19
	mov	w1, #3
	bl	_pci_resource_len
	sub	w0, w0, #1
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x22
	mov	w1, #524
	bl	_nv_wo32
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #24]
	add	x5, x8, #40
	mov	x0, x21
	mov	x1, #0
	mov	w2, #4096
	mov	w3, #0
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #24]
	ldr	x22, [x8, #40]
	add	x5, x8, #24
	mov	x0, x21
	mov	x1, #0
	mov	w2, #32768
	mov	w3, #0
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.8:
	mov	x0, x19
	mov	w1, #1
	bl	_pci_resource_len
	mov	x2, x0
	mov	x4, sp
	mov	x0, x20
	mov	w1, #0
	mov	w3, #0
	bl	_nouveau_vm_new
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.9:
	ldp	x0, x8, [sp]
	ldr	x8, [x8, #24]
	add	x1, x8, #32
	ldr	x2, [x8, #24]
	bl	_nouveau_vm_ref
	mov	x23, x0
	mov	x1, sp
	mov	x0, #0
	mov	x2, #0
	bl	_nouveau_vm_ref
	cbnz	w23, LBB0_11
; %bb.10:
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #24]
	ldr	x8, [x8, #24]
	ldr	w0, [x8]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x22
	mov	w1, #512
	bl	_nv_wo32
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #24]
	ldr	x8, [x8, #24]
	ldr	w0, [x8]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x22
	mov	w1, #516
	bl	_nv_wo32
	mov	x0, x19
	mov	w1, #1
	bl	_pci_resource_len
	sub	w0, w0, #1
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x22
	mov	w1, #520
	bl	_nv_wo32
	mov	x0, x19
	mov	w1, #1
	bl	_pci_resource_len
	sub	w0, w0, #1
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x22
	mov	w1, #524
	bl	_nv_wo32
Lloh3:
	adrp	x8, _nouveau_bar_alloc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nouveau_bar_alloc@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x0, [sp, #8]
	str	w8, [x0, #20]
Lloh6:
	adrp	x8, _nvc0_bar_kmap@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nvc0_bar_kmap@GOTPAGEOFF]
Lloh8:
	adrp	x9, _nvc0_bar_umap@GOTPAGE
Lloh9:
	ldr	x9, [x9, _nvc0_bar_umap@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
Lloh12:
	adrp	x8, _nvc0_bar_unmap@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nvc0_bar_unmap@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _nv84_bar_flush@GOTPAGE
Lloh16:
	ldr	x9, [x9, _nv84_bar_flush@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	bl	_spin_lock_init
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ; @NVOBJ_FLAG_ZERO_ALLOC
	.comm	_nouveau_bar_alloc,4,2          ; @nouveau_bar_alloc
	.comm	_nvc0_bar_kmap,4,2              ; @nvc0_bar_kmap
	.comm	_nvc0_bar_umap,4,2              ; @nvc0_bar_umap
	.comm	_nvc0_bar_unmap,4,2             ; @nvc0_bar_unmap
	.comm	_nv84_bar_flush,4,2             ; @nv84_bar_flush
	.no_dead_strip	_nvc0_bar_ctor
.subsections_via_symbols
