	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_dp_mode_valid
_radeon_dp_mode_valid:                  ## @radeon_dp_mode_valid
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_radeon_connector
	movq	(%rbx), %rcx
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.11:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.12:
	movq	_CONNECTOR_OBJECT_ID_eDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
LBB0_13:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movq	%rbx, %rdi
	callq	_radeon_best_single_encoder
	cmpl	$320, (%r14)                    ## imm = 0x140
	jl	LBB0_4
## %bb.3:
	cmpl	$239, 4(%r14)
	jle	LBB0_4
## %bb.5:
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %rdi
	callq	_to_radeon_encoder
	movl	(%r14), %ecx
	movl	8(%rax), %edx
	cmpl	%edx, %ecx
	jg	LBB0_4
## %bb.7:
	movl	4(%r14), %esi
	movl	12(%rax), %edi
	cmpl	%edi, %esi
	jle	LBB0_8
LBB0_4:
	movq	_MODE_PANEL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_16:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_radeon_dp_mode_valid_helper    ## TAILCALL
LBB0_8:
	movq	(%rax), %rax
	movq	_RMX_OFF@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_13
## %bb.9:
	movq	_MODE_PANEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, %ecx
	jne	LBB0_15
## %bb.10:
	cmpl	%edi, %esi
	je	LBB0_13
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_CONNECTOR_eDP,8,3     ## @DRM_MODE_CONNECTOR_eDP
	.comm	_DRM_MODE_CONNECTOR_LVDS,8,3    ## @DRM_MODE_CONNECTOR_LVDS
	.comm	_MODE_PANEL,4,2                 ## @MODE_PANEL
	.comm	_RMX_OFF,8,3                    ## @RMX_OFF
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,8,3 ## @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_CONNECTOR_OBJECT_ID_eDP,8,3    ## @CONNECTOR_OBJECT_ID_eDP
	.no_dead_strip	_radeon_dp_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_dp_mode_valid
_radeon_dp_mode_valid:                  ; @radeon_dp_mode_valid
	.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	x19, x1
	mov	x20, x0
	bl	_to_radeon_connector
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_radeon_best_single_encoder
	ldr	w8, [x19]
	cmp	w8, #320
	b.lt	LBB0_6
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w8, #239
	b.le	LBB0_6
; %bb.3:
	cbz	x0, LBB0_12
; %bb.4:
	bl	_to_radeon_encoder
	ldr	w8, [x19]
	ldr	w9, [x0, #8]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.5:
	ldr	w10, [x19, #4]
	ldr	w11, [x0, #12]
	cmp	w10, w11
	b.le	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _MODE_PANEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MODE_PANEL@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _CONNECTOR_OBJECT_ID_eDP@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CONNECTOR_OBJECT_ID_eDP@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_12
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_radeon_dp_mode_valid_helper
LBB0_9:
	ldr	x12, [x0]
Lloh14:
	adrp	x13, _RMX_OFF@GOTPAGE
Lloh15:
	ldr	x13, [x13, _RMX_OFF@GOTPAGEOFF]
Lloh16:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_12
; %bb.10:
Lloh17:
	adrp	x12, _MODE_PANEL@GOTPAGE
Lloh18:
	ldr	x12, [x12, _MODE_PANEL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x12]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.11:
	cmp	w10, w11
	b.ne	LBB0_14
LBB0_12:
Lloh20:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_CONNECTOR_eDP,8,3     ; @DRM_MODE_CONNECTOR_eDP
	.comm	_DRM_MODE_CONNECTOR_LVDS,8,3    ; @DRM_MODE_CONNECTOR_LVDS
	.comm	_MODE_PANEL,4,2                 ; @MODE_PANEL
	.comm	_RMX_OFF,8,3                    ; @RMX_OFF
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,8,3 ; @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_CONNECTOR_OBJECT_ID_eDP,8,3    ; @CONNECTOR_OBJECT_ID_eDP
	.no_dead_strip	_radeon_dp_mode_valid
.subsections_via_symbols
