	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_connector_get_edid
_amdgpu_connector_get_edid:             ## @amdgpu_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_amdgpu_connector
	cmpq	$0, (%rax)
	jne	LBB0_19
## %bb.1:
	movq	%rax, %r15
	cmpq	$0, 24(%rax)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_amdgpu_i2c_router_select_ddc_port
LBB0_3:
	movq	%rbx, %rdi
	callq	_amdgpu_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)
	jne	LBB0_5
LBB0_6:
	movq	(%rbx), %rax
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.11:
	movq	8(%r15), %rsi
	jmp	LBB0_12
LBB0_8:
	movq	8(%r15), %rsi
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	_CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	_CONNECTOR_OBJECT_ID_eDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
LBB0_12:
	testq	%rsi, %rsi
	jne	LBB0_13
## %bb.14:
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_16
LBB0_10:
	cmpq	$0, 8(%rsi)
	je	LBB0_13
LBB0_5:
	addq	$4, %rsi
LBB0_13:
	movq	%rbx, %rdi
	callq	_drm_get_edid
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_19
LBB0_16:
	movq	(%rbx), %rax
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
LBB0_18:
	movq	%r14, %rdi
	callq	_amdgpu_connector_get_hardcoded_edid
	movq	%rax, (%r15)
LBB0_19:
	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	_DRM_MODE_CONNECTOR_LVDS,8,3    ## @DRM_MODE_CONNECTOR_LVDS
	.no_dead_strip	_amdgpu_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 amdgpu_connector_get_edid
_amdgpu_connector_get_edid:             ; @amdgpu_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_amdgpu_connector
	ldr	x8, [x0]
	cbnz	x8, LBB0_16
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_amdgpu_i2c_router_select_ddc_port
LBB0_3:
	mov	x0, x21
	bl	_amdgpu_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]
Lloh3:
	adrp	x22, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
	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
	b	LBB0_11
LBB0_6:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.7:
	ldp	x1, x8, [x20, #8]
	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_14
; %bb.8:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_11
; %bb.9:
	add	x1, x1, #4
	b	LBB0_11
LBB0_10:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_15
LBB0_11:
	mov	x0, x21
	bl	_drm_get_edid
	str	x0, [x20]
	cbnz	x0, LBB0_16
LBB0_12:
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_16
; %bb.13:
	mov	x0, x19
	bl	_amdgpu_connector_get_hardcoded_edid
	str	x0, [x20]
	b	LBB0_16
LBB0_14:
	cbnz	x1, LBB0_11
LBB0_15:
	ldr	x0, [x20]
	cbz	x0, LBB0_12
LBB0_16:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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	_DRM_MODE_CONNECTOR_LVDS,8,3    ; @DRM_MODE_CONNECTOR_LVDS
	.no_dead_strip	_amdgpu_connector_get_edid
.subsections_via_symbols
