	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_dig_monitor_is_duallink ## -- Begin function radeon_dig_monitor_is_duallink
	.p2align	4, 0x90
_radeon_dig_monitor_is_duallink:        ## @radeon_dig_monitor_is_duallink
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %r15
	callq	_radeon_get_connector_for_encoder
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_radeon_get_connector_for_encoder_init
	movq	%rax, %rbx
LBB0_2:
	movq	%rbx, %rdi
	callq	_to_radeon_connector
	movq	%rax, %r12
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.3:
	movl	$22, %ecx
	btl	%eax, %ecx
	jae	LBB0_6
## %bb.4:
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movq	_CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_14
## %bb.5:
	movq	_CONNECTOR_OBJECT_ID_eDP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_7
	jmp	LBB0_14
LBB0_6:
	cmpl	$0, 16(%r12)
	je	LBB0_13
LBB0_7:
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE6
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	(%r12), %edi
	callq	_drm_detect_hdmi_monitor
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	cmpl	$340001, %r14d                  ## imm = 0x53021
	jmp	LBB0_11
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_10:
	cmpl	$165001, %r14d                  ## imm = 0x28489
LBB0_11:
	setge	%al
LBB0_14:
	movzbl	%al, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,4,2 ## @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_CONNECTOR_OBJECT_ID_eDP,4,2    ## @CONNECTOR_OBJECT_ID_eDP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_dig_monitor_is_duallink ; -- Begin function radeon_dig_monitor_is_duallink
	.p2align	2
_radeon_dig_monitor_is_duallink:        ; @radeon_dig_monitor_is_duallink
	.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, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	bl	_radeon_get_connector_for_encoder
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_radeon_get_connector_for_encoder_init
	mov	x22, x0
LBB0_2:
	mov	x0, x22
	bl	_to_radeon_connector
	ldr	w8, [x22]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.3:
	mov	x21, x0
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #22
	tst	w8, w9
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _CONNECTOR_OBJECT_ID_eDP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CONNECTOR_OBJECT_ID_eDP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_12
LBB0_6:
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_5
LBB0_7:
	mov	x0, x20
	bl	_ASIC_IS_DCE6
	cbz	w0, LBB0_10
; %bb.8:
	ldr	w0, [x21]
	bl	_drm_detect_hdmi_monitor
	cbz	w0, LBB0_10
; %bb.9:
	mov	w8, #12320
	movk	w8, #5, lsl #16
	b	LBB0_11
LBB0_10:
	mov	w8, #33928
	movk	w8, #2, lsl #16
LBB0_11:
	cmp	w19, w8
	cset	w0, gt
LBB0_12:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,4,2 ; @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_CONNECTOR_OBJECT_ID_eDP,4,2    ; @CONNECTOR_OBJECT_ID_eDP
.subsections_via_symbols
