	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_get_atom_connector_info_from_supported_devices_table ## -- Begin function radeon_get_atom_connector_info_from_supported_devices_table
	.p2align	4, 0x90
_radeon_get_atom_connector_info_from_supported_devices_table: ## @radeon_get_atom_connector_info_from_supported_devices_table
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SupportedDevicesInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r12d
	movq	_ATOM_MAX_SUPPORTED_DEVICE@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %rdi
	movq	$0, -136(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-140(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	leaq	-72(%rbp), %r8
	leaq	-76(%rbp), %r9
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_atom_parse_data_header
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movslq	(%r15), %rax
	movslq	-76(%rbp), %rdx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	8(%rdx,%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	cmpl	$2, -60(%rbp)
	jge	LBB0_6
## %bb.5:
	movq	_ATOM_MAX_SUPPORTED_DEVICE_INFO@GOTPCREL(%rip), %rbx
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_60
## %bb.7:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	leaq	(,%r14,8), %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	$16, %r12d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_35:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_36:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	addq	$40, %rbx
	addq	$24, %r12
	cmpq	%rbx, -128(%rbp)                ## 8-byte Folded Reload
	je	LBB0_37
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx), %rcx
	movl	-16(%rcx,%r12), %esi
	movq	-8(%rcx,%r12), %rax
	movl	(%rcx,%r12), %edx
	movl	$0, (%rdi,%rbx)
	movl	$1, %r15d
	movl	%r13d, %ecx
	shll	%cl, %r15d
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	btl	%r13d, %ecx
	jae	LBB0_36
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_ATOM_DEVICE_CV_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rcx, %r13
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_supported_devices_connector_convert@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 32(%rdi,%rbx)
	movq	_DRM_MODE_CONNECTOR_Unknown@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_36
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%esi, 4(%rdi,%rbx)
	movq	_ATOM_DEVICE_TV1_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r13
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, 24(%rdi,%rbx)
	movl	$50, 4(%rdi,%rbx)
	cmpl	$2, -72(%rbp)
	jge	LBB0_20
	jmp	LBB0_25
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_ATOM_DEVICE_TV2_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r13
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, 24(%rdi,%rbx)
	movl	$51, 4(%rdi,%rbx)
	cmpl	$2, -72(%rbp)
	jge	LBB0_20
	jmp	LBB0_25
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_ATOM_DEVICE_CV_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r13
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, 24(%rdi,%rbx)
	movl	$52, 4(%rdi,%rbx)
	cmpl	$2, -72(%rbp)
	jge	LBB0_20
	jmp	LBB0_25
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_radeon_lookup_i2c_gpio
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, 24(%rdi,%rbx)
	cmpl	$2, -72(%rbp)
	jl	LBB0_25
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$2, -60(%rbp)
	jl	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx), %rax
	movl	(%rax,%r13,4), %ecx
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	cmpl	$10, %ecx
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_RADEON_HPD_2@GOTPCREL(%rip), %rax
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$4, %ecx
	jne	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_RADEON_HPD_1@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_ATOM_DEVICE_DFP1_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RADEON_HPD_1@GOTPCREL(%rip), %rax
	cmpq	%rcx, %r13
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ATOM_DEVICE_DFP2_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	cmpq	%rcx, %r13
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_RADEON_HPD_2@GOTPCREL(%rip), %rax
LBB0_28:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rdi,%rbx), %rdx
	addq	$32, %rdx
	movq	(%rax), %rax
	movq	%rax, 16(%rdi,%rbx)
	movq	_ATOM_DEVICE_CRT1_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r13
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ATOM_DEVICE_CRT2_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r13
	jne	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_DRM_MODE_CONNECTOR_VGA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
LBB0_31:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rdi,%rbx), %r8
	addq	$4, %r8
	leaq	24(%rdi,%rbx), %rcx
	leaq	(%rdi,%rbx), %r9
	addq	$16, %r9
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_radeon_atom_apply_quirks
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, (%rdi,%rbx)
	movl	%r15d, 8(%rdi,%rbx)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_ASIC_IS_AVIVO
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	_radeon_r4xx_atom@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_radeon_get_encoder_enum
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	orq	-120(%rbp), %rcx                ## 8-byte Folded Reload
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_radeon_add_atom_encoder
	jmp	LBB0_35
LBB0_34:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_radeon_add_legacy_encoder
	jmp	LBB0_35
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_62
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_61
LBB0_37:
	leaq	24(%rdi), %r11
	xorl	%ecx, %ecx
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %r15
	movq	_ATOM_DEVICE_DFP_SUPPORT@GOTPCREL(%rip), %r10
	movq	_ATOM_DEVICE_CRT_SUPPORT@GOTPCREL(%rip), %r9
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_55:                                ##   in Loop: Header=BB0_38 Depth=1
	incq	%rcx
	cmpq	%r14, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_56
LBB0_38:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_40 Depth 2
	leaq	(%rcx,%rcx,4), %rax
	cmpl	$0, (%rdi,%rax,8)
	je	LBB0_55
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %rbx
	addq	$4, %rbx
	leaq	(%rdx,%rax,8), %r12
	addq	$24, %r12
	movq	%r11, %rax
	xorl	%esi, %esi
	jmp	LBB0_40
LBB0_44:                                ##   in Loop: Header=BB0_40 Depth=2
	movl	$53, (%rbx)
	movq	%r12, %rdi
LBB0_53:                                ##   in Loop: Header=BB0_40 Depth=2
	movl	$0, (%rdi)
LBB0_54:                                ##   in Loop: Header=BB0_40 Depth=2
	incq	%rsi
	addq	$40, %rax
	cmpq	%rsi, %r14
	je	LBB0_55
LBB0_40:                                ##   Parent Loop BB0_38 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, -24(%rax)
	je	LBB0_54
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=2
	cmpq	%rsi, %rcx
	je	LBB0_54
## %bb.42:                              ##   in Loop: Header=BB0_40 Depth=2
	movl	(%rbx), %edx
	cmpl	-20(%rax), %edx
	jne	LBB0_54
## %bb.43:                              ##   in Loop: Header=BB0_40 Depth=2
	movl	4(%rbx), %edx
	movl	(%r15), %edi
	testl	%edx, %edi
	jne	LBB0_44
## %bb.45:                              ##   in Loop: Header=BB0_40 Depth=2
	movl	-16(%rax), %r13d
	testl	%edi, %r13d
	je	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_40 Depth=2
	movl	$53, -20(%rax)
	movq	%rax, %rdi
	jmp	LBB0_53
LBB0_47:                                ##   in Loop: Header=BB0_40 Depth=2
	movl	(%r10), %edi
	testl	%edx, %edi
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_40 Depth=2
	testl	%r13d, (%r9)
	jne	LBB0_51
LBB0_49:                                ##   in Loop: Header=BB0_40 Depth=2
	testl	%r13d, %edi
	je	LBB0_54
## %bb.50:                              ##   in Loop: Header=BB0_40 Depth=2
	testl	%edx, (%r9)
	je	LBB0_54
LBB0_51:                                ##   in Loop: Header=BB0_40 Depth=2
	leaq	(%rsi,%rsi,4), %rdi
	leaq	(%r8,%rdi,8), %rdi
	orl	%edx, %r13d
	movl	%r13d, 4(%rbx)
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 28(%rbx)
	movl	(%r10), %edx
	testl	%edx, -16(%rax)
	je	LBB0_53
## %bb.52:                              ##   in Loop: Header=BB0_40 Depth=2
	movq	-8(%rax), %rdx
	movq	%rdx, 12(%rbx)
	jmp	LBB0_53
LBB0_56:
	movq	%rdi, %rbx
	addq	$16, %rbx
	leaq	-136(%rbp), %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_57
	.p2align	4, 0x90
LBB0_59:                                ##   in Loop: Header=BB0_57 Depth=1
	addq	$40, %rbx
	decq	%r14
	je	LBB0_60
LBB0_57:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -16(%rbx)
	je	LBB0_59
## %bb.58:                              ##   in Loop: Header=BB0_57 Depth=1
	movq	16(%rbx), %rsi
	movl	-8(%rbx), %edx
	movq	%r13, %rdi
	callq	_atombios_get_connector_object_id
                                        ## kill: def $eax killed $eax def $rax
	movl	-12(%rbx), %esi
	movl	-8(%rbx), %edx
	movq	16(%rbx), %rcx
	leaq	8(%rbx), %r8
	subq	$8, %rsp
	movq	%r13, %rdi
	xorl	%r9d, %r9d
	pushq	%r15
	pushq	%rbx
	pushq	%rax
	callq	_radeon_add_atom_connector
	addq	$32, %rsp
	jmp	LBB0_59
LBB0_60:
	movq	%r13, %rdi
	callq	_radeon_link_encoder_connector
	movl	$1, %r14d
LBB0_61:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_62:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_SupportedDevicesInfo,4,2       ## @SupportedDevicesInfo
	.comm	_ATOM_MAX_SUPPORTED_DEVICE,4,2  ## @ATOM_MAX_SUPPORTED_DEVICE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ATOM_MAX_SUPPORTED_DEVICE_INFO,4,2 ## @ATOM_MAX_SUPPORTED_DEVICE_INFO
	.comm	_ATOM_DEVICE_CV_INDEX,4,2       ## @ATOM_DEVICE_CV_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping Component Video\n"

	.comm	_supported_devices_connector_convert,8,3 ## @supported_devices_connector_convert
	.comm	_DRM_MODE_CONNECTOR_Unknown,8,3 ## @DRM_MODE_CONNECTOR_Unknown
	.comm	_ATOM_DEVICE_TV1_INDEX,4,2      ## @ATOM_DEVICE_TV1_INDEX
	.comm	_ATOM_DEVICE_TV2_INDEX,4,2      ## @ATOM_DEVICE_TV2_INDEX
	.comm	_RADEON_HPD_1,8,3               ## @RADEON_HPD_1
	.comm	_RADEON_HPD_2,8,3               ## @RADEON_HPD_2
	.comm	_RADEON_HPD_NONE,8,3            ## @RADEON_HPD_NONE
	.comm	_ATOM_DEVICE_DFP1_INDEX,4,2     ## @ATOM_DEVICE_DFP1_INDEX
	.comm	_ATOM_DEVICE_DFP2_INDEX,4,2     ## @ATOM_DEVICE_DFP2_INDEX
	.comm	_ATOM_DEVICE_CRT1_INDEX,4,2     ## @ATOM_DEVICE_CRT1_INDEX
	.comm	_ATOM_DEVICE_CRT2_INDEX,4,2     ## @ATOM_DEVICE_CRT2_INDEX
	.comm	_DRM_MODE_CONNECTOR_VGA,8,3     ## @DRM_MODE_CONNECTOR_VGA
	.comm	_radeon_r4xx_atom,8,3           ## @radeon_r4xx_atom
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ## @ATOM_DEVICE_LCD_SUPPORT
	.comm	_ATOM_DEVICE_DFP_SUPPORT,4,2    ## @ATOM_DEVICE_DFP_SUPPORT
	.comm	_ATOM_DEVICE_CRT_SUPPORT,4,2    ## @ATOM_DEVICE_CRT_SUPPORT
	.comm	_DRM_MODE_CONNECTOR_DVII,8,3    ## @DRM_MODE_CONNECTOR_DVII
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_get_atom_connector_info_from_supported_devices_table ; -- Begin function radeon_get_atom_connector_info_from_supported_devices_table
	.p2align	2
_radeon_get_atom_connector_info_from_supported_devices_table: ; @radeon_get_atom_connector_info_from_supported_devices_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x24, x0
	ldr	x8, [x0]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SupportedDevicesInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SupportedDevicesInfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x23, x0
Lloh6:
	adrp	x19, _ATOM_MAX_SUPPORTED_DEVICE@GOTPAGE
Lloh7:
	ldr	x19, [x19, _ATOM_MAX_SUPPORTED_DEVICE@GOTPAGEOFF]
	ldrsw	x8, [x19]
	add	x8, x8, x8, lsl #2
	lsl	x0, x8, #3
	str	xzr, [sp, #56]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_28
; %bb.1:
	mov	x20, x0
	add	x2, sp, #76
	add	x3, sp, #68
	add	x4, sp, #64
	add	x5, sp, #72
	mov	x0, x22
	mov	x1, x23
	bl	_atom_parse_data_header
	cbz	w0, LBB0_29
; %bb.2:
	ldrsw	x8, [x22]
	ldrsw	x9, [sp, #72]
	add	x8, x9, x8
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w0, [x8, #8]
	bl	_le16_to_cpu
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	ldr	w8, [sp, #68]
Lloh11:
	adrp	x9, _ATOM_MAX_SUPPORTED_DEVICE_INFO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ATOM_MAX_SUPPORTED_DEVICE_INFO@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x19, x9, gt
	ldr	w28, [x8]
	cmp	w28, #1
	b.lt	LBB0_52
; %bb.3:
	mov	x21, #0
	mov	x19, #0
	mov	x22, #0
	add	x8, x28, w28, uxtw #2
	lsl	x8, x8, #3
	stp	x24, x8, [sp, #24]              ; 16-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	add	x19, x19, #40
	add	x21, x21, #24
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x8, x19
	b.eq	LBB0_30
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x9, x8, x21
	ldr	w1, [x9]
	ldr	x8, [x9, #8]
	ldr	w25, [x9, #16]
	str	wzr, [x20, x19]
	mov	w9, #1
	lsl	w24, w9, w22
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	tst	w24, w9
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh15:
	adrp	x9, _ATOM_DEVICE_CV_INDEX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ATOM_DEVICE_CV_INDEX@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	x22, x9
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh18:
	adrp	x9, _supported_devices_connector_convert@GOTPAGE
Lloh19:
	ldr	x9, [x9, _supported_devices_connector_convert@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	add	x26, x20, x19
	mov	x27, x26
	str	x8, [x27, #32]!
Lloh21:
	adrp	x9, _DRM_MODE_CONNECTOR_Unknown@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_Unknown@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w1, [x26, #4]!
Lloh24:
	adrp	x8, _ATOM_DEVICE_TV1_INDEX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ATOM_DEVICE_TV1_INDEX@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	x22, x8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x20, x19
	str	wzr, [x8, #24]
	mov	w8, #50
	str	w8, [x26]
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh27:
	adrp	x8, _ATOM_DEVICE_TV2_INDEX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ATOM_DEVICE_TV2_INDEX@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	x22, x8
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x20, x19
	str	wzr, [x8, #24]
	mov	w8, #51
	str	w8, [x26]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh30:
	adrp	x8, _ATOM_DEVICE_CV_INDEX@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ATOM_DEVICE_CV_INDEX@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	x22, x8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x20, x19
	str	wzr, [x8, #24]
	mov	w8, #52
	str	w8, [x26]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_radeon_lookup_i2c_gpio
	add	x8, x20, x19
	str	w0, [x8, #24]
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #64]
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #68]
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w8, [x8, x22, lsl #2]
	cmp	w8, #10
Lloh33:
	adrp	x9, _RADEON_HPD_NONE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RADEON_HPD_NONE@GOTPAGEOFF]
Lloh35:
	adrp	x10, _RADEON_HPD_2@GOTPAGE
Lloh36:
	ldr	x10, [x10, _RADEON_HPD_2@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	cmp	w8, #4
Lloh37:
	adrp	x8, _RADEON_HPD_1@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RADEON_HPD_1@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh39:
	adrp	x8, _ATOM_DEVICE_DFP1_INDEX@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ATOM_DEVICE_DFP1_INDEX@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x8]
Lloh42:
	adrp	x8, _RADEON_HPD_1@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RADEON_HPD_1@GOTPAGEOFF]
	cmp	x22, x9
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh44:
	adrp	x8, _ATOM_DEVICE_DFP2_INDEX@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ATOM_DEVICE_DFP2_INDEX@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	x22, x8
Lloh47:
	adrp	x8, _RADEON_HPD_NONE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _RADEON_HPD_NONE@GOTPAGEOFF]
Lloh49:
	adrp	x9, _RADEON_HPD_2@GOTPAGE
Lloh50:
	ldr	x9, [x9, _RADEON_HPD_2@GOTPAGEOFF]
	csel	x8, x9, x8, eq
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8]
	add	x9, x20, x19
	str	x8, [x9, #16]
Lloh51:
	adrp	x8, _ATOM_DEVICE_CRT1_INDEX@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ATOM_DEVICE_CRT1_INDEX@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	cmp	x22, x8
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh54:
	adrp	x8, _ATOM_DEVICE_CRT2_INDEX@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ATOM_DEVICE_CRT2_INDEX@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	cmp	x22, x8
	b.ne	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh57:
	adrp	x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	str	x8, [x27]
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x20, x19
	add	x3, x23, #24
	add	x5, x23, #16
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x24
	mov	x2, x27
	mov	x4, x26
	bl	_radeon_atom_apply_quirks
	cbz	w0, LBB0_5
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [x23]
	str	w24, [x23, #8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_ASIC_IS_AVIVO
Lloh60:
	adrp	x8, _radeon_r4xx_atom@GOTPAGE
Lloh61:
	ldr	x8, [x8, _radeon_r4xx_atom@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8]
	orr	x23, x0, x8
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	bl	_radeon_get_encoder_enum
	mov	x1, x0
	mov	x0, x26
	mov	x2, x24
	cbz	x23, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w3, #0
	bl	_radeon_add_atom_encoder
	b	LBB0_5
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_radeon_add_legacy_encoder
	b	LBB0_5
LBB0_28:
	mov	w19, #0
	b	LBB0_54
LBB0_29:
	mov	w19, #0
	b	LBB0_53
LBB0_30:
	mov	x8, #0
	add	x9, x20, #24
Lloh63:
	adrp	x10, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh64:
	ldr	x10, [x10, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh65:
	adrp	x11, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGE
Lloh66:
	ldr	x11, [x11, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGEOFF]
	mov	w12, #40
Lloh67:
	adrp	x13, _ATOM_DEVICE_CRT_SUPPORT@GOTPAGE
Lloh68:
	ldr	x13, [x13, _ATOM_DEVICE_CRT_SUPPORT@GOTPAGEOFF]
Lloh69:
	adrp	x14, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh70:
	ldr	x14, [x14, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
	mov	w15, #53
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	add	x8, x8, #1
	cmp	x8, x28
	b.eq	LBB0_48
LBB0_32:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
	mul	x16, x8, x12
	ldr	w16, [x20, x16]
	cbz	w16, LBB0_31
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x16, #0
	madd	x3, x8, x12, x20
	add	x17, x3, #4
	add	x0, x3, #8
	add	x1, x3, #24
	add	x2, x3, #32
	add	x3, x3, #16
	mov	x4, x9
	b	LBB0_37
LBB0_34:                                ;   in Loop: Header=BB0_37 Depth=2
	str	w15, [x17]
	mov	x7, x1
LBB0_35:                                ;   in Loop: Header=BB0_37 Depth=2
	str	wzr, [x7]
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=2
	add	x16, x16, #1
	add	x4, x4, #40
	cmp	x28, x16
	b.eq	LBB0_31
LBB0_37:                                ;   Parent Loop BB0_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w5, [x4, #-24]
	cmp	w5, #0
	ccmp	x8, x16, #4, ne
	b.eq	LBB0_36
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	w5, [x17]
	ldur	w6, [x4, #-20]
	cmp	w5, w6
	b.ne	LBB0_36
; %bb.39:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	w5, [x0]
	ldr	w7, [x10]
	tst	w7, w5
	b.ne	LBB0_34
; %bb.40:                               ;   in Loop: Header=BB0_37 Depth=2
	ldur	w6, [x4, #-16]
	tst	w6, w7
	b.eq	LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_37 Depth=2
	stur	w15, [x4, #-20]
	mov	x7, x4
	b	LBB0_35
LBB0_42:                                ;   in Loop: Header=BB0_37 Depth=2
	ldr	w7, [x11]
	tst	w7, w5
	b.eq	LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	w19, [x13]
	tst	w19, w6
	b.ne	LBB0_46
LBB0_44:                                ;   in Loop: Header=BB0_37 Depth=2
	tst	w7, w6
	b.eq	LBB0_36
; %bb.45:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	w7, [x13]
	tst	w7, w5
	b.eq	LBB0_36
LBB0_46:                                ;   in Loop: Header=BB0_37 Depth=2
	madd	x7, x16, x12, x20
	orr	w5, w6, w5
	str	w5, [x0]
	ldr	x5, [x14]
	str	x5, [x2]
	ldur	w5, [x4, #-16]
	ldr	w6, [x11]
	tst	w6, w5
	b.eq	LBB0_35
; %bb.47:                               ;   in Loop: Header=BB0_37 Depth=2
	ldur	x5, [x4, #-8]
	str	x5, [x3]
	b	LBB0_35
LBB0_48:
	add	x21, x20, #16
	add	x19, sp, #56
	b	LBB0_50
LBB0_49:                                ;   in Loop: Header=BB0_50 Depth=1
	add	x21, x21, #40
	subs	x28, x28, #1
	b.eq	LBB0_52
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x21, #-16]
	cbz	w8, LBB0_49
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	x1, [x21, #16]
	ldur	w2, [x21, #-8]
	mov	x0, x24
	bl	_atombios_get_connector_object_id
	mov	x6, x0
	ldp	w1, w2, [x21, #-12]
	add	x4, x21, #8
	ldr	x3, [x21, #16]
	str	x19, [sp]
	mov	x0, x24
	mov	w5, #0
	mov	x7, x21
	bl	_radeon_add_atom_connector
	b	LBB0_49
LBB0_52:
	mov	x0, x24
	bl	_radeon_link_encoder_connector
	mov	w19, #1
LBB0_53:
	mov	x0, x20
	bl	_kfree
LBB0_54:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_SupportedDevicesInfo,4,2       ; @SupportedDevicesInfo
	.comm	_ATOM_MAX_SUPPORTED_DEVICE,4,2  ; @ATOM_MAX_SUPPORTED_DEVICE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ATOM_MAX_SUPPORTED_DEVICE_INFO,4,2 ; @ATOM_MAX_SUPPORTED_DEVICE_INFO
	.comm	_ATOM_DEVICE_CV_INDEX,4,2       ; @ATOM_DEVICE_CV_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping Component Video\n"

	.comm	_supported_devices_connector_convert,8,3 ; @supported_devices_connector_convert
	.comm	_DRM_MODE_CONNECTOR_Unknown,8,3 ; @DRM_MODE_CONNECTOR_Unknown
	.comm	_ATOM_DEVICE_TV1_INDEX,4,2      ; @ATOM_DEVICE_TV1_INDEX
	.comm	_ATOM_DEVICE_TV2_INDEX,4,2      ; @ATOM_DEVICE_TV2_INDEX
	.comm	_RADEON_HPD_1,8,3               ; @RADEON_HPD_1
	.comm	_RADEON_HPD_2,8,3               ; @RADEON_HPD_2
	.comm	_RADEON_HPD_NONE,8,3            ; @RADEON_HPD_NONE
	.comm	_ATOM_DEVICE_DFP1_INDEX,4,2     ; @ATOM_DEVICE_DFP1_INDEX
	.comm	_ATOM_DEVICE_DFP2_INDEX,4,2     ; @ATOM_DEVICE_DFP2_INDEX
	.comm	_ATOM_DEVICE_CRT1_INDEX,4,2     ; @ATOM_DEVICE_CRT1_INDEX
	.comm	_ATOM_DEVICE_CRT2_INDEX,4,2     ; @ATOM_DEVICE_CRT2_INDEX
	.comm	_DRM_MODE_CONNECTOR_VGA,8,3     ; @DRM_MODE_CONNECTOR_VGA
	.comm	_radeon_r4xx_atom,8,3           ; @radeon_r4xx_atom
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ; @ATOM_DEVICE_LCD_SUPPORT
	.comm	_ATOM_DEVICE_DFP_SUPPORT,4,2    ; @ATOM_DEVICE_DFP_SUPPORT
	.comm	_ATOM_DEVICE_CRT_SUPPORT,4,2    ; @ATOM_DEVICE_CRT_SUPPORT
	.comm	_DRM_MODE_CONNECTOR_DVII,8,3    ; @DRM_MODE_CONNECTOR_DVII
.subsections_via_symbols
