	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_engine_create_         ## -- Begin function nouveau_engine_create_
	.p2align	4, 0x90
_nouveau_engine_create_:                ## @nouveau_engine_create_
	.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	%r8, %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_nv_device
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_NV_ENGINE_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	24(%rbp), %rbx
	movq	%r13, %r8
	movq	%r15, %r9
	pushq	%rbx
	movl	16(%rbp), %eax
	pushq	%rax
	callq	_nouveau_subdev_create_
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	(%rbx), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_nouveau_boolopt
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	leaq	4(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	callq	_spin_lock_init
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_nv_warn
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_ENGINE_CLASS,4,2            ## @NV_ENGINE_CLASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disabled, %s=1 to enable\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_engine_create_         ; -- Begin function nouveau_engine_create_
	.p2align	2
_nouveau_engine_create_:                ; @nouveau_engine_create_
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x23, x6
	mov	x24, x5
	mov	x19, x4
	mov	x20, x3
	mov	x25, x2
	mov	x26, x1
	mov	x27, x0
	bl	_nv_device
	mov	x22, x0
Lloh0:
	adrp	x8, _NV_ENGINE_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_ENGINE_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	mov	x4, x19
	mov	x5, x24
	mov	x6, x23
	mov	x7, x21
	bl	_nouveau_subdev_create_
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x21, [x21]
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x20
	bl	_nouveau_boolopt
	cbz	w0, LBB0_3
; %bb.2:
	add	x0, x21, #4
	bl	_INIT_LIST_HEAD
	mov	x0, x21
	bl	_spin_lock_init
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	cbnz	w20, LBB0_5
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_nv_warn
LBB0_5:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_ENGINE_CLASS,4,2            ; @NV_ENGINE_CLASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabled, %s=1 to enable\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
