	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_connector_get_edid
_radeon_connector_get_edid:             ## @radeon_connector_get_edid
	.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	8(%rdi), %rax
	movq	(%rax), %r14
	callq	_to_radeon_connector
	cmpq	$0, (%rax)
	jne	LBB0_28
## %bb.1:
	movq	%rax, %r15
	cmpq	$0, 40(%rax)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_radeon_router_select_ddc_port
LBB0_3:
	movq	%rbx, %rdi
	callq	_radeon_connector_encoder_get_dp_bridge_encoder_id
	movq	_ENCODER_OBJECT_ID_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	8(%r15), %rsi
	cmpq	$0, 8(%rsi)
	je	LBB0_6
## %bb.5:
	addq	$4, %rsi
	movq	%rbx, %rdi
	jmp	LBB0_19
LBB0_6:
	movq	(%rbx), %rax
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.7:
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.8:
	xorl	%eax, %eax
	callq	_vga_switcheroo_handler_flags
	movq	_VGA_SWITCHEROO_CAN_SWITCH_DDC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.9:
	movq	(%rbx), %rax
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.10:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.11:
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_drm_get_edid_switcheroo
	jmp	LBB0_20
LBB0_12:
	movq	8(%r15), %rsi
	movq	32(%r15), %rax
	movq	(%rax), %rax
	movq	_CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	_CONNECTOR_OBJECT_ID_eDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_14:
	cmpq	$0, 8(%rsi)
	je	LBB0_18
## %bb.15:
	movq	%r15, %rdi
	addq	$16, %rdi
	addq	$4, %rsi
	jmp	LBB0_19
LBB0_16:
	movq	8(%r15), %rsi
LBB0_17:
	testq	%rsi, %rsi
	je	LBB0_27
LBB0_18:
	movq	%r15, %rdi
	addq	$16, %rdi
LBB0_19:
	callq	_drm_get_edid
LBB0_20:
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_28
LBB0_21:
	movq	_RADEON_IS_PX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_23
## %bb.22:
	movq	_radeon_runtime_pm@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_28
LBB0_23:
	cmpq	$0, 8(%r14)
	je	LBB0_26
## %bb.24:
	movq	(%rbx), %rax
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_26
## %bb.25:
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
LBB0_26:
	movq	%r14, %rdi
	callq	_radeon_bios_get_hardcoded_edid
	movq	%rax, (%r15)
	jmp	LBB0_28
LBB0_27:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_21
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENCODER_OBJECT_ID_NONE,8,3     ## @ENCODER_OBJECT_ID_NONE
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,8,3 ## @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_DRM_MODE_CONNECTOR_eDP,8,3     ## @DRM_MODE_CONNECTOR_eDP
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,8,3 ## @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_CONNECTOR_OBJECT_ID_eDP,8,3    ## @CONNECTOR_OBJECT_ID_eDP
	.comm	_VGA_SWITCHEROO_CAN_SWITCH_DDC,4,2 ## @VGA_SWITCHEROO_CAN_SWITCH_DDC
	.comm	_DRM_MODE_CONNECTOR_LVDS,8,3    ## @DRM_MODE_CONNECTOR_LVDS
	.comm	_RADEON_IS_PX,4,2               ## @RADEON_IS_PX
	.comm	_radeon_runtime_pm,8,3          ## @radeon_runtime_pm
	.no_dead_strip	_radeon_connector_get_edid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_connector_get_edid
_radeon_connector_get_edid:             ; @radeon_connector_get_edid
	.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
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	bl	_to_radeon_connector
	ldr	x8, [x0]
	cbnz	x8, LBB0_24
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_radeon_router_select_ddc_port
LBB0_3:
	mov	x0, x21
	bl	_radeon_connector_encoder_get_dp_bridge_encoder_id
Lloh0:
	adrp	x8, _ENCODER_OBJECT_ID_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENCODER_OBJECT_ID_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_6
; %bb.5:
	add	x1, x8, #4
	mov	x0, x21
	b	LBB0_16
LBB0_6:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _CONNECTOR_OBJECT_ID_eDP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CONNECTOR_OBJECT_ID_eDP@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	x1, [x20, #8]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_22
; %bb.8:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_15
; %bb.9:
	add	x0, x20, #16
	add	x1, x1, #4
	b	LBB0_16
LBB0_10:
	bl	_vga_switcheroo_handler_flags
Lloh15:
	adrp	x8, _VGA_SWITCHEROO_CAN_SWITCH_DDC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VGA_SWITCHEROO_CAN_SWITCH_DDC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.11:
	ldr	x8, [x21]
Lloh18:
	adrp	x9, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_14
; %bb.13:
	add	x0, x20, #16
	bl	_drm_get_edid_switcheroo
	str	x0, [x20]
	cbnz	x0, LBB0_24
	b	LBB0_17
LBB0_14:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_23
LBB0_15:
	add	x0, x20, #16
LBB0_16:
	bl	_drm_get_edid
	str	x0, [x20]
	cbnz	x0, LBB0_24
LBB0_17:
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _RADEON_IS_PX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RADEON_IS_PX@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh24:
	adrp	x9, _radeon_runtime_pm@GOTPAGE
Lloh25:
	ldr	x9, [x9, _radeon_runtime_pm@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_24
; %bb.18:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_21
; %bb.19:
	ldr	x8, [x21]
Lloh27:
	adrp	x9, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.20:
Lloh30:
	adrp	x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
LBB0_21:
	mov	x0, x19
	bl	_radeon_bios_get_hardcoded_edid
	str	x0, [x20]
	b	LBB0_24
LBB0_22:
	cbnz	x1, LBB0_15
LBB0_23:
	ldr	x0, [x20]
	cbz	x0, LBB0_17
LBB0_24:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ENCODER_OBJECT_ID_NONE,8,3     ; @ENCODER_OBJECT_ID_NONE
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,8,3 ; @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_DRM_MODE_CONNECTOR_eDP,8,3     ; @DRM_MODE_CONNECTOR_eDP
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,8,3 ; @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_CONNECTOR_OBJECT_ID_eDP,8,3    ; @CONNECTOR_OBJECT_ID_eDP
	.comm	_VGA_SWITCHEROO_CAN_SWITCH_DDC,4,2 ; @VGA_SWITCHEROO_CAN_SWITCH_DDC
	.comm	_DRM_MODE_CONNECTOR_LVDS,8,3    ; @DRM_MODE_CONNECTOR_LVDS
	.comm	_RADEON_IS_PX,4,2               ; @RADEON_IS_PX
	.comm	_radeon_runtime_pm,8,3          ; @radeon_runtime_pm
	.no_dead_strip	_radeon_connector_get_edid
.subsections_via_symbols
