	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_fb_ctor
_nvc0_fb_ctor:                          ## @nvc0_fb_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
	pushq	%rax
	.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, %r13
	movq	%rdi, %rbx
	callq	_nv_device
	movq	%rax, %r14
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_nouveau_fb_create
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r15)
	testl	%ebx, %ebx
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_nvc0_fb_memtype_valid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	movl	%eax, 12(%rcx)
	movq	_nvc0_fb_vram_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	_nvc0_fb_vram_new@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_nv50_fb_vram_del@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_alloc_page
	movq	-48(%rbp), %rcx
	movl	%eax, 20(%rcx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%r14), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PCI_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_pci_map_page
	movq	-48(%rbp), %rcx
	movl	%eax, 16(%rcx)
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	-48(%rbp), %rdi
	callq	_nouveau_fb_preinit
	movl	%eax, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_nvc0_fb_memtype_valid,4,2      ## @nvc0_fb_memtype_valid
	.comm	_nvc0_fb_vram_init,4,2          ## @nvc0_fb_vram_init
	.comm	_nvc0_fb_vram_new,4,2           ## @nvc0_fb_vram_new
	.comm	_nv50_fb_vram_del,4,2           ## @nv50_fb_vram_del
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ## @PCI_DMA_BIDIRECTIONAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_nvc0_fb_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_fb_ctor
_nvc0_fb_ctor:                          ; @nvc0_fb_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	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_nv_device
	mov	x19, x0
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_nouveau_fb_create
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x21]
	cbnz	w20, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _nvc0_fb_memtype_valid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nvc0_fb_memtype_valid@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
Lloh3:
	adrp	x10, _nvc0_fb_vram_init@GOTPAGE
Lloh4:
	ldr	x10, [x10, _nvc0_fb_vram_init@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #8]
Lloh6:
	adrp	x8, _nvc0_fb_vram_new@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nvc0_fb_vram_new@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x10, _nv50_fb_vram_del@GOTPAGE
Lloh10:
	ldr	x10, [x10, _nv50_fb_vram_del@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x11, [x11, _GFP_KERNEL@GOTPAGEOFF]
	stp	w10, w8, [x9]
Lloh14:
	ldr	w8, [x11]
Lloh15:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_alloc_page
	ldr	x8, [sp, #8]
	str	w0, [x8, #20]
	cbz	w0, LBB0_4
; %bb.2:
	mov	x1, x0
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	mov	w2, #0
	bl	_pci_map_page
	mov	x1, x0
	ldr	x8, [sp, #8]
	str	w0, [x8, #16]
	ldr	w0, [x19]
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_6
; %bb.3:
Lloh24:
	adrp	x8, _EFAULT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_nouveau_fb_preinit
	mov	x20, x0
LBB0_7:
	mov	x0, x20
	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	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_nvc0_fb_memtype_valid,4,2      ; @nvc0_fb_memtype_valid
	.comm	_nvc0_fb_vram_init,4,2          ; @nvc0_fb_vram_init
	.comm	_nvc0_fb_vram_new,4,2           ; @nvc0_fb_vram_new
	.comm	_nv50_fb_vram_del,4,2           ; @nv50_fb_vram_del
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ; @PCI_DMA_BIDIRECTIONAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_nvc0_fb_ctor
.subsections_via_symbols
