	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_get_legacy_connector_info_from_bios ## -- Begin function radeon_get_legacy_connector_info_from_bios
	.p2align	4, 0x90
_radeon_get_legacy_connector_info_from_bios: ## @radeon_get_legacy_connector_info_from_bios
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	_COMBIOS_CONNECTOR_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_combios_get_table_offset
	testl	%eax, %eax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_41
## %bb.1:
	movl	%eax, %ebx
	addl	$2, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_radeon_get_encoder_enum
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_radeon_add_legacy_encoder
	movq	_legacy_connector_convert@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-52(%rbp), %ecx
	movl	(%rax,%rcx,4), %ecx
	movq	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D@GOTPCREL(%rip), %rax
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %r9d
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %r8
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_radeon_add_legacy_connector
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_40:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	addl	$2, %ebx
	cmpl	$4, %r13d
	je	LBB0_47
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_RBIOS16
	testl	%eax, %eax
	je	LBB0_47
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_RBIOS16
	movl	%eax, %r12d
	shrl	$12, %eax
	andl	$15, %eax
	movl	%eax, -52(%rbp)
	movl	%r12d, %esi
	shrl	$8, %esi
	andl	$15, %esi
	movq	%r14, %rdi
	cmpl	$5, %esi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_radeon_combios_get_i2c_info_from_table
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -48(%rbp)
	movl	-52(%rbp), %eax
	movl	$-131, %ecx
	addl	%ecx, %eax
	cmpl	$2, %eax
	ja	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$16, %r12b
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADEON_HPD_1@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADEON_HPD_2@GOTPCREL(%rip), %rax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-64(%rbp), %r8
	callq	_radeon_apply_legacy_quirks
	testl	%eax, %eax
	je	LBB0_40
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %esi
	leal	-130(%rsi), %eax
	cmpl	$5, %eax
	ja	LBB0_39
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_38:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_TV1_SUPPORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_radeon_get_encoder_enum
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_add_legacy_encoder
	movl	(%r12), %edx
	movq	_legacy_connector_convert@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-52(%rbp), %ecx
	movl	(%rax,%rcx,4), %ecx
	movq	_CONNECTOR_OBJECT_ID_SVIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	-48(%rbp), %r8
	callq	_radeon_add_legacy_connector
	jmp	LBB0_40
LBB0_39:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DRM_ERROR
	jmp	LBB0_40
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_DFP2_SUPPORT@GOTPCREL(%rip), %rax
	testb	$16, %r12b
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_DFP1_SUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r12b
	jne	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_CRT1_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_radeon_get_encoder_enum
	movl	%eax, %esi
	movq	_ATOM_DEVICE_CRT1_SUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_34:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$16, %r12b
	jne	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_DFP1_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_37
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r12b
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_CRT1_SUPPORT@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	jmp	LBB0_20
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_CRT2_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$2, %edx
	callq	_radeon_get_encoder_enum
	movl	%eax, %esi
	movq	_ATOM_DEVICE_CRT2_SUPPORT@GOTPCREL(%rip), %rax
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_radeon_add_legacy_encoder
	movq	(%r15), %rax
	cmpl	$20825, (%rax)                  ## imm = 0x5159
	jne	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$4116, 4(%rax)                  ## imm = 0x1014
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$666, 8(%rax)                   ## imm = 0x29A
	movl	$0, %eax
	cmovel	%eax, %r12d
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$16, %r12b
	jne	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_DFP1_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_radeon_get_encoder_enum
	movq	_ATOM_DEVICE_DFP1_SUPPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_add_legacy_encoder
	movq	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	jmp	LBB0_33
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_DFP2_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_combios_check_dl_dvi
	movl	%eax, %r12d
LBB0_37:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_radeon_get_encoder_enum
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_radeon_add_legacy_encoder
	movq	_legacy_connector_convert@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-52(%rbp), %ecx
	movl	(%rax,%rcx,4), %ecx
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	leaq	-48(%rbp), %r8
	movl	%r12d, %r9d
	jmp	LBB0_23
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_CRT2_SUPPORT@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$2, %edx
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_radeon_get_encoder_enum
	movl	%eax, %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_radeon_add_legacy_encoder
	movq	_legacy_connector_convert@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-52(%rbp), %ecx
	movl	(%rax,%rcx,4), %ecx
	movq	_CONNECTOR_OBJECT_ID_VGA@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOM_DEVICE_DFP2_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_radeon_get_encoder_enum
	movq	_ATOM_DEVICE_DFP2_SUPPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_add_legacy_encoder
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_combios_check_dl_dvi
	movl	%eax, %r9d
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%r14d, %r12d
	movq	_legacy_connector_convert@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-52(%rbp), %ecx
	movl	(%rax,%rcx,4), %ecx
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	jmp	LBB0_22
LBB0_41:
	movq	_COMBIOS_DFP_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_combios_get_table_offset
	testl	%eax, %eax
	je	LBB0_43
## %bb.42:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_ATOM_DEVICE_CRT1_SUPPORT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_radeon_get_encoder_enum
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_add_legacy_encoder
	movq	_ATOM_DEVICE_DFP1_SUPPORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_radeon_get_encoder_enum
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_add_legacy_encoder
	movq	_DDC_DVI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movl	%eax, -48(%rbp)
	movq	_RADEON_HPD_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	(%r12), %edx
	orl	(%r14), %edx
	movq	%rbx, %r14
	movq	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %rcx
	jmp	LBB0_46
LBB0_43:
	movq	_COMBIOS_CRT_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_combios_get_table_offset
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	testl	%ebx, %ebx
	je	LBB0_44
## %bb.45:
	movq	_ATOM_DEVICE_CRT1_SUPPORT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_radeon_get_encoder_enum
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_add_legacy_encoder
	movq	_DDC_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movl	%eax, -48(%rbp)
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	(%rbx), %edx
	movq	_CONNECTOR_OBJECT_ID_VGA@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_CONNECTOR_VGA@GOTPCREL(%rip), %rcx
LBB0_46:
	movl	(%rcx), %ecx
	movl	(%rax), %r9d
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_radeon_add_legacy_connector
LBB0_47:
	movl	(%r14), %eax
	movq	_RADEON_IS_MOBILITY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_49
## %bb.48:
	movq	_RADEON_IS_IGP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_54
LBB0_49:
	movq	_COMBIOS_LCD_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_combios_get_table_offset
	testl	%eax, %eax
	je	LBB0_54
## %bb.50:
	movq	_COMBIOS_LCD_DDC_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_combios_get_table_offset
	movl	%eax, %ebx
	movq	_ATOM_DEVICE_LCD1_SUPPORT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_radeon_get_encoder_enum
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_add_legacy_encoder
	testl	%ebx, %ebx
	je	LBB0_52
## %bb.51:
	addl	$2, %ebx
	movl	%ebx, %edi
	callq	_RBIOS8
	movsbl	%al, %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movl	%eax, -48(%rbp)
	leaq	L_.str.5(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_53
LBB0_52:
	movl	$0, -48(%rbp)
LBB0_53:
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	(%r14), %edx
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CONNECTOR_OBJECT_ID_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_radeon_add_legacy_connector
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_54:
	movq	8(%r14), %rax
	movq	_CHIP_R100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_60
## %bb.55:
	movq	_CHIP_R200@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_60
## %bb.56:
	movq	_COMBIOS_TV_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_combios_get_table_offset
	testl	%eax, %eax
	je	LBB0_60
## %bb.57:
	addl	$6, %eax
	movl	%eax, %edi
	callq	_RBIOS8
	cmpb	$84, %al
	jne	LBB0_60
## %bb.58:
	movq	%r15, %rdi
	callq	_radeon_apply_legacy_tv_quirks
	testq	%rax, %rax
	je	LBB0_60
## %bb.59:
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	$0, -48(%rbp)
	movq	_ATOM_DEVICE_TV1_SUPPORT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_radeon_get_encoder_enum
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_add_legacy_encoder
	movl	(%rbx), %edx
	movq	_DRM_MODE_CONNECTOR_SVIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CONNECTOR_OBJECT_ID_SVIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_radeon_add_legacy_connector
LBB0_60:
	movq	%r15, %rdi
	callq	_radeon_link_encoder_connector
	movl	$1, %eax
LBB0_61:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
	jmp	LBB0_61
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_38
	.long	L0_0_set_14
	.long	L0_0_set_24
	.long	L0_0_set_34
	.long	L0_0_set_38
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_COMBIOS_CONNECTOR_INFO_TABLE,4,2 ## @COMBIOS_CONNECTOR_INFO_TABLE
	.comm	_RADEON_HPD_2,8,3               ## @RADEON_HPD_2
	.comm	_RADEON_HPD_1,8,3               ## @RADEON_HPD_1
	.comm	_RADEON_HPD_NONE,8,3            ## @RADEON_HPD_NONE
	.comm	_ATOM_DEVICE_DFP2_SUPPORT,4,2   ## @ATOM_DEVICE_DFP2_SUPPORT
	.comm	_ATOM_DEVICE_DFP1_SUPPORT,4,2   ## @ATOM_DEVICE_DFP1_SUPPORT
	.comm	_legacy_connector_convert,8,3   ## @legacy_connector_convert
	.comm	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D,4,2 ## @CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D
	.comm	_ATOM_DEVICE_CRT2_SUPPORT,4,2   ## @ATOM_DEVICE_CRT2_SUPPORT
	.comm	_ATOM_DEVICE_CRT1_SUPPORT,4,2   ## @ATOM_DEVICE_CRT1_SUPPORT
	.comm	_CONNECTOR_OBJECT_ID_VGA,4,2    ## @CONNECTOR_OBJECT_ID_VGA
	.comm	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I,4,2 ## @CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I
	.comm	_ATOM_DEVICE_TV1_SUPPORT,4,2    ## @ATOM_DEVICE_TV1_SUPPORT
	.comm	_CONNECTOR_OBJECT_ID_SVIDEO,4,2 ## @CONNECTOR_OBJECT_ID_SVIDEO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown connector type: %d\n"

	.comm	_COMBIOS_DFP_INFO_TABLE,4,2     ## @COMBIOS_DFP_INFO_TABLE
L_.str.1:                               ## @.str.1
	.asciz	"Found DFP table, assuming DVI connector\n"

	.comm	_DDC_DVI,4,2                    ## @DDC_DVI
	.comm	_DRM_MODE_CONNECTOR_DVII,4,2    ## @DRM_MODE_CONNECTOR_DVII
	.comm	_COMBIOS_CRT_INFO_TABLE,4,2     ## @COMBIOS_CRT_INFO_TABLE
L_.str.2:                               ## @.str.2
	.asciz	"Found CRT table, assuming VGA connector\n"

	.comm	_DDC_VGA,4,2                    ## @DDC_VGA
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ## @DRM_MODE_CONNECTOR_VGA
L_.str.3:                               ## @.str.3
	.asciz	"No connector info found\n"

	.comm	_RADEON_IS_MOBILITY,4,2         ## @RADEON_IS_MOBILITY
	.comm	_RADEON_IS_IGP,4,2              ## @RADEON_IS_IGP
	.comm	_COMBIOS_LCD_INFO_TABLE,4,2     ## @COMBIOS_LCD_INFO_TABLE
	.comm	_COMBIOS_LCD_DDC_INFO_TABLE,4,2 ## @COMBIOS_LCD_DDC_INFO_TABLE
	.comm	_ATOM_DEVICE_LCD1_SUPPORT,4,2   ## @ATOM_DEVICE_LCD1_SUPPORT
L_.str.5:                               ## @.str.5
	.asciz	"LCD DDC Info Table found!\n"

	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ## @DRM_MODE_CONNECTOR_LVDS
	.comm	_CONNECTOR_OBJECT_ID_LVDS,4,2   ## @CONNECTOR_OBJECT_ID_LVDS
	.comm	_CHIP_R100,8,3                  ## @CHIP_R100
	.comm	_CHIP_R200,8,3                  ## @CHIP_R200
	.comm	_COMBIOS_TV_INFO_TABLE,4,2      ## @COMBIOS_TV_INFO_TABLE
	.comm	_DRM_MODE_CONNECTOR_SVIDEO,4,2  ## @DRM_MODE_CONNECTOR_SVIDEO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_get_legacy_connector_info_from_bios ; -- Begin function radeon_get_legacy_connector_info_from_bios
	.p2align	2
_radeon_get_legacy_connector_info_from_bios: ; @radeon_get_legacy_connector_info_from_bios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _COMBIOS_CONNECTOR_INFO_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMBIOS_CONNECTOR_INFO_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_combios_get_table_offset
Lloh3:
	adrp	x26, _RADEON_HPD_NONE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _RADEON_HPD_NONE@GOTPAGEOFF]
	cbz	w0, LBB0_39
; %bb.1:
	mov	w21, #0
	add	w22, w0, #2
Lloh5:
	adrp	x23, _ATOM_DEVICE_TV1_SUPPORT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ATOM_DEVICE_TV1_SUPPORT@GOTPAGEOFF]
Lloh7:
	adrp	x27, _legacy_connector_convert@GOTPAGE
Lloh8:
	ldr	x27, [x27, _legacy_connector_convert@GOTPAGEOFF]
Lloh9:
	adrp	x28, lJTI0_0@PAGE
Lloh10:
	add	x28, x28, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	add	w22, w22, #2
	cmp	w21, #4
	b.eq	LBB0_44
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_RBIOS16
	cbz	w0, LBB0_44
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_RBIOS16
	mov	x24, x0
	ubfx	w8, w0, #12, #4
	str	w8, [sp, #28]
	ubfx	w1, w0, #8, #4
	mov	x0, x20
	cmp	w1, #5
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_radeon_combios_get_i2c_info_from_table
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [sp, #24]
	ldr	w8, [sp, #28]
	sub	w8, w8, #131
	cmp	w8, #2
	b.hi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w24, #4, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _RADEON_HPD_1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RADEON_HPD_1@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x8, _RADEON_HPD_2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RADEON_HPD_2@GOTPAGEOFF]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [sp, #16]
	add	x2, sp, #28
	add	x3, sp, #24
	add	x4, sp, #16
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_apply_legacy_quirks
	cbz	w0, LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #28]
	sub	w8, w1, #130
	cmp	w8, #5
	b.hi	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_17
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #2
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x19
	bl	_radeon_add_legacy_encoder
	ldr	w2, [x23]
	ldr	x8, [x27]
	ldr	w9, [sp, #28]
	ldr	w3, [x8, x9, lsl #2]
Lloh17:
	adrp	x8, _CONNECTOR_OBJECT_ID_SVIDEO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CONNECTOR_OBJECT_ID_SVIDEO@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
	b	LBB0_38
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	tst	w24, #0x10
Lloh20:
	adrp	x8, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGEOFF]
Lloh22:
	adrp	x9, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w24, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	mov	x0, x19
	mov	x2, x24
	bl	_radeon_add_legacy_encoder
	ldr	x8, [x27]
	ldr	w9, [sp, #28]
	ldr	w3, [x8, x9, lsl #2]
Lloh24:
	adrp	x8, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D@GOTPAGEOFF]
	b	LBB0_35
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w24, #0, LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh26:
	adrp	x25, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGE
Lloh27:
	ldr	x25, [x25, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	w2, #1
	b	LBB0_26
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w24, #4, LBB0_31
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh28:
	adrp	x8, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGEOFF]
Lloh30:
	ldr	w24, [x8]
Lloh31:
	adrp	x8, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPAGEOFF]
Lloh33:
	ldr	w25, [x8]
	b	LBB0_32
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w24, #0, LBB0_33
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh34:
	adrp	x25, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGE
Lloh35:
	ldr	x25, [x25, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGEOFF]
	ldr	w24, [x25]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #1
	b	LBB0_34
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh36:
	adrp	x25, _ATOM_DEVICE_CRT2_SUPPORT@GOTPAGE
Lloh37:
	ldr	x25, [x25, _ATOM_DEVICE_CRT2_SUPPORT@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	w2, #2
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	ldr	w2, [x25]
	mov	x0, x19
	bl	_radeon_add_legacy_encoder
	ldr	x8, [x19]
	ldr	w9, [x8]
	mov	w10, #20825
	cmp	w9, w10
	b.ne	LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #4]
	mov	w10, #4116
	cmp	w9, w10
	b.ne	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8, #8]
	cmp	w8, #666
	csel	w24, wzr, w24, eq
LBB0_29:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w24, #4, LBB0_36
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh38:
	adrp	x25, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGE
Lloh39:
	ldr	x25, [x25, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGEOFF]
	ldr	w24, [x25]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	ldr	w2, [x25]
	mov	x0, x19
	bl	_radeon_add_legacy_encoder
Lloh40:
	adrp	x8, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPAGEOFF]
Lloh42:
	ldr	w5, [x8]
	b	LBB0_37
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh43:
	adrp	x8, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGEOFF]
Lloh45:
	ldr	w24, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_combios_check_dl_dvi
	mov	x25, x0
LBB0_32:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	mov	x0, x19
	mov	x2, x24
	bl	_radeon_add_legacy_encoder
	ldr	x8, [x27]
	ldr	w9, [sp, #28]
	ldr	w3, [x8, x9, lsl #2]
	add	x4, sp, #24
	add	x6, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	mov	x5, x25
	bl	_radeon_add_legacy_connector
	b	LBB0_3
LBB0_33:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh46:
	adrp	x25, _ATOM_DEVICE_CRT2_SUPPORT@GOTPAGE
Lloh47:
	ldr	x25, [x25, _ATOM_DEVICE_CRT2_SUPPORT@GOTPAGEOFF]
	ldr	w24, [x25]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #2
LBB0_34:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	ldr	w2, [x25]
	mov	x0, x19
	bl	_radeon_add_legacy_encoder
	ldr	x8, [x27]
	ldr	w9, [sp, #28]
	ldr	w3, [x8, x9, lsl #2]
Lloh48:
	adrp	x8, _CONNECTOR_OBJECT_ID_VGA@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CONNECTOR_OBJECT_ID_VGA@GOTPAGEOFF]
LBB0_35:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w5, [x8]
	add	x4, sp, #24
	add	x6, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_radeon_add_legacy_connector
	b	LBB0_3
LBB0_36:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh50:
	adrp	x25, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGE
Lloh51:
	ldr	x25, [x25, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGEOFF]
	ldr	w24, [x25]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	ldr	w2, [x25]
	mov	x0, x19
	bl	_radeon_add_legacy_encoder
	mov	x0, x19
	mov	w1, #0
	bl	_combios_check_dl_dvi
	mov	x5, x0
LBB0_37:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	orr	w2, w24, w8
	ldr	x8, [x27]
	ldr	w9, [sp, #28]
	ldr	w3, [x8, x9, lsl #2]
LBB0_38:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x4, sp, #24
	add	x6, sp, #16
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_add_legacy_connector
	b	LBB0_3
LBB0_39:
Lloh52:
	adrp	x8, _COMBIOS_DFP_INFO_TABLE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _COMBIOS_DFP_INFO_TABLE@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_combios_get_table_offset
	cbz	w0, LBB0_41
; %bb.40:
Lloh55:
	adrp	x0, l_.str.1@PAGE
Lloh56:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh57:
	adrp	x21, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGE
Lloh58:
	ldr	x21, [x21, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x19
	bl	_radeon_add_legacy_encoder
Lloh59:
	adrp	x22, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGE
Lloh60:
	ldr	x22, [x22, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_radeon_add_legacy_encoder
Lloh61:
	adrp	x8, _DDC_DVI@GOTPAGE
Lloh62:
	ldr	x8, [x8, _DDC_DVI@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	str	w0, [sp, #24]
Lloh64:
	adrp	x8, _RADEON_HPD_1@GOTPAGE
Lloh65:
	ldr	x8, [x8, _RADEON_HPD_1@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w2, w9, w8
Lloh67:
	adrp	x8, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPAGE
Lloh68:
	ldr	x8, [x8, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPAGEOFF]
Lloh69:
	adrp	x9, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh70:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
	b	LBB0_43
LBB0_41:
Lloh71:
	adrp	x8, _COMBIOS_CRT_INFO_TABLE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _COMBIOS_CRT_INFO_TABLE@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_combios_get_table_offset
	mov	x21, x0
Lloh74:
	adrp	x0, l_.str.2@PAGE
Lloh75:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	cbz	w21, LBB0_58
; %bb.42:
Lloh76:
	adrp	x21, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGE
Lloh77:
	ldr	x21, [x21, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x19
	bl	_radeon_add_legacy_encoder
Lloh78:
	adrp	x8, _DDC_VGA@GOTPAGE
Lloh79:
	ldr	x8, [x8, _DDC_VGA@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	str	w0, [sp, #24]
	ldr	x8, [x26]
	str	x8, [sp, #16]
	ldr	w2, [x21]
Lloh81:
	adrp	x8, _CONNECTOR_OBJECT_ID_VGA@GOTPAGE
Lloh82:
	ldr	x8, [x8, _CONNECTOR_OBJECT_ID_VGA@GOTPAGEOFF]
Lloh83:
	adrp	x9, _DRM_MODE_CONNECTOR_VGA@GOTPAGE
Lloh84:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_VGA@GOTPAGEOFF]
LBB0_43:
	ldr	w3, [x9]
	ldr	w5, [x8]
	add	x4, sp, #24
	add	x6, sp, #16
	mov	x0, x19
	mov	w1, #0
	bl	_radeon_add_legacy_connector
LBB0_44:
	ldr	w8, [x20]
Lloh85:
	adrp	x9, _RADEON_IS_MOBILITY@GOTPAGE
Lloh86:
	ldr	x9, [x9, _RADEON_IS_MOBILITY@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_46
; %bb.45:
Lloh88:
	adrp	x9, _RADEON_IS_IGP@GOTPAGE
Lloh89:
	ldr	x9, [x9, _RADEON_IS_IGP@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
LBB0_46:
Lloh91:
	adrp	x8, _COMBIOS_LCD_INFO_TABLE@GOTPAGE
Lloh92:
	ldr	x8, [x8, _COMBIOS_LCD_INFO_TABLE@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_combios_get_table_offset
	cbz	w0, LBB0_51
; %bb.47:
Lloh94:
	adrp	x8, _COMBIOS_LCD_DDC_INFO_TABLE@GOTPAGE
Lloh95:
	ldr	x8, [x8, _COMBIOS_LCD_DDC_INFO_TABLE@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_combios_get_table_offset
	mov	x21, x0
Lloh97:
	adrp	x22, _ATOM_DEVICE_LCD1_SUPPORT@GOTPAGE
Lloh98:
	ldr	x22, [x22, _ATOM_DEVICE_LCD1_SUPPORT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_radeon_add_legacy_encoder
	cbz	w21, LBB0_49
; %bb.48:
	add	w0, w21, #2
	bl	_RBIOS8
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	str	w0, [sp, #24]
Lloh99:
	adrp	x0, l_.str.5@PAGE
Lloh100:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_50
LBB0_49:
	str	wzr, [sp, #24]
LBB0_50:
	ldr	x8, [x26]
	str	x8, [sp, #16]
	ldr	w2, [x22]
Lloh101:
	adrp	x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh102:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh103:
	ldr	w3, [x8]
Lloh104:
	adrp	x8, _CONNECTOR_OBJECT_ID_LVDS@GOTPAGE
Lloh105:
	ldr	x8, [x8, _CONNECTOR_OBJECT_ID_LVDS@GOTPAGEOFF]
Lloh106:
	ldr	w5, [x8]
	add	x4, sp, #24
	add	x6, sp, #16
	mov	x0, x19
	mov	w1, #5
	bl	_radeon_add_legacy_connector
LBB0_51:
	ldr	x8, [x20, #8]
Lloh107:
	adrp	x9, _CHIP_R100@GOTPAGE
Lloh108:
	ldr	x9, [x9, _CHIP_R100@GOTPAGEOFF]
Lloh109:
	ldr	x9, [x9]
Lloh110:
	adrp	x10, _CHIP_R200@GOTPAGE
Lloh111:
	ldr	x10, [x10, _CHIP_R200@GOTPAGEOFF]
Lloh112:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_56
; %bb.52:
Lloh113:
	adrp	x8, _COMBIOS_TV_INFO_TABLE@GOTPAGE
Lloh114:
	ldr	x8, [x8, _COMBIOS_TV_INFO_TABLE@GOTPAGEOFF]
Lloh115:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_combios_get_table_offset
	cbz	w0, LBB0_56
; %bb.53:
	add	w0, w0, #6
	bl	_RBIOS8
	cmp	w0, #84
	b.ne	LBB0_56
; %bb.54:
	mov	x0, x19
	bl	_radeon_apply_legacy_tv_quirks
	cbz	x0, LBB0_56
; %bb.55:
	ldr	x8, [x26]
	str	x8, [sp, #16]
	str	wzr, [sp, #24]
Lloh116:
	adrp	x20, _ATOM_DEVICE_TV1_SUPPORT@GOTPAGE
Lloh117:
	ldr	x20, [x20, _ATOM_DEVICE_TV1_SUPPORT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #2
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x19
	bl	_radeon_add_legacy_encoder
	ldr	w2, [x20]
Lloh118:
	adrp	x8, _DRM_MODE_CONNECTOR_SVIDEO@GOTPAGE
Lloh119:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_SVIDEO@GOTPAGEOFF]
Lloh120:
	ldr	w3, [x8]
Lloh121:
	adrp	x8, _CONNECTOR_OBJECT_ID_SVIDEO@GOTPAGE
Lloh122:
	ldr	x8, [x8, _CONNECTOR_OBJECT_ID_SVIDEO@GOTPAGEOFF]
Lloh123:
	ldr	w5, [x8]
	add	x4, sp, #24
	add	x6, sp, #16
	mov	x0, x19
	mov	w1, #6
	bl	_radeon_add_legacy_connector
LBB0_56:
	mov	x0, x19
	bl	_radeon_link_encoder_connector
	mov	w0, #1
LBB0_57:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_58:
Lloh124:
	adrp	x0, l_.str.3@PAGE
Lloh125:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
	b	LBB0_57
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpAdd	Lloh124, Lloh125
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_18-LBB0_17)>>2
	.byte	(LBB0_19-LBB0_17)>>2
	.byte	(LBB0_21-LBB0_17)>>2
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_23-LBB0_17)>>2
                                        ; -- End function
	.comm	_COMBIOS_CONNECTOR_INFO_TABLE,4,2 ; @COMBIOS_CONNECTOR_INFO_TABLE
	.comm	_RADEON_HPD_2,8,3               ; @RADEON_HPD_2
	.comm	_RADEON_HPD_1,8,3               ; @RADEON_HPD_1
	.comm	_RADEON_HPD_NONE,8,3            ; @RADEON_HPD_NONE
	.comm	_ATOM_DEVICE_DFP2_SUPPORT,4,2   ; @ATOM_DEVICE_DFP2_SUPPORT
	.comm	_ATOM_DEVICE_DFP1_SUPPORT,4,2   ; @ATOM_DEVICE_DFP1_SUPPORT
	.comm	_legacy_connector_convert,8,3   ; @legacy_connector_convert
	.comm	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D,4,2 ; @CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D
	.comm	_ATOM_DEVICE_CRT2_SUPPORT,4,2   ; @ATOM_DEVICE_CRT2_SUPPORT
	.comm	_ATOM_DEVICE_CRT1_SUPPORT,4,2   ; @ATOM_DEVICE_CRT1_SUPPORT
	.comm	_CONNECTOR_OBJECT_ID_VGA,4,2    ; @CONNECTOR_OBJECT_ID_VGA
	.comm	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I,4,2 ; @CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I
	.comm	_ATOM_DEVICE_TV1_SUPPORT,4,2    ; @ATOM_DEVICE_TV1_SUPPORT
	.comm	_CONNECTOR_OBJECT_ID_SVIDEO,4,2 ; @CONNECTOR_OBJECT_ID_SVIDEO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown connector type: %d\n"

	.comm	_COMBIOS_DFP_INFO_TABLE,4,2     ; @COMBIOS_DFP_INFO_TABLE
l_.str.1:                               ; @.str.1
	.asciz	"Found DFP table, assuming DVI connector\n"

	.comm	_DDC_DVI,4,2                    ; @DDC_DVI
	.comm	_DRM_MODE_CONNECTOR_DVII,4,2    ; @DRM_MODE_CONNECTOR_DVII
	.comm	_COMBIOS_CRT_INFO_TABLE,4,2     ; @COMBIOS_CRT_INFO_TABLE
l_.str.2:                               ; @.str.2
	.asciz	"Found CRT table, assuming VGA connector\n"

	.comm	_DDC_VGA,4,2                    ; @DDC_VGA
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ; @DRM_MODE_CONNECTOR_VGA
l_.str.3:                               ; @.str.3
	.asciz	"No connector info found\n"

	.comm	_RADEON_IS_MOBILITY,4,2         ; @RADEON_IS_MOBILITY
	.comm	_RADEON_IS_IGP,4,2              ; @RADEON_IS_IGP
	.comm	_COMBIOS_LCD_INFO_TABLE,4,2     ; @COMBIOS_LCD_INFO_TABLE
	.comm	_COMBIOS_LCD_DDC_INFO_TABLE,4,2 ; @COMBIOS_LCD_DDC_INFO_TABLE
	.comm	_ATOM_DEVICE_LCD1_SUPPORT,4,2   ; @ATOM_DEVICE_LCD1_SUPPORT
l_.str.5:                               ; @.str.5
	.asciz	"LCD DDC Info Table found!\n"

	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ; @DRM_MODE_CONNECTOR_LVDS
	.comm	_CONNECTOR_OBJECT_ID_LVDS,4,2   ; @CONNECTOR_OBJECT_ID_LVDS
	.comm	_CHIP_R100,8,3                  ; @CHIP_R100
	.comm	_CHIP_R200,8,3                  ; @CHIP_R200
	.comm	_COMBIOS_TV_INFO_TABLE,4,2      ; @COMBIOS_TV_INFO_TABLE
	.comm	_DRM_MODE_CONNECTOR_SVIDEO,4,2  ; @DRM_MODE_CONNECTOR_SVIDEO
.subsections_via_symbols
