	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_disp_class_new
_nvkm_disp_class_new:                   ## @nvkm_disp_class_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	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	8(%rsi), %r15
	movl	(%rsi), %edi
	callq	_nvkm_disp
	movq	%rax, %r12
	movq	_nvkm_disp_class@GOTPCREL(%rip), %rdi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_nvkm_oproxy_new_
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %rax
	addq	$4, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%r12)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	-48(%rbp), %rax
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %r8
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvkm_disp_class,4,2            ## @nvkm_disp_class
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_nvkm_disp_class_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_disp_class_new
_nvkm_disp_class_new:                   ; @nvkm_disp_class_new
	.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	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x24, [x1, #8]
	ldr	w0, [x1]
	bl	_nvkm_disp
	mov	x22, x0
Lloh0:
	adrp	x0, _nvkm_disp_class@GOTPAGE
Lloh1:
	ldr	x0, [x0, _nvkm_disp_class@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x1, x21
	bl	_nvkm_oproxy_new_
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	add	x8, x8, #4
	str	x8, [x23]
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_mutex_unlock
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	ldr	x8, [sp, #8]
	str	x8, [x22, #8]
	mov	x0, x22
	bl	_mutex_unlock
	ldr	x8, [x24]
	ldr	x4, [sp, #8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_nvkm_disp_class,4,2            ; @nvkm_disp_class
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_nvkm_disp_class_new
.subsections_via_symbols
