	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qxl_conn_detect
_qxl_conn_detect:                       ## @qxl_conn_detect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_drm_connector_to_qxl_output
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rsi
	cmpq	%rsi, (%rax)
	jbe	LBB0_3
## %bb.4:
	shlq	$2, %rsi
	addq	8(%rax), %rsi
	movq	%rsi, %rdi
	callq	_qxl_head_enabled
	testq	%rax, %rax
	setne	%al
	movq	(%r14), %rsi
	jmp	LBB0_5
LBB0_1:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	sete	%al
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movzbl	%al, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	callq	_DRM_DEBUG
	testb	%bl, %bl
	je	LBB0_6
## %bb.7:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#%d connected: %d\n"

	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.no_dead_strip	_qxl_conn_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_conn_detect
_qxl_conn_detect:                       ; @qxl_conn_detect
	.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	x20, x0
	bl	_drm_connector_to_qxl_output
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x8]
	ldr	x1, [x19]
	cmp	x9, x1
	b.ls	LBB0_4
; %bb.2:
	ldr	x8, [x8, #8]
	add	x0, x8, x1, lsl #2
	bl	_qxl_head_enabled
	cmp	x0, #0
	cset	w20, ne
	ldr	x1, [x19]
	b	LBB0_5
LBB0_3:
	ldr	x1, [x19]
	cmp	x1, #0
	cset	w20, eq
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEBUG
Lloh2:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh3:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh4:
	adrp	x9, _connector_status_disconnected@GOTPAGE
Lloh5:
	ldr	x9, [x9, _connector_status_disconnected@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, ne
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#%d connected: %d\n"

	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.no_dead_strip	_qxl_conn_detect
.subsections_via_symbols
