	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_channel_new            ## -- Begin function nouveau_channel_new
	.p2align	4, 0x90
_nouveau_channel_new:                   ## @nouveau_channel_new
	.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	%r9, %r14
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, (%r13)
	movl	%r8d, %ecx
	movq	%r9, %r8
	callq	_nouveau_channel_ind
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_dbg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rsi
	movl	%eax, %ecx
	callq	_NV_PRINTK
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_nouveau_channel_dma
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movq	_dbg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rsi
	movl	%ebx, %ecx
	callq	_NV_PRINTK
	jmp	LBB0_8
LBB0_3:
	movq	(%r14), %rdi
	movl	%r12d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_nouveau_channel_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_err@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rsi
	movl	%eax, %ecx
	callq	_NV_PRINTK
	movq	%r14, %rdi
	callq	_nouveau_channel_del
LBB0_5:
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_nouveau_svmm_join
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_nouveau_channel_del
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dbg,4,2                        ## @dbg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib channel create, %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"dma channel create, %d\n"

	.comm	_err,4,2                        ## @err
L_.str.2:                               ## @.str.2
	.asciz	"channel failed to initialise, %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_channel_new            ; -- Begin function nouveau_channel_new
	.p2align	2
_nouveau_channel_new:                   ; @nouveau_channel_new
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x19, [x1]
	ldr	w25, [x19]
	mov	w8, #1
	str	w8, [x19]
	mov	x3, x4
	mov	x4, x5
	bl	_nouveau_channel_ind
	cbz	w0, LBB0_3
; %bb.1:
	mov	x3, x0
Lloh0:
	adrp	x26, _dbg@GOTPAGE
Lloh1:
	ldr	x26, [x26, _dbg@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_NV_PRINTK
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	bl	_nouveau_channel_dma
	cbz	w0, LBB0_3
; %bb.2:
	mov	x23, x0
	ldr	w0, [x26]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x3, x23
	bl	_NV_PRINTK
	b	LBB0_7
LBB0_3:
	ldr	x0, [x20]
	mov	x1, x22
	mov	x2, x21
	bl	_nouveau_channel_init
	cbz	w0, LBB0_5
; %bb.4:
	mov	x3, x0
Lloh6:
	adrp	x8, _err@GOTPAGE
Lloh7:
	ldr	x8, [x8, _err@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_NV_PRINTK
	mov	x0, x20
	bl	_nouveau_channel_del
LBB0_5:
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_nouveau_svmm_join
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_nouveau_channel_del
LBB0_7:
	str	w25, [x19]
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_dbg,4,2                        ; @dbg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib channel create, %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"dma channel create, %d\n"

	.comm	_err,4,2                        ; @err
l_.str.2:                               ; @.str.2
	.asciz	"channel failed to initialise, %d\n"

.subsections_via_symbols
