	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_io_create_primary          ## -- Begin function qxl_io_create_primary
	.p2align	4, 0x90
_qxl_io_create_primary:                 ## @qxl_io_create_primary
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DRM_DEBUG_DRIVER
	movq	8(%rbx), %r15
	movups	16(%r14), %xmm0
	movups	%xmm0, 16(%r15)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_qxl_bo_physical_address
	movq	%rax, 8(%r15)
	movq	8(%r14), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_DRM_DEBUG_DRIVER
	movq	_QXL_SURF_FLAG_KEEP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_QXL_SURF_TYPE_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_QXL_IO_CREATE_PRIMARY_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wait_for_io_cmd
	movq	%r14, (%rbx)
	movl	$1, (%r14)
	addq	$4, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_gem_object_get             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qdev %p, ram_header %p\n"

L_.str.1:                               ## @.str.1
	.asciz	"mem = %llx, from %p\n"

	.comm	_QXL_SURF_FLAG_KEEP_DATA,4,2    ## @QXL_SURF_FLAG_KEEP_DATA
	.comm	_QXL_SURF_TYPE_PRIMARY,4,2      ## @QXL_SURF_TYPE_PRIMARY
	.comm	_QXL_IO_CREATE_PRIMARY_ASYNC,4,2 ## @QXL_IO_CREATE_PRIMARY_ASYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_io_create_primary          ; -- Begin function qxl_io_create_primary
	.p2align	2
_qxl_io_create_primary:                 ; @qxl_io_create_primary
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x2, [x20, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_DRIVER
	ldr	x21, [x20, #8]
	ldr	q0, [x19, #16]
	str	q0, [x21, #16]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_qxl_bo_physical_address
	mov	x1, x0
	str	x0, [x21, #8]
	ldr	x2, [x19, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
Lloh4:
	adrp	x8, _QXL_SURF_FLAG_KEEP_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QXL_SURF_FLAG_KEEP_DATA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _QXL_SURF_TYPE_PRIMARY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QXL_SURF_TYPE_PRIMARY@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
Lloh10:
	adrp	x8, _QXL_IO_CREATE_PRIMARY_ASYNC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QXL_IO_CREATE_PRIMARY_ASYNC@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_wait_for_io_cmd
	str	x19, [x20]
	mov	w8, #1
	str	w8, [x19]
	add	x0, x19, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_drm_gem_object_get
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qdev %p, ram_header %p\n"

l_.str.1:                               ; @.str.1
	.asciz	"mem = %llx, from %p\n"

	.comm	_QXL_SURF_FLAG_KEEP_DATA,4,2    ; @QXL_SURF_FLAG_KEEP_DATA
	.comm	_QXL_SURF_TYPE_PRIMARY,4,2      ; @QXL_SURF_TYPE_PRIMARY
	.comm	_QXL_IO_CREATE_PRIMARY_ASYNC,4,2 ; @QXL_IO_CREATE_PRIMARY_ASYNC
.subsections_via_symbols
