	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_chan_create
_nv50_chan_create:                      ## @nv50_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	%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
	movl	%r9d, %r15d
	movq	%r8, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	16(%rbp), %rax
	movq	%rdi, 8(%rax)
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_nvif_object_sclass_get
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.2:
	movq	-48(%rbp), %rax
	movl	%ebx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rdx
	addq	$8, %r14
	testq	%rdx, %rdx
	je	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, (%rax,%rsi,8)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_6
	jmp	LBB0_10
LBB0_7:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rcx
	movl	%r15d, %r8d
	movq	16(%rbp), %r14
	movq	%r14, %r9
	callq	_nvif_object_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_nvif_object_map
LBB0_9:
	leaq	-48(%rbp), %rdi
	callq	_nvif_object_sclass_put
	jmp	LBB0_12
LBB0_11:
	leaq	-48(%rbp), %rdi
	callq	_nvif_object_sclass_put
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_nv50_chan_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_chan_create
_nv50_chan_create:                      ; @nv50_chan_create
	.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
	mov	x19, x6
	mov	x21, x5
	mov	x22, x4
	mov	x24, x2
	mov	x23, x1
	str	x0, [x6, #8]
	add	x1, sp, #8
	mov	x0, x23
	bl	_nvif_object_sclass_get
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	x2, [x24]
	cbz	x2, LBB0_10
; %bb.2:
	ldr	x8, [sp, #8]
	mov	w9, w20
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x24, #8]!
	cbz	x2, LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x10, x9
	mov	x11, x8
	cbz	w20, LBB0_3
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11]
	cmp	x12, x2
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_5
	b	LBB0_3
LBB0_7:
	mov	x0, x23
	mov	w1, #0
	mov	x3, x22
	mov	x4, x21
	mov	x5, x19
	bl	_nvif_object_init
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_nvif_object_map
LBB0_9:
	add	x0, sp, #8
	bl	_nvif_object_sclass_put
	b	LBB0_11
LBB0_10:
	add	x0, sp, #8
	bl	_nvif_object_sclass_put
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_nv50_chan_create
.subsections_via_symbols
