	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qxl_send_monitors_config
_qxl_send_monitors_config:              ## @qxl_send_monitors_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_BUG_ON
	movq	(%rbx), %rcx
	movl	(%rcx), %eax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	movq	8(%rcx), %rcx
	addq	$12, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-12(%rcx), %r9d
	cmpl	$8192, %r9d                     ## imm = 0x2000
	jg	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$8192, -8(%rcx)                 ## imm = 0x2000
	jg	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$8192, -4(%rcx)                 ## imm = 0x2000
	jg	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$8193, (%rcx)                   ## imm = 0x2001
	jge	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	addq	$16, %rcx
	cmpq	%rsi, %rax
	jne	LBB0_3
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_qxl_io_monitors_config         ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	movl	-8(%rcx), %r8d
	movl	-4(%rcx), %edx
	movl	(%rcx), %ecx
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"head %d wrong: %dx%d+%d+%d\n"

	.no_dead_strip	_qxl_send_monitors_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_send_monitors_config
_qxl_send_monitors_config:              ; @qxl_send_monitors_config
	.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, #8]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x9, [x19]
	ldr	w8, [x9]
	cbz	w8, LBB0_9
; %bb.1:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x1, #0
	ldr	x9, [x9, #8]
	add	x9, x9, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w5, [x9, #-8]
	cmp	w5, #2, lsl #12                 ; =8192
	b.gt	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	w10, [x9, #-4]
	cmp	w10, #2, lsl #12                ; =8192
	b.gt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x9]
	cmp	w10, #2, lsl #12                ; =8192
	b.gt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x9, #4]
	cmp	w10, #2, lsl #12                ; =8192
	b.gt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x1, #1
	add	x9, x9, #16
	cmp	x8, x1
	b.ne	LBB0_3
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qxl_io_monitors_config
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldp	w2, w3, [x9]
	ldur	w4, [x9, #-4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_ERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"head %d wrong: %dx%d+%d+%d\n"

	.no_dead_strip	_qxl_send_monitors_config
.subsections_via_symbols
