	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_disp_data_ctor
_nv50_disp_data_ctor:                   ## @nv50_disp_data_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	%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
	movq	%r9, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_nv_mclass
	movq	_NV_DEVICE_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_nv_subdev
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_nv_engine
	movq	%rax, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_NVOBJ_FLAG_HEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-48(%rbp), %r10
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	movl	$65536, %r8d                    ## imm = 0x10000
	movl	$65536, %r9d                    ## imm = 0x10000
	pushq	%r10
	pushq	%rax
	callq	_nouveau_engctx_create
	addq	$16, %rsp
	movl	%eax, %r12d
	movq	-48(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r14)
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %rdi
	callq	_atomic_inc
	movq	%rbx, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_3:
	negl	%r12d
LBB0_5:
	movq	%r15, %rdi
	callq	_nv_subdev
	movq	%rax, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NV_DEVICE_CLASS,8,3            ## @NV_DEVICE_CLASS
	.comm	_NVOBJ_FLAG_HEAP,4,2            ## @NVOBJ_FLAG_HEAP
	.no_dead_strip	_nv50_disp_data_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_data_ctor
_nv50_disp_data_ctor:                   ; @nv50_disp_data_ctor
	.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	x20, x5
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_nv_mclass
Lloh3:
	adrp	x8, _NV_DEVICE_CLASS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV_DEVICE_CLASS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_nv_subdev
	bl	_mutex_lock
	mov	x0, x19
	bl	_nv_engine
	bl	_list_empty
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _NVOBJ_FLAG_HEAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVOBJ_FLAG_HEAP@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
	add	x7, sp, #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, #0
	mov	w4, #65536
	mov	w5, #65536
	bl	_nouveau_engctx_create
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x20]
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_atomic_inc
	mov	w22, #0
	str	x21, [x20]
	b	LBB0_6
LBB0_4:
	neg	w22, w23
LBB0_5:
	mov	x0, x19
	bl	_nv_subdev
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NV_DEVICE_CLASS,8,3            ; @NV_DEVICE_CLASS
	.comm	_NVOBJ_FLAG_HEAP,4,2            ; @NVOBJ_FLAG_HEAP
	.no_dead_strip	_nv50_disp_data_ctor
.subsections_via_symbols
