	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function qxl_conn_get_modes
LCPI0_0:
	.long	1024                            ## 0x400
	.long	768                             ## 0x300
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_qxl_conn_get_modes:                    ## @qxl_conn_get_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	callq	_drm_connector_to_qxl_output
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %xmm1            ## xmm1 = mem[0],zero
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	blendvps	%xmm0, LCPI0_0(%rip), %xmm1
	movaps	%xmm1, -48(%rbp)                ## 16-byte Spill
	jmp	LBB0_3
LBB0_1:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <1024,768,u,u>
	movdqa	%xmm0, -48(%rbp)                ## 16-byte Spill
LBB0_3:
	movq	%r15, %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_drm_add_modes_noedid
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_qxl_add_extra_modes
	movq	%rax, %rbx
	addl	%r14d, %ebx
	movq	%r15, %rdi
	callq	_qxl_add_monitors_config_modes
	movq	%rax, %r14
	addl	%ebx, %r14d
	movdqa	-48(%rbp), %xmm0                ## 16-byte Reload
	movd	%xmm0, %esi
	pextrd	$1, %xmm0, %edx
	movq	%r15, %rdi
	callq	_drm_set_preferred_mode
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qxl_conn_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_conn_get_modes
_qxl_conn_get_modes:                    ; @qxl_conn_get_modes
	.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
	ldr	x8, [x0]
	ldr	x20, [x8]
	bl	_drm_connector_to_qxl_output
	ldr	x8, [x20]
	mov	w21, #1024
	mov	w20, #768
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	x9, [x0]
	add	x8, x8, x9, lsl #3
	ldp	w9, w8, [x8]
	cmp	w9, #0
	csel	w21, w21, w9, eq
	cmp	w8, #0
	csel	w20, w20, w8, eq
LBB0_2:
	mov	x0, x19
	mov	w1, #8192
	mov	w2, #8192
	bl	_drm_add_modes_noedid
	mov	x22, x0
	mov	x0, x19
	bl	_qxl_add_extra_modes
	add	w22, w0, w22
	mov	x0, x19
	bl	_qxl_add_monitors_config_modes
	add	w22, w22, w0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_drm_set_preferred_mode
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qxl_conn_get_modes
.subsections_via_symbols
