	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_alloc_bo_reserved          ## -- Begin function qxl_alloc_bo_reserved
	.p2align	4, 0x90
_qxl_alloc_bo_reserved:                 ## @qxl_alloc_bo_reserved
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	_QXL_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-32(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rdx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_qxl_bo_create
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_5
LBB0_2:
	movq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qxl_release_list_add
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	-32(%rbp), %rdi
	callq	_qxl_bo_unref
	jmp	LBB0_5
LBB0_3:
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QXL_GEM_DOMAIN_VRAM,4,2        ## @QXL_GEM_DOMAIN_VRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate VRAM BO\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_alloc_bo_reserved          ; -- Begin function qxl_alloc_bo_reserved
	.p2align	2
_qxl_alloc_bo_reserved:                 ; @qxl_alloc_bo_reserved
	.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, x3
	mov	x21, x1
Lloh0:
	adrp	x8, _QXL_GEM_DOMAIN_VRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QXL_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x6, sp, #8
	mov	x1, x2
	mov	w2, #0
	mov	w3, #0
	mov	x5, #0
	bl	_qxl_bo_create
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_5
LBB0_2:
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_qxl_release_list_add
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	add	x0, sp, #8
	bl	_qxl_bo_unref
	b	LBB0_5
LBB0_4:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_QXL_GEM_DOMAIN_VRAM,4,2        ; @QXL_GEM_DOMAIN_VRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate VRAM BO\n"

.subsections_via_symbols
