	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_bsp_ctor
_nvc0_bsp_ctor:                         ## @nvc0_bsp_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r9, %r14
	leaq	-24(%rbp), %rax
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str(%rip), %r9
	movl	$540672, %ecx                   ## imm = 0x84000
	movl	$1, %r8d
	pushq	%rax
	pushq	%rbx
	callq	_nouveau_falcon_create
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	-24(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r14)
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	-24(%rbp), %rdi
	callq	_nv_subdev
	movl	$32768, (%rax)                  ## imm = 0x8000
	movq	-24(%rbp), %rdi
	callq	_nv_engine
	movq	_nvc0_bsp_cclass@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_nvc0_bsp_sclass@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-24(%rbp), %rdi
	callq	_nv_engine
	movl	%r14d, (%rax)
LBB0_2:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PBSP"

L_.str.1:                               ## @.str.1
	.asciz	"bsp"

	.comm	_nvc0_bsp_cclass,4,2            ## @nvc0_bsp_cclass
	.comm	_nvc0_bsp_sclass,4,2            ## @nvc0_bsp_sclass
	.no_dead_strip	_nvc0_bsp_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_bsp_ctor
_nvc0_bsp_ctor:                         ; @nvc0_bsp_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x5
Lloh0:
	adrp	x5, l_.str@PAGE
Lloh1:
	add	x5, x5, l_.str@PAGEOFF
Lloh2:
	adrp	x6, l_.str.1@PAGE
Lloh3:
	add	x6, x6, l_.str.1@PAGEOFF
	add	x7, sp, #8
	mov	w3, #16384
	movk	w3, #8, lsl #16
	mov	w4, #1
	bl	_nouveau_falcon_create
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x20]
	cbnz	w19, LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_nv_subdev
	mov	w8, #32768
	str	w8, [x0]
	ldr	x0, [sp, #8]
	bl	_nv_engine
Lloh4:
	adrp	x8, _nvc0_bsp_cclass@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nvc0_bsp_cclass@GOTPAGEOFF]
	str	x8, [x0, #8]
Lloh6:
	adrp	x8, _nvc0_bsp_sclass@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nvc0_bsp_sclass@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	ldr	x0, [sp, #8]
	bl	_nv_engine
	str	w20, [x0]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PBSP"

l_.str.1:                               ; @.str.1
	.asciz	"bsp"

	.comm	_nvc0_bsp_cclass,4,2            ; @nvc0_bsp_cclass
	.comm	_nvc0_bsp_sclass,4,2            ; @nvc0_bsp_sclass
	.no_dead_strip	_nvc0_bsp_ctor
.subsections_via_symbols
