	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_bo_create                  ## -- Begin function qxl_bo_create
	.p2align	4, 0x90
_qxl_bo_create:                         ## @qxl_bo_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rbp), %rcx
	testl	%edx, %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_ttm_bo_type_device@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ttm_bo_type_kernel@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	$0, (%rcx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_roundup
	movq	%rax, %r14
	leaq	8(%r13), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_drm_gem_object_init
	movq	%r15, %r12
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%r13)
	xorl	%eax, %eax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	setne	%al
	movl	%eax, (%r13)
	movq	$0, 24(%r13)
	leaq	16(%r13), %rdi
	callq	_INIT_LIST_HEAD
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
LBB0_9:
	xorl	%r15d, %r15d
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	sete	%r15b
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_qxl_ttm_placement_from_domain
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rdi
	movq	%r13, %r8
	addq	$4, %r8
	movq	_qxl_ttm_bo_destroy@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movq	%r14, 8(%rsp)
	movl	%r15d, (%rsp)
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_ttm_bo_init
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	16(%rbp), %rax
	je	LBB0_12
## %bb.10:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_13
## %bb.11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_dev_err
	jmp	LBB0_13
LBB0_12:
	movq	%r13, (%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ttm_bo_type_kernel,4,2         ## @ttm_bo_type_kernel
	.comm	_ttm_bo_type_device,4,2         ## @ttm_bo_type_device
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_qxl_ttm_bo_destroy,4,2         ## @qxl_ttm_bo_destroy
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"object_init failed for (%lu, 0x%08X)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_bo_create                  ; -- Begin function qxl_bo_create
	.p2align	2
_qxl_bo_create:                         ; @qxl_bo_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x6
	mov	x27, x5
	mov	x23, x4
	mov	x25, x3
	mov	x26, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ttm_bo_type_device@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ttm_bo_type_device@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ttm_bo_type_kernel@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ttm_bo_type_kernel@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x8, x9, eq
	ldr	w24, [x8]
	str	xzr, [x6]
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	str	w23, [sp, #28]                  ; 4-byte Folded Spill
Lloh7:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_roundup
	mov	x23, x0
	add	x19, x22, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_drm_gem_object_init
	mov	x28, x0
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x22
	bl	_kfree
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_4:
	mov	x0, x28
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	ldr	w28, [sp, #28]                  ; 4-byte Folded Reload
	str	w28, [x22, #32]
	cmp	w25, #0
	cset	w8, ne
	str	w8, [x22]
	str	xzr, [x22, #24]
	add	x0, x22, #16
	bl	_INIT_LIST_HEAD
	cbz	x27, LBB0_7
; %bb.6:
	ldr	w8, [x27]
	str	w8, [x22, #12]
LBB0_7:
	cmp	w26, #0
	cset	w26, eq
	mov	x0, x22
	mov	x1, x28
	mov	x2, x25
	bl	_qxl_ttm_placement_from_domain
	add	x0, x20, #4
	add	x4, x22, #4
	stp	xzr, xzr, [sp]
Lloh13:
	adrp	x8, _qxl_ttm_bo_destroy@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qxl_ttm_bo_destroy@GOTPAGEOFF]
	str	x8, [sp, #16]
	mov	x1, x19
	mov	x2, x23
	mov	x3, x24
	mov	w5, #0
	mov	x6, x26
	mov	x7, x23
	bl	_ttm_bo_init
	mov	x28, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.8:
Lloh15:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmn	w28, w8
	b.eq	LBB0_4
; %bb.9:
	ldr	w0, [x20]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	ldr	w3, [sp, #28]                   ; 4-byte Folded Reload
	bl	_dev_err
	b	LBB0_4
LBB0_10:
	mov	w28, #0
	str	x22, [x21]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ttm_bo_type_kernel,4,2         ; @ttm_bo_type_kernel
	.comm	_ttm_bo_type_device,4,2         ; @ttm_bo_type_device
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_qxl_ttm_bo_destroy,4,2         ; @qxl_ttm_bo_destroy
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"object_init failed for (%lu, 0x%08X)\n"

.subsections_via_symbols
