	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nve0_copy0_ctor
_nve0_copy0_ctor:                       ## @nve0_copy0_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$140544, %esi                   ## imm = 0x22500
	callq	_nv_rd32
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	leaq	-40(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %r8
	leaq	L_.str.1(%rip), %r9
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_nouveau_engine_create
	movl	%eax, %ebx
	movq	-40(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r14)
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rdi
	callq	_nv_subdev
	movl	$64, (%rax)
	movq	-40(%rbp), %rdi
	callq	_nv_engine
	movq	_nve0_copy_cclass@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_nve0_copy_sclass@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-40(%rbp), %rdi
	callq	_nv_engine
	movl	%ebx, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCE0"

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

	.comm	_nve0_copy_cclass,4,2           ## @nve0_copy_cclass
	.comm	_nve0_copy_sclass,4,2           ## @nve0_copy_sclass
	.no_dead_strip	_nve0_copy0_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nve0_copy0_ctor
_nve0_copy0_ctor:                       ; @nve0_copy0_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x5
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w1, #9472
	movk	w1, #2, lsl #16
	bl	_nv_rd32
	tbnz	w0, #8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x4, l_.str@PAGE
Lloh1:
	add	x4, x4, l_.str@PAGEOFF
Lloh2:
	adrp	x5, l_.str.1@PAGE
Lloh3:
	add	x5, x5, l_.str.1@PAGEOFF
	add	x6, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	bl	_nouveau_engine_create
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x19]
	cbnz	w20, LBB0_4
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_nv_subdev
	mov	w8, #64
	str	w8, [x0]
	ldr	x0, [sp, #8]
	bl	_nv_engine
Lloh4:
	adrp	x8, _nve0_copy_cclass@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nve0_copy_cclass@GOTPAGEOFF]
	str	x8, [x0, #8]
Lloh6:
	adrp	x8, _nve0_copy_sclass@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nve0_copy_sclass@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	ldr	x0, [sp, #8]
	bl	_nv_engine
	str	w19, [x0]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCE0"

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

	.comm	_nve0_copy_cclass,4,2           ; @nve0_copy_cclass
	.comm	_nve0_copy_sclass,4,2           ; @nve0_copy_sclass
	.no_dead_strip	_nve0_copy0_ctor
.subsections_via_symbols
