	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_gem_object_create          ## -- Begin function qxl_gem_object_create
	.p2align	4, 0x90
_qxl_gem_object_create:                 ## @qxl_gem_object_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %eax
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	24(%rbp), %rcx
	movq	16(%rbp), %r9
	movq	$0, (%rcx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edx, %ecx
	cmovgl	%ecx, %ebx
	leaq	-48(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_qxl_bo_create
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_DRM_ERROR
	jmp	LBB0_4
LBB0_3:
	movq	-48(%rbp), %rax
	addq	$4, %rax
	movq	24(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rdi
	leaq	4(%r14), %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate GEM object (%d, %d, %u, %d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_gem_object_create          ; -- Begin function qxl_gem_object_create
	.p2align	2
_qxl_gem_object_create:                 ; @qxl_gem_object_create
	.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, x7
	mov	x8, x6
	mov	x21, x3
	mov	x22, x1
	mov	x20, x0
	str	xzr, [x7]
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w2
	csel	w24, w9, w2, gt
	add	x6, sp, #8
	mov	x2, x5
	mov	w3, #0
	mov	x4, x21
	mov	x5, x8
	bl	_qxl_bo_create
	mov	x19, x0
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w19, w8
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	mov	x3, x24
	mov	x4, x19
	bl	_DRM_ERROR
	b	LBB0_4
LBB0_3:
	ldr	x8, [sp, #8]
	add	x8, x8, #4
	str	x8, [x23]
	mov	x0, x20
	bl	_mutex_lock
	ldr	x0, [sp, #8]
	add	x1, x20, #4
	bl	_list_add_tail
	mov	x0, x20
	bl	_mutex_unlock
LBB0_4:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate GEM object (%d, %d, %u, %d)\n"

.subsections_via_symbols
