	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_modeset_init               ## -- Begin function qxl_modeset_init
	.p2align	4, 0x90
_qxl_modeset_init:                      ## @qxl_modeset_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_drm_mode_config_init
	movq	%r14, %rdi
	callq	_qxl_create_monitors_object
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_qxl_mode_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movabsq	$35184372097024, %rax           ## imm = 0x200000002000
	movq	%rax, (%r14)
	movl	40(%r14), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_drm_mode_create_suggested_offset_properties
	movq	%r14, %rdi
	callq	_qxl_mode_create_hotplug_mode_update_property
	movq	_qxl_num_crtc@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_qdev_crtc_init
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_qdev_output_init
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	callq	_qxl_display_read_client_monitors_config
	movq	%r14, %rdi
	callq	_drm_mode_config_reset
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qxl_mode_funcs,4,2             ## @qxl_mode_funcs
	.comm	_qxl_num_crtc,4,2               ## @qxl_num_crtc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_modeset_init               ; -- Begin function qxl_modeset_init
	.p2align	2
_qxl_modeset_init:                      ; @qxl_modeset_init
	.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, x0
	bl	_drm_mode_config_init
	mov	x0, x19
	bl	_qxl_create_monitors_object
	cbnz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _qxl_mode_funcs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qxl_mode_funcs@GOTPAGEOFF]
	stp	xzr, x8, [x19, #24]
	str	xzr, [x19, #16]
	movi.2s	v0, #32, lsl #8
	str	d0, [x19]
	ldr	w8, [x19, #40]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_drm_mode_create_suggested_offset_properties
	mov	x0, x19
	bl	_qxl_mode_create_hotplug_mode_update_property
Lloh2:
	adrp	x21, _qxl_num_crtc@GOTPAGE
Lloh3:
	ldr	x21, [x21, _qxl_num_crtc@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_qdev_crtc_init
	mov	x0, x19
	mov	x1, x20
	bl	_qdev_output_init
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_qxl_display_read_client_monitors_config
	mov	x0, x19
	bl	_drm_mode_config_reset
	mov	w0, #0
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_qxl_mode_funcs,4,2             ; @qxl_mode_funcs
	.comm	_qxl_num_crtc,4,2               ; @qxl_num_crtc
.subsections_via_symbols
