	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_ttm_init                   ## -- Begin function qxl_ttm_init
	.p2align	4, 0x90
_qxl_ttm_init:                          ## @qxl_ttm_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	16(%rdi), %r12
	movq	32(%rdi), %rax
	movl	(%rax), %edx
	movq	_qxl_bo_driver@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ttm_bo_device_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_7
LBB0_2:
	movq	24(%r14), %rax
	movl	(%rax), %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	xorl	%edx, %edx
	divl	(%r13)
	movl	%eax, %r15d
	movq	_TTM_PL_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_ttm_bo_init_mm
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_7
LBB0_4:
	movq	_TTM_PL_PRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %eax
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	divl	(%r13)
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ttm_bo_init_mm
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movl	%r12d, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	8(%r14), %esi
	shrl	$20, %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_INFO
	imull	(%r13), %r15d
	shrl	$20, %r15d
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_INFO
	movl	(%r14), %esi
	shrl	$20, %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_DRM_INFO
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qxl_bo_driver,4,2              ## @qxl_bo_driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed initializing buffer object driver(%d).\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_TTM_PL_VRAM,4,2                ## @TTM_PL_VRAM
L_.str.1:                               ## @.str.1
	.asciz	"Failed initializing VRAM heap.\n"

	.comm	_TTM_PL_PRIV,4,2                ## @TTM_PL_PRIV
L_.str.2:                               ## @.str.2
	.asciz	"Failed initializing Surfaces heap.\n"

L_.str.3:                               ## @.str.3
	.asciz	"qxl: %uM of VRAM memory size\n"

L_.str.4:                               ## @.str.4
	.asciz	"qxl: %luM of IO pages memory ready (VRAM domain)\n"

L_.str.5:                               ## @.str.5
	.asciz	"qxl: %uM of Surface memory size\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_ttm_init                   ; -- Begin function qxl_ttm_init
	.p2align	2
_qxl_ttm_init:                          ; @qxl_ttm_init
	.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	x19, x0
	add	x21, x0, #16
	ldr	x8, [x0, #32]
	ldr	w2, [x8]
Lloh0:
	adrp	x1, _qxl_bo_driver@GOTPAGE
Lloh1:
	ldr	x1, [x1, _qxl_bo_driver@GOTPAGEOFF]
	mov	x0, x21
	mov	w3, #0
	bl	_ttm_bo_device_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	str	x20, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19, #24]
Lloh4:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x8]
	ldr	w9, [x23]
	udiv	w22, w8, w9
Lloh6:
	adrp	x8, _TTM_PL_VRAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TTM_PL_VRAM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_ttm_bo_init_mm
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x8, _TTM_PL_PRIV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TTM_PL_PRIV@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w8, [x19]
	ldr	w9, [x23]
	udiv	w2, w8, w9
	mov	x0, x21
	bl	_ttm_bo_init_mm
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.5:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19, #8]
	lsr	w1, w8, #20
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_INFO
	ldr	w8, [x23]
	mul	w8, w8, w22
	lsr	w1, w8, #20
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_INFO
	ldr	w8, [x19]
	lsr	w1, w8, #20
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_INFO
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_qxl_bo_driver,4,2              ; @qxl_bo_driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed initializing buffer object driver(%d).\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_TTM_PL_VRAM,4,2                ; @TTM_PL_VRAM
l_.str.1:                               ; @.str.1
	.asciz	"Failed initializing VRAM heap.\n"

	.comm	_TTM_PL_PRIV,4,2                ; @TTM_PL_PRIV
l_.str.2:                               ; @.str.2
	.asciz	"Failed initializing Surfaces heap.\n"

l_.str.3:                               ; @.str.3
	.asciz	"qxl: %uM of VRAM memory size\n"

l_.str.4:                               ; @.str.4
	.asciz	"qxl: %luM of IO pages memory ready (VRAM domain)\n"

l_.str.5:                               ; @.str.5
	.asciz	"qxl: %uM of Surface memory size\n"

.subsections_via_symbols
