	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_svm_init               ## -- Begin function nouveau_svm_init
	.p2align	4, 0x90
_nouveau_svm_init:                      ## @nouveau_svm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	_NV_DEVICE_INFO_V0_PASCAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, 8(%rax)
	movq	%rax, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	16(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	_nouveau_svm_init.buffers(%rip), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_nvif_mclass
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %rax
	movl	(%r15,%rax,4), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_nouveau_svm_fault_buffer_ctor
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SVM_DBG                        ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_SVM_DBG
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nouveau_svm_fini               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @nouveau_svm_init.buffers
_nouveau_svm_init.buffers:
	.long	128                             ## 0x80
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	129                             ## 0x81
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	12

	.comm	_NV_DEVICE_INFO_V0_PASCAL,8,3   ## @NV_DEVICE_INFO_V0_PASCAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No supported fault buffer class"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_svm_init               ; -- Begin function nouveau_svm_init
	.p2align	2
_nouveau_svm_init:                      ; @nouveau_svm_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _NV_DEVICE_INFO_V0_PASCAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_DEVICE_INFO_V0_PASCAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #8]
	add	x0, x0, #4
	bl	_mutex_init
	ldr	x0, [x19, #16]
	bl	_INIT_LIST_HEAD
Lloh6:
	adrp	x21, _nouveau_svm_init.buffers@PAGE
Lloh7:
	add	x21, x21, _nouveau_svm_init.buffers@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_nvif_mclass
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	w8, #12
	umull	x8, w0, w8
	ldr	w1, [x21, x8]
	mov	x0, x20
	mov	w2, #0
	bl	_nouveau_svm_fault_buffer_ctor
	cbnz	w0, LBB0_7
; %bb.4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_SVM_DBG
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_SVM_DBG
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nouveau_svm_fini
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @nouveau_svm_init.buffers
_nouveau_svm_init.buffers:
	.long	128                             ; 0x80
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	129                             ; 0x81
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	12

	.comm	_NV_DEVICE_INFO_V0_PASCAL,8,3   ; @NV_DEVICE_INFO_V0_PASCAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No supported fault buffer class"

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

.subsections_via_symbols
