	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_accel_init
_nouveau_accel_init:                    ## @nouveau_accel_init
	.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	_nouveau_noaccel@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_20
## %bb.1:
	movq	%rdi, %r14
	callq	_nouveau_channels_init
	testl	%eax, %eax
	je	LBB0_2
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	8(%r14), %rdi
	leaq	-48(%rbp), %rsi
	callq	_nvif_object_sclass_get
	testl	%eax, %eax
	js	LBB0_20
## %bb.3:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	subl	(%rcx), %r12d
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	leaq	LJTI0_0(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movl	(%rax,%rbx,4), %eax
	addl	$-128, %eax
	cmpl	$12, %eax
	ja	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_nvc0_fence_create
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_nv17_fence_create
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_nv50_fence_create
	jmp	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_nv10_fence_create
	jmp	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_nv04_fence_create
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_nv84_fence_create
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_5
LBB0_15:
	leaq	-48(%rbp), %rdi
	callq	_nvif_object_sclass_put
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_NV_ERROR
	movq	%r14, %rdi
	callq	_nouveau_accel_fini
	jmp	LBB0_20
LBB0_17:
	movq	(%r14), %rax
	movq	_NV_DEVICE_INFO_V0_VOLTA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_nvif_user_init
	testl	%eax, %eax
	jne	LBB0_20
LBB0_19:
	movq	%r14, %rdi
	callq	_nouveau_accel_gr_init
	movq	%r14, %rdi
	callq	_nouveau_accel_ce_init
	movq	%r14, %rdi
	callq	_nouveau_bo_move_init
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_nouveau_noaccel,8,3            ## @nouveau_noaccel
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialise sync subsystem, %d\n"

	.comm	_NV_DEVICE_INFO_V0_VOLTA,8,3    ## @NV_DEVICE_INFO_V0_VOLTA
	.no_dead_strip	_nouveau_accel_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_accel_init
_nouveau_accel_init:                    ; @nouveau_accel_init
	.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
Lloh0:
	adrp	x8, _nouveau_noaccel@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nouveau_noaccel@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_nouveau_channels_init
	cbz	w0, LBB0_3
LBB0_2:
	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
LBB0_3:
	add	x0, x19, #8
	add	x1, sp, #8
	bl	_nvif_object_sclass_get
	tbnz	w0, #31, LBB0_2
; %bb.4:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	cbz	w0, LBB0_16
; %bb.5:
	mov	x21, #0
	mov	w8, w0
	lsl	x22, x8, #2
Lloh6:
	adrp	x23, lJTI0_0@PAGE
Lloh7:
	add	x23, x23, lJTI0_0@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	w8, [x8, x21]
	sub	w8, w8, #128
	cmp	w8, #12
	b.hi	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	adr	x9, LBB0_8
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_nvc0_fence_create
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_nv17_fence_create
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_nv50_fence_create
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_nv10_fence_create
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_nv04_fence_create
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_nv84_fence_create
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #4
	cmp	x22, x21
	b.ne	LBB0_6
LBB0_16:
	add	x0, sp, #8
	bl	_nvif_object_sclass_put
	cbz	w20, LBB0_18
; %bb.17:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_NV_ERROR
	mov	x0, x19
	bl	_nouveau_accel_fini
	b	LBB0_2
LBB0_18:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _NV_DEVICE_INFO_V0_VOLTA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NV_DEVICE_INFO_V0_VOLTA@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_nvif_user_init
	cbnz	w0, LBB0_2
LBB0_20:
	mov	x0, x19
	bl	_nouveau_accel_gr_init
	mov	x0, x19
	bl	_nouveau_accel_ce_init
	mov	x0, x19
	bl	_nouveau_bo_move_init
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
                                        ; -- End function
	.comm	_nouveau_noaccel,8,3            ; @nouveau_noaccel
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialise sync subsystem, %d\n"

	.comm	_NV_DEVICE_INFO_V0_VOLTA,8,3    ; @NV_DEVICE_INFO_V0_VOLTA
	.no_dead_strip	_nouveau_accel_init
.subsections_via_symbols
