	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_disp_ovly_ctor
_nv50_disp_ovly_ctor:                   ## @nv50_disp_ovly_ctor
	.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
	cmpl	$8, %r8d
	jb	LBB0_2
## %bb.1:
	movl	(%rcx), %r8d
	cmpl	$2, %r8d
	jl	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%r9, %r14
	movl	4(%rcx), %ecx
	addl	$3, %r8d
	leaq	-24(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$4, %r9d
	callq	_nv50_disp_dmac_create_
	movl	%eax, %ebx
	movq	-24(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r14)
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	movq	_nv50_disp_dmac_object_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-24(%rbp), %rdi
	callq	_nv_parent
	movl	%ebx, 4(%rax)
	movq	_nv50_disp_dmac_object_detach@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-24(%rbp), %rdi
	callq	_nv_parent
	movl	%ebx, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nv50_disp_dmac_object_attach,4,2 ## @nv50_disp_dmac_object_attach
	.comm	_nv50_disp_dmac_object_detach,4,2 ## @nv50_disp_dmac_object_detach
	.no_dead_strip	_nv50_disp_ovly_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_disp_ovly_ctor
_nv50_disp_ovly_ctor:                   ; @nv50_disp_ovly_ctor
	.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
	cmp	w4, #8
	b.lo	LBB0_2
; %bb.1:
	ldr	w8, [x3]
	cmp	w8, #2
	b.lt	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	mov	x19, x5
	ldr	w3, [x3, #4]
	add	w4, w8, #3
	add	x6, sp, #8
	mov	w5, #4
	bl	_nv50_disp_dmac_create_
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x19]
	cbnz	w20, LBB0_3
; %bb.5:
Lloh3:
	adrp	x8, _nv50_disp_dmac_object_attach@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nv50_disp_dmac_object_attach@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	ldr	x0, [sp, #8]
	bl	_nv_parent
	str	w19, [x0, #4]
Lloh6:
	adrp	x8, _nv50_disp_dmac_object_detach@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nv50_disp_dmac_object_detach@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	ldr	x0, [sp, #8]
	bl	_nv_parent
	str	w19, [x0]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nv50_disp_dmac_object_attach,4,2 ; @nv50_disp_dmac_object_attach
	.comm	_nv50_disp_dmac_object_detach,4,2 ; @nv50_disp_dmac_object_detach
	.no_dead_strip	_nv50_disp_ovly_ctor
.subsections_via_symbols
