	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_disp_chan_child_get
_nv50_disp_chan_child_get:              ## @nv50_disp_chan_child_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	callq	_nv50_disp_chan
	movq	8(%rax), %rcx
	movq	(%rcx), %rdi
	movq	$0, -24(%rbp)
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	_NVKM_ENGINE_DMAOBJ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nvkm_device_engine
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*%rax
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	_nv50_disp_chan_child_new@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	$0, 16(%rbx)
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_ENGINE_DMAOBJ,4,2         ## @NVKM_ENGINE_DMAOBJ
	.comm	_nv50_disp_chan_child_new,4,2   ## @nv50_disp_chan_child_new
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nv50_disp_chan_child_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_disp_chan_child_get
_nv50_disp_chan_child_get:              ; @nv50_disp_chan_child_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_nv50_disp_chan
	mov	x8, x0
	ldr	x9, [x0, #8]
	ldr	x0, [x9]
	str	xzr, [sp, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _NVKM_ENGINE_DMAOBJ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_ENGINE_DMAOBJ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nvkm_device_engine
	str	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	w0, #0
Lloh3:
	adrp	x9, _nv50_disp_chan_child_new@GOTPAGE
Lloh4:
	ldr	x9, [x9, _nv50_disp_chan_child_new@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x19, #8]
	str	x8, [x19]
	b	LBB0_7
LBB0_5:
	str	xzr, [x19, #16]
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_ENGINE_DMAOBJ,4,2         ; @NVKM_ENGINE_DMAOBJ
	.comm	_nv50_disp_chan_child_new,4,2   ; @nv50_disp_chan_child_new
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nv50_disp_chan_child_get
.subsections_via_symbols
