	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_mst_detect_port         ## -- Begin function drm_dp_mst_detect_port
	.p2align	4, 0x90
_drm_dp_mst_detect_port:                ## @drm_dp_mst_detect_port
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_connector_status_disconnected@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_drm_dp_mst_topology_get_port_validated
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpl	$0, 20(%rax)
	je	LBB0_10
## %bb.3:
	movl	(%rbx), %eax
	cmpl	$131, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.5:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	$8, 4(%rbx)
	jl	LBB0_10
## %bb.6:
	cmpl	$0, 16(%rbx)
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rsi
	addq	$12, %rsi
	movq	%r15, %rdi
	callq	_drm_get_edid
	movl	%eax, 16(%rbx)
	jmp	LBB0_10
LBB0_1:
	movl	(%r12), %r14d
	jmp	LBB0_11
LBB0_8:
	cmpl	$0, 8(%rbx)
	je	LBB0_10
## %bb.9:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:
	movq	%rbx, %rdi
	callq	_drm_dp_mst_topology_put_port
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_mst_detect_port         ; -- Begin function drm_dp_mst_detect_port
	.p2align	2
_drm_dp_mst_detect_port:                ; @drm_dp_mst_detect_port
	.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	x21, x0
Lloh0:
	adrp	x22, _connector_status_disconnected@GOTPAGE
Lloh1:
	ldr	x22, [x22, _connector_status_disconnected@GOTPAGEOFF]
	ldr	w19, [x22]
	mov	x0, x1
	mov	x1, x2
	bl	_drm_dp_mst_topology_get_port_validated
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_9
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #131
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.4:
Lloh2:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh3:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	ldr	w8, [x20, #4]
	cmp	w8, #8
	b.lt	LBB0_9
; %bb.5:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_9
; %bb.6:
	add	x1, x20, #12
	mov	x0, x21
	bl	_drm_get_edid
	str	w0, [x20, #16]
	b	LBB0_9
LBB0_7:
	ldr	w19, [x22]
	b	LBB0_10
LBB0_8:
	ldr	w8, [x20, #8]
Lloh5:
	adrp	x9, _connector_status_connected@GOTPAGE
Lloh6:
	ldr	x9, [x9, _connector_status_connected@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w19, w19, w9, eq
LBB0_9:
	mov	x0, x20
	bl	_drm_dp_mst_topology_put_port
LBB0_10:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
.subsections_via_symbols
