	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_display_dumb_create    ## -- Begin function nouveau_display_dumb_create
	.p2align	4, 0x90
_nouveau_display_dumb_create:           ## @nouveau_display_dumb_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_nouveau_cli
	movl	8(%rbx), %ecx
	leal	7(%rcx), %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	movq	%rax, %r15
	sarl	$3, %edi
	imull	4(%rbx), %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_roundup
	movl	%eax, (%rbx)
	imull	16(%rbx), %eax
	movl	%eax, 12(%rbx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_roundup
	movl	%eax, 12(%rbx)
	movq	%r12, %rdi
	callq	_nouveau_drm
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_NOUVEAU_GEM_DOMAIN_GART@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NOUVEAU_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movl	12(%rbx), %esi
	leaq	-40(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_nouveau_gem_new
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rsi
	addq	$20, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_drm_gem_handle_create
	movl	%eax, %r15d
	movq	-40(%rbp), %rdi
	callq	_drm_gem_object_put_unlocked
LBB0_5:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_NOUVEAU_GEM_DOMAIN_VRAM,4,2    ## @NOUVEAU_GEM_DOMAIN_VRAM
	.comm	_NOUVEAU_GEM_DOMAIN_GART,4,2    ## @NOUVEAU_GEM_DOMAIN_GART
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_display_dumb_create    ; -- Begin function nouveau_display_dumb_create
	.p2align	2
_nouveau_display_dumb_create:           ; @nouveau_display_dumb_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_nouveau_cli
	mov	x22, x0
	ldp	w8, w9, [x20, #4]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	mul	w0, w9, w8
	mov	w1, #256
	bl	_roundup
	str	w0, [x20]
	ldr	w8, [x20, #16]
	mul	w0, w8, w0
	str	w0, [x20, #12]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_roundup
	str	w0, [x20, #12]
	mov	x0, x21
	bl	_nouveau_drm
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _NOUVEAU_GEM_DOMAIN_GART@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NOUVEAU_GEM_DOMAIN_GART@GOTPAGEOFF]
Lloh5:
	adrp	x10, _NOUVEAU_GEM_DOMAIN_VRAM@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NOUVEAU_GEM_DOMAIN_VRAM@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w3, [x8]
	ldr	w1, [x20, #12]
	add	x6, sp, #8
	mov	x0, x22
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_nouveau_gem_new
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x1, [sp, #8]
	add	x2, x20, #20
	mov	x0, x19
	bl	_drm_gem_handle_create
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_drm_gem_object_put_unlocked
LBB0_2:
	mov	x0, x21
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_NOUVEAU_GEM_DOMAIN_VRAM,4,2    ; @NOUVEAU_GEM_DOMAIN_VRAM
	.comm	_NOUVEAU_GEM_DOMAIN_GART,4,2    ; @NOUVEAU_GEM_DOMAIN_GART
.subsections_via_symbols
