	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_user_framebuffer_create ## -- Begin function nouveau_user_framebuffer_create
	.p2align	4, 0x90
_nouveau_user_framebuffer_create:       ## @nouveau_user_framebuffer_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rax
	movq	%rdi, %r15
	movq	(%rdx), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_nouveau_gem_object
	leaq	-32(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_nouveau_framebuffer_new
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_drm_gem_object_put_unlocked
	movl	%r14d, %edi
	callq	_ERR_PTR
	jmp	LBB0_4
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movq	-32(%rbp), %rax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_user_framebuffer_create ; -- Begin function nouveau_user_framebuffer_create
	.p2align	2
_nouveau_user_framebuffer_create:       ; @nouveau_user_framebuffer_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x8, x1
	mov	x21, x0
	ldr	x9, [x2]
	ldr	w1, [x9]
	mov	x0, x8
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_nouveau_gem_object
	mov	x2, x0
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_nouveau_framebuffer_new
	cbz	w0, LBB0_4
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	bl	_drm_gem_object_put_unlocked
	mov	x0, x19
	bl	_ERR_PTR
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ERR_PTR
LBB0_4:
	ldr	x0, [sp, #8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
