	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_disp_chan_child_new
_nv50_disp_chan_child_new:              ## @nv50_disp_chan_child_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_nv50_disp_chan
	movq	%rax, %r14
	movq	8(%rax), %r13
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	8(%rax), %r12
	movq	_nv50_disp_chan_child_func_@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_nvkm_oproxy_ctor
	movq	%r13, 16(%rbx)
	movq	%rbx, %rax
	addq	$12, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movl	8(%rbx), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	*(%rax)
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	sarq	$63, %rax
	andl	%ecx, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nv50_disp_chan_child_func_,4,2 ## @nv50_disp_chan_child_func_
	.no_dead_strip	_nv50_disp_chan_child_new
.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_new
_nv50_disp_chan_child_new:              ; @nv50_disp_chan_child_new
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_nv50_disp_chan
	mov	x20, x0
	ldr	x28, [x0, #8]
	ldr	x25, [x28]
	ldr	x27, [x19, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x26, x0, #8
Lloh3:
	adrp	x0, _nv50_disp_chan_child_func_@GOTPAGE
Lloh4:
	ldr	x0, [x0, _nv50_disp_chan_child_func_@GOTPAGEOFF]
	mov	x1, x19
	mov	x2, x26
	bl	_nvkm_oproxy_ctor
	str	x28, [x21, #16]
	add	x8, x21, #12
	str	x8, [x24]
	ldr	x8, [x27]
	mov	x0, x25
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x21, #8]
	ldr	w2, [x19]
	mov	x0, x20
	blr	x8
	str	x0, [x21]
	cmp	x0, #0
	csel	x0, x0, xzr, lt
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nv50_disp_chan_child_func_,4,2 ; @nv50_disp_chan_child_func_
	.no_dead_strip	_nv50_disp_chan_child_new
.subsections_via_symbols
