	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_mode_dumb_create        ## -- Begin function radeon_mode_dumb_create
	.p2align	4, 0x90
_radeon_mode_dumb_create:               ## @radeon_mode_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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %r12
	movl	4(%rdx), %edx
	movl	20(%rbx), %esi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_radeon_align_pitch
	movl	4(%rbx), %edi
	leal	1(%rdi), %ecx
	addl	$8, %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	sarl	$3, %edi
	imull	%eax, %edi
	movl	%edi, (%rbx)
	imull	12(%rbx), %edi
	movl	%edi, 8(%rbx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ALIGN
	movl	%eax, 8(%rbx)
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_ttm_bo_type_device@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	leaq	-48(%rbp), %rdx
	movq	%rdx, (%rsp)
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_radeon_gem_object_create
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_2:
	movq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_drm_gem_handle_create
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi
	callq	_drm_gem_object_unreference_unlocked
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:
	movl	-36(%rbp), %eax
	movl	%eax, 16(%rbx)
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_RADEON_GEM_DOMAIN_VRAM,4,2     ## @RADEON_GEM_DOMAIN_VRAM
	.comm	_ttm_bo_type_device,4,2         ## @ttm_bo_type_device
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_mode_dumb_create        ; -- Begin function radeon_mode_dumb_create
	.p2align	2
_radeon_mode_dumb_create:               ; @radeon_mode_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	x19, x2
	mov	x20, x0
	ldr	x21, [x1]
	ldr	w1, [x2, #20]
	ldr	w2, [x2, #4]
	mov	x0, x21
	mov	w3, #0
	bl	_radeon_align_pitch
	ldr	w8, [x19, #4]
	add	w9, w8, #1
	add	w10, w8, #8
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w8, w8, #3
	mul	w8, w8, w0
	str	w8, [x19]
	ldr	w9, [x19, #12]
	mul	w0, w8, w9
	str	w0, [x19, #8]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x1, x0
	str	w0, [x19, #8]
Lloh3:
	adrp	x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _ttm_bo_type_device@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ttm_bo_type_device@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	add	x6, sp, #8
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	bl	_radeon_gem_object_create
	cbz	w0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_2:
	ldr	x1, [sp, #8]
	add	x2, sp, #4
	mov	x0, x20
	bl	_drm_gem_handle_create
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_drm_gem_object_unreference_unlocked
	cbnz	w20, LBB0_4
; %bb.3:
	ldr	w8, [sp, #4]
	str	w8, [x19, #16]
LBB0_4:
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_RADEON_GEM_DOMAIN_VRAM,4,2     ; @RADEON_GEM_DOMAIN_VRAM
	.comm	_ttm_bo_type_device,4,2         ; @ttm_bo_type_device
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
