	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_disp_chan_create_         ## -- Begin function nv50_disp_chan_create_
	.p2align	4, 0x90
_nv50_disp_chan_create_:                ## @nv50_disp_chan_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movl	$1, %ebx
	shll	%cl, %ebx
	btl	%ecx, %eax
	jae	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%r9, %r14
	movl	%r8d, %r10d
	movl	%ecx, %r15d
	orl	%ebx, %eax
	movl	%eax, (%rdi)
	movq	_NVDEV_ENGINE_DMAOBJ@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %r9d
	shlq	%cl, %r9
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%r14
	pushq	%r10
	callq	_nouveau_namedb_create_
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movl	%r15d, (%rax)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NVDEV_ENGINE_DMAOBJ,8,3        ## @NVDEV_ENGINE_DMAOBJ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_disp_chan_create_         ; -- Begin function nv50_disp_chan_create_
	.p2align	2
_nv50_disp_chan_create_:                ; @nv50_disp_chan_create_
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w9, w9, w3
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x19, x5
	mov	x6, x4
	mov	x20, x3
	orr	w8, w8, w9
	str	w8, [x0]
Lloh3:
	adrp	x8, _NVDEV_ENGINE_DMAOBJ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVDEV_ENGINE_DMAOBJ@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x5, x9, x8
	mov	w3, #0
	mov	x4, #0
	mov	x7, x19
	bl	_nouveau_namedb_create_
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	str	w20, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NVDEV_ENGINE_DMAOBJ,8,3        ; @NVDEV_ENGINE_DMAOBJ
.subsections_via_symbols
