	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qxl_add_monitors_config_modes
_qxl_add_monitors_config_modes:         ## @qxl_add_monitors_config_modes
	.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
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	callq	_drm_connector_to_qxl_output
	cmpl	$0, 8(%rbx)
	je	LBB0_4
## %bb.1:
	movl	(%rax), %esi
	movq	_qxl_num_crtc@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jge	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpl	(%rax), %esi
	jge	LBB0_4
## %bb.5:
	movslq	%esi, %r15
	movq	8(%rax), %rbx
	movl	(%rbx,%r15,8), %ecx
	movl	4(%rbx,%r15,8), %edx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	(%rbx,%r15,8), %edx
	movl	4(%rbx,%r15,8), %esi
	movq	%r14, %rdi
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qxl_add_mode                   ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qxl_num_crtc,4,2               ## @qxl_num_crtc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"head %d is %dx%d\n"

	.no_dead_strip	_qxl_add_monitors_config_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_add_monitors_config_modes
_qxl_add_monitors_config_modes:         ; @qxl_add_monitors_config_modes
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	bl	_drm_connector_to_qxl_output
	ldr	w9, [x0]
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x10, _qxl_num_crtc@GOTPAGE
Lloh1:
	ldr	x10, [x10, _qxl_num_crtc@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, #0
	ccmp	w9, w10, #0, ne
	b.ge	LBB0_4
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	sxtw	x1, w9
	ldr	w9, [x8]
	cmp	w1, w9
	b.ge	LBB0_4
; %bb.3:
	ldr	x8, [x8, #8]
	add	x20, x8, x1, lsl #3
	ldp	w3, w2, [x20]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DRM_DEBUG_KMS
	ldp	w2, w1, [x20]
	mov	x0, x19
	mov	w3, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qxl_add_mode
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_qxl_num_crtc,4,2               ; @qxl_num_crtc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"head %d is %dx%d\n"

	.no_dead_strip	_qxl_add_monitors_config_modes
.subsections_via_symbols
