	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_du_connector_detect        ## -- Begin function vmw_du_connector_detect
	.p2align	4, 0x90
_vmw_du_connector_detect:               ## @vmw_du_connector_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_vmw_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_vmw_connector_to_du
	movq	%rax, %r14
	movq	_SVGA_REG_NUM_DISPLAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vmw_read
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_vmw_connector_to_du
	cmpq	%r15, (%rax)
	jge	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.2:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA_REG_NUM_DISPLAYS,4,2      ## @SVGA_REG_NUM_DISPLAYS
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_du_connector_detect        ; -- Begin function vmw_du_connector_detect
	.p2align	2
_vmw_du_connector_detect:               ; @vmw_du_connector_detect
	.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	x20, x0
	ldr	x0, [x0]
	bl	_vmw_priv
	mov	x21, x0
	mov	x0, x20
	bl	_vmw_connector_to_du
	mov	x19, x0
Lloh0:
	adrp	x8, _SVGA_REG_NUM_DISPLAYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVGA_REG_NUM_DISPLAYS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_vmw_read
	mov	x21, x0
	mov	x0, x20
	bl	_vmw_connector_to_du
	ldr	x8, [x0]
	cmp	x8, x21
	b.ge	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh4:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh6:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA_REG_NUM_DISPLAYS,4,2      ; @SVGA_REG_NUM_DISPLAYS
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
.subsections_via_symbols
