	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_atom_apply_quirks
_radeon_atom_apply_quirks:              ## @radeon_atom_apply_quirks
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %rcx
	movl	(%rcx), %eax
	cmpl	$31006, %eax                    ## imm = 0x791E
	jne	LBB0_6
## %bb.1:
	cmpl	$4163, 4(%rcx)                  ## imm = 0x1043
	jne	LBB0_41
## %bb.2:
	cmpl	$33389, 8(%rcx)                 ## imm = 0x826D
	jne	LBB0_41
## %bb.3:
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_41
## %bb.4:
	movq	_ATOM_DEVICE_DFP3_SUPPORT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_41
## %bb.5:
	movq	_DRM_MODE_CONNECTOR_DVID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	(%rcx), %eax
LBB0_6:
	cmpl	$31041, %eax                    ## imm = 0x7941
	jne	LBB0_12
## %bb.7:
	cmpl	$6217, 4(%rcx)                  ## imm = 0x1849
	jne	LBB0_20
## %bb.8:
	cmpl	$31041, 8(%rcx)                 ## imm = 0x7941
	jne	LBB0_20
## %bb.9:
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_20
## %bb.10:
	movq	_ATOM_DEVICE_DFP3_SUPPORT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_20
## %bb.11:
	movq	_DRM_MODE_CONNECTOR_DVID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	(%rcx), %eax
LBB0_12:
	cmpl	$22099, %eax                    ## imm = 0x5653
	je	LBB0_23
## %bb.13:
	cmpl	$31041, %eax                    ## imm = 0x7941
	je	LBB0_20
## %bb.14:
	cmpl	$31086, %eax                    ## imm = 0x796E
	jne	LBB0_27
## %bb.15:
	cmpl	$5218, 4(%rcx)                  ## imm = 0x1462
	jne	LBB0_41
## %bb.16:
	cmpl	$29442, 8(%rcx)                 ## imm = 0x7302
	jne	LBB0_41
## %bb.17:
	movq	_ATOM_DEVICE_DFP2_SUPPORT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	%esi, (%rdx)
	je	LBB0_82
## %bb.18:
	movq	_ATOM_DEVICE_DFP3_SUPPORT@GOTPCREL(%rip), %rdx
	jmp	LBB0_19
LBB0_20:
	cmpl	$5243, 4(%rcx)                  ## imm = 0x147B
	jne	LBB0_41
## %bb.21:
	cmpl	$9234, 8(%rcx)                  ## imm = 0x2412
	jne	LBB0_41
## %bb.22:
	movl	(%rbx), %edx
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpl	(%rdi), %edx
	jne	LBB0_41
	jmp	LBB0_82
LBB0_23:
	cmpl	$5218, 4(%rcx)                  ## imm = 0x1462
	jne	LBB0_41
## %bb.24:
	cmpl	$657, 8(%rcx)                   ## imm = 0x291
	jne	LBB0_41
## %bb.25:
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_41
## %bb.26:
	movl	$0, (%r15)
	movl	$53, (%r14)
	movl	(%rcx), %eax
LBB0_27:
	cmpl	$28994, %eax                    ## imm = 0x7142
	je	LBB0_33
## %bb.28:
	cmpl	$29125, %eax                    ## imm = 0x71C5
	je	LBB0_35
## %bb.29:
	cmpl	$28998, %eax                    ## imm = 0x7146
	jne	LBB0_41
## %bb.30:
	cmpl	$6063, 4(%rcx)                  ## imm = 0x17AF
	jne	LBB0_41
## %bb.31:
	cmpl	$8280, 8(%rcx)                  ## imm = 0x2058
	je	LBB0_32
	jmp	LBB0_41
LBB0_35:
	cmpl	$4203, 4(%rcx)                  ## imm = 0x106B
	jne	LBB0_41
## %bb.36:
	cmpl	$128, 8(%rcx)
	jne	LBB0_41
## %bb.37:
	movq	_ATOM_DEVICE_CRT1_SUPPORT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	%esi, (%rdx)
	je	LBB0_82
## %bb.38:
	movq	_ATOM_DEVICE_DFP2_SUPPORT@GOTPCREL(%rip), %rdx
	cmpl	%esi, (%rdx)
	je	LBB0_82
## %bb.39:
	movq	_ATOM_DEVICE_CRT2_SUPPORT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_41
## %bb.40:
	movl	$144, (%r14)
	jmp	LBB0_41
LBB0_33:
	cmpl	$5208, 4(%rcx)                  ## imm = 0x1458
	jne	LBB0_41
## %bb.34:
	cmpl	$8500, 8(%rcx)                  ## imm = 0x2134
	jne	LBB0_41
LBB0_32:
	xorl	%eax, %eax
	movq	_ATOM_DEVICE_DFP1_SUPPORT@GOTPCREL(%rip), %rdx
LBB0_19:
	cmpl	%esi, (%rdx)
	je	LBB0_82
LBB0_41:
	movq	_ATOM_DEVICE_TV1_SUPPORT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_44
## %bb.42:
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_44
## %bb.43:
	movq	_DRM_MODE_CONNECTOR_9PinDIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_CONNECTOR_7PIN_DIN_ENUM_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_44:
	movl	(%rcx), %eax
	cmpl	$38296, %eax                    ## imm = 0x9598
	jne	LBB0_53
## %bb.45:
	cmpl	$4163, 4(%rcx)                  ## imm = 0x1043
	jne	LBB0_58
## %bb.46:
	cmpl	$474, 8(%rcx)                   ## imm = 0x1DA
	jne	LBB0_49
## %bb.47:
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_49
## %bb.48:
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	(%rcx), %eax
	cmpl	$38296, %eax                    ## imm = 0x9598
	jne	LBB0_53
LBB0_49:
	cmpl	$4163, 4(%rcx)                  ## imm = 0x1043
	jne	LBB0_58
## %bb.50:
	cmpl	$484, 8(%rcx)                   ## imm = 0x1E4
	jne	LBB0_58
## %bb.51:
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_58
## %bb.52:
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	(%rcx), %eax
LBB0_53:
	cmpl	$38341, %eax                    ## imm = 0x95C5
	jne	LBB0_58
## %bb.54:
	cmpl	$4163, 4(%rcx)                  ## imm = 0x1043
	jne	LBB0_58
## %bb.55:
	cmpl	$482, 8(%rcx)                   ## imm = 0x1E2
	jne	LBB0_58
## %bb.56:
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_58
## %bb.57:
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_58:
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_61
## %bb.59:
	movq	_ATOM_DEVICE_CRT_SUPPORT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_61
## %bb.60:
	movq	_DRM_MODE_CONNECTOR_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	$0, (%r14)
LBB0_61:
	movl	(%rcx), %edx
	cmpl	$38040, %edx                    ## imm = 0x9498
	je	LBB0_69
## %bb.62:
	cmpl	$38340, %edx                    ## imm = 0x95C4
	je	LBB0_64
## %bb.63:
	cmpl	$38289, %edx                    ## imm = 0x9591
	jne	LBB0_74
LBB0_64:
	cmpl	$4133, 4(%rcx)                  ## imm = 0x1025
	jne	LBB0_74
## %bb.65:
	cmpl	$316, 8(%rcx)                   ## imm = 0x13C
	jne	LBB0_74
## %bb.66:
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	jne	LBB0_74
## %bb.67:
	movq	_ATOM_DEVICE_DFP1_SUPPORT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_74
## %bb.68:
	movq	_DRM_MODE_CONNECTOR_DVID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_82
LBB0_69:
	movl	$1, %eax
	cmpl	$5762, 4(%rcx)                  ## imm = 0x1682
	jne	LBB0_82
## %bb.70:
	cmpl	$9298, 8(%rcx)                  ## imm = 0x2452
	jne	LBB0_82
## %bb.71:
	cmpl	$0, (%r15)
	jne	LBB0_82
## %bb.72:
	movq	_ATOM_DEVICE_TV_SUPPORT@GOTPCREL(%rip), %rcx
	movq	_ATOM_DEVICE_CV_SUPPORT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%esi, %edx
	jne	LBB0_82
## %bb.73:
	movq	8(%r12), %rdi
	movl	$147, %esi
	callq	_radeon_lookup_i2c_gpio
	movl	%eax, (%r15)
	movq	(%r12), %rcx
	movl	(%rcx), %edx
LBB0_74:
	movl	$1, %eax
	addl	$-38914, %edx                   ## imm = 0xFFFF67FE
	cmpl	$4, %edx
	ja	LBB0_82
## %bb.75:
	movl	$25, %esi
	btl	%edx, %esi
	jae	LBB0_82
## %bb.76:
	cmpl	$5940, 4(%rcx)                  ## imm = 0x1734
	jne	LBB0_82
## %bb.77:
	cmpl	$4541, 8(%rcx)                  ## imm = 0x11BD
	jne	LBB0_82
## %bb.78:
	movl	(%rbx), %ecx
	movq	_DRM_MODE_CONNECTOR_VGA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_80
## %bb.79:
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	movl	$12547, (%r14)                  ## imm = 0x3103
	jmp	LBB0_82
LBB0_80:
	movq	_DRM_MODE_CONNECTOR_DVID@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_82
## %bb.81:
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
LBB0_82:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.comm	_ATOM_DEVICE_DFP3_SUPPORT,4,2   ## @ATOM_DEVICE_DFP3_SUPPORT
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ## @DRM_MODE_CONNECTOR_DVID
	.comm	_ATOM_DEVICE_DFP2_SUPPORT,4,2   ## @ATOM_DEVICE_DFP2_SUPPORT
	.comm	_DRM_MODE_CONNECTOR_DVII,4,2    ## @DRM_MODE_CONNECTOR_DVII
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ## @DRM_MODE_CONNECTOR_LVDS
	.comm	_ATOM_DEVICE_DFP1_SUPPORT,4,2   ## @ATOM_DEVICE_DFP1_SUPPORT
	.comm	_ATOM_DEVICE_CRT1_SUPPORT,4,2   ## @ATOM_DEVICE_CRT1_SUPPORT
	.comm	_ATOM_DEVICE_CRT2_SUPPORT,4,2   ## @ATOM_DEVICE_CRT2_SUPPORT
	.comm	_ATOM_DEVICE_TV1_SUPPORT,4,2    ## @ATOM_DEVICE_TV1_SUPPORT
	.comm	_DRM_MODE_CONNECTOR_9PinDIN,4,2 ## @DRM_MODE_CONNECTOR_9PinDIN
	.comm	_CONNECTOR_7PIN_DIN_ENUM_ID1,4,2 ## @CONNECTOR_7PIN_DIN_ENUM_ID1
	.comm	_ATOM_DEVICE_CRT_SUPPORT,4,2    ## @ATOM_DEVICE_CRT_SUPPORT
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ## @DRM_MODE_CONNECTOR_VGA
	.comm	_ATOM_DEVICE_TV_SUPPORT,4,2     ## @ATOM_DEVICE_TV_SUPPORT
	.comm	_ATOM_DEVICE_CV_SUPPORT,4,2     ## @ATOM_DEVICE_CV_SUPPORT
	.no_dead_strip	_radeon_atom_apply_quirks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_atom_apply_quirks
_radeon_atom_apply_quirks:              ; @radeon_atom_apply_quirks
	.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	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x0
	ldr	x8, [x0]
	ldr	w10, [x8]
	mov	w11, #31006
Lloh0:
	adrp	x9, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
	cmp	w10, w11
	b.ne	LBB0_5
; %bb.1:
	ldr	w10, [x8, #4]
	mov	w11, #4163
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.2:
	ldr	w10, [x8, #8]
	mov	w11, #33389
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.3:
	ldr	w10, [x19]
	ldr	w11, [x9]
Lloh2:
	adrp	x12, _ATOM_DEVICE_DFP3_SUPPORT@GOTPAGE
Lloh3:
	ldr	x12, [x12, _ATOM_DEVICE_DFP3_SUPPORT@GOTPAGEOFF]
Lloh4:
	ldr	w12, [x12]
	cmp	w10, w11
	ccmp	w12, w1, #0, eq
	b.ne	LBB0_38
; %bb.4:
Lloh5:
	adrp	x10, _DRM_MODE_CONNECTOR_DVID@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_DVID@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	str	w10, [x19]
	ldr	w10, [x8]
LBB0_5:
	mov	w11, #31041
	cmp	w10, w11
	b.ne	LBB0_10
; %bb.6:
	ldr	w10, [x8, #4]
	mov	w11, #6217
	cmp	w10, w11
	b.ne	LBB0_16
; %bb.7:
	ldr	w10, [x8, #8]
	mov	w11, #31041
	cmp	w10, w11
	b.ne	LBB0_16
; %bb.8:
	ldr	w10, [x19]
	ldr	w11, [x9]
Lloh8:
	adrp	x12, _ATOM_DEVICE_DFP3_SUPPORT@GOTPAGE
Lloh9:
	ldr	x12, [x12, _ATOM_DEVICE_DFP3_SUPPORT@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	cmp	w10, w11
	ccmp	w12, w1, #0, eq
	b.ne	LBB0_16
; %bb.9:
Lloh11:
	adrp	x10, _DRM_MODE_CONNECTOR_DVID@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_DVID@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	str	w10, [x19]
	ldr	w10, [x8]
LBB0_10:
	mov	w11, #22099
	cmp	w10, w11
	b.eq	LBB0_20
; %bb.11:
	mov	w11, #31041
	cmp	w10, w11
	b.eq	LBB0_16
; %bb.12:
	mov	w11, #31086
	cmp	w10, w11
	b.ne	LBB0_24
; %bb.13:
	ldr	w10, [x8, #4]
	mov	w11, #5218
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.14:
	ldr	w10, [x8, #8]
	mov	w11, #29442
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.15:
Lloh14:
	adrp	x10, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _ATOM_DEVICE_DFP3_SUPPORT@GOTPAGE
Lloh18:
	ldr	x11, [x11, _ATOM_DEVICE_DFP3_SUPPORT@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	cmp	w10, w1
	ccmp	w11, w1, #4, ne
	b.ne	LBB0_38
	b	LBB0_19
LBB0_16:
	ldr	w10, [x8, #4]
	mov	w11, #5243
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.17:
	ldr	w10, [x8, #8]
	mov	w11, #9234
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.18:
	ldr	w10, [x19]
Lloh20:
	adrp	x11, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh21:
	ldr	x11, [x11, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_38
LBB0_19:
	mov	w0, #0
	b	LBB0_79
LBB0_20:
	ldr	w10, [x8, #4]
	mov	w11, #5218
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.21:
	ldr	w10, [x8, #8]
	cmp	w10, #657
	b.ne	LBB0_38
; %bb.22:
	ldr	w10, [x19]
Lloh23:
	adrp	x11, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh24:
	ldr	x11, [x11, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.23:
	str	wzr, [x21]
	mov	w10, #53
	str	w10, [x20]
	ldr	w10, [x8]
LBB0_24:
	mov	w11, #28994
	cmp	w10, w11
	b.eq	LBB0_36
; %bb.25:
	mov	w11, #29125
	cmp	w10, w11
	b.eq	LBB0_30
; %bb.26:
	mov	w11, #28998
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.27:
	ldr	w10, [x8, #4]
	mov	w11, #6063
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.28:
	ldr	w10, [x8, #8]
	mov	w11, #8280
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.29:
Lloh26:
	adrp	x10, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	cmp	w10, w1
	b.eq	LBB0_19
	b	LBB0_38
LBB0_30:
	ldr	w10, [x8, #4]
	mov	w11, #4203
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.31:
	ldr	w10, [x8, #8]
	cmp	w10, #128
	b.ne	LBB0_38
; %bb.32:
	mov	w0, #0
Lloh29:
	adrp	x10, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGE
Lloh30:
	ldr	x10, [x10, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	cmp	w10, w1
	b.eq	LBB0_79
; %bb.33:
Lloh32:
	adrp	x10, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGE
Lloh33:
	ldr	x10, [x10, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	cmp	w10, w1
	b.eq	LBB0_79
; %bb.34:
Lloh35:
	adrp	x10, _ATOM_DEVICE_CRT2_SUPPORT@GOTPAGE
Lloh36:
	ldr	x10, [x10, _ATOM_DEVICE_CRT2_SUPPORT@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	cmp	w10, w1
	b.ne	LBB0_38
; %bb.35:
	mov	w10, #144
	str	w10, [x20]
	b	LBB0_38
LBB0_36:
	ldr	w10, [x8, #4]
	mov	w11, #5208
	cmp	w10, w11
	b.ne	LBB0_38
; %bb.37:
	ldr	w10, [x8, #8]
Lloh38:
	adrp	x11, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGE
Lloh39:
	ldr	x11, [x11, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	mov	w12, #8500
	cmp	w10, w12
	ccmp	w11, w1, #0, eq
	b.eq	LBB0_19
LBB0_38:
Lloh41:
	adrp	x10, _ATOM_DEVICE_TV1_SUPPORT@GOTPAGE
Lloh42:
	ldr	x10, [x10, _ATOM_DEVICE_TV1_SUPPORT@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	cmp	w10, w1
	b.ne	LBB0_41
; %bb.39:
	ldr	w10, [x19]
Lloh44:
	adrp	x11, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh45:
	ldr	x11, [x11, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
Lloh46:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_41
; %bb.40:
Lloh47:
	adrp	x10, _DRM_MODE_CONNECTOR_9PinDIN@GOTPAGE
Lloh48:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_9PinDIN@GOTPAGEOFF]
Lloh49:
	ldr	w10, [x10]
	str	w10, [x19]
Lloh50:
	adrp	x10, _CONNECTOR_7PIN_DIN_ENUM_ID1@GOTPAGE
Lloh51:
	ldr	x10, [x10, _CONNECTOR_7PIN_DIN_ENUM_ID1@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	str	w10, [x20]
LBB0_41:
	ldr	w10, [x8]
	mov	w11, #38296
	cmp	w10, w11
	b.ne	LBB0_50
; %bb.42:
	ldr	w10, [x8, #4]
	mov	w11, #4163
	cmp	w10, w11
	b.ne	LBB0_55
; %bb.43:
	ldr	w10, [x8, #8]
	cmp	w10, #474
	b.ne	LBB0_46
; %bb.44:
	ldr	w10, [x19]
	ldr	w11, [x9]
	cmp	w10, w11
	b.ne	LBB0_46
; %bb.45:
Lloh53:
	adrp	x10, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh54:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	str	w10, [x19]
	ldr	w10, [x8]
	mov	w11, #38296
	cmp	w10, w11
	b.ne	LBB0_50
LBB0_46:
	ldr	w10, [x8, #4]
	mov	w11, #4163
	cmp	w10, w11
	b.ne	LBB0_55
; %bb.47:
	ldr	w10, [x8, #8]
	cmp	w10, #484
	b.ne	LBB0_55
; %bb.48:
	ldr	w10, [x19]
	ldr	w11, [x9]
	cmp	w10, w11
	b.ne	LBB0_55
; %bb.49:
Lloh56:
	adrp	x10, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh57:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
Lloh58:
	ldr	w10, [x10]
	str	w10, [x19]
	ldr	w10, [x8]
LBB0_50:
	mov	w11, #38341
	cmp	w10, w11
	b.ne	LBB0_55
; %bb.51:
	ldr	w10, [x8, #4]
	mov	w11, #4163
	cmp	w10, w11
	b.ne	LBB0_55
; %bb.52:
	ldr	w10, [x8, #8]
	cmp	w10, #482
	b.ne	LBB0_55
; %bb.53:
	ldr	w10, [x19]
	ldr	w11, [x9]
	cmp	w10, w11
	b.ne	LBB0_55
; %bb.54:
Lloh59:
	adrp	x10, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh60:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
Lloh61:
	ldr	w10, [x10]
	str	w10, [x19]
LBB0_55:
	ldr	w10, [x19]
	ldr	w9, [x9]
	cmp	w10, w9
	b.ne	LBB0_58
; %bb.56:
Lloh62:
	adrp	x9, _ATOM_DEVICE_CRT_SUPPORT@GOTPAGE
Lloh63:
	ldr	x9, [x9, _ATOM_DEVICE_CRT_SUPPORT@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_58
; %bb.57:
Lloh65:
	adrp	x9, _DRM_MODE_CONNECTOR_VGA@GOTPAGE
Lloh66:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_VGA@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	str	w9, [x19]
	str	wzr, [x20]
LBB0_58:
	ldr	w9, [x8]
	mov	w10, #38040
	cmp	w9, w10
	b.eq	LBB0_65
; %bb.59:
	mov	w10, #38340
	cmp	w9, w10
	mov	w10, #38289
	ccmp	w9, w10, #4, ne
	b.ne	LBB0_70
; %bb.60:
	ldr	w10, [x8, #4]
	mov	w11, #4133
	cmp	w10, w11
	b.ne	LBB0_70
; %bb.61:
	ldr	w10, [x8, #8]
	cmp	w10, #316
	b.ne	LBB0_70
; %bb.62:
	ldr	w10, [x19]
Lloh68:
	adrp	x11, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh69:
	ldr	x11, [x11, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
Lloh70:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_70
; %bb.63:
Lloh71:
	adrp	x10, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGE
Lloh72:
	ldr	x10, [x10, _ATOM_DEVICE_DFP1_SUPPORT@GOTPAGEOFF]
Lloh73:
	ldr	w10, [x10]
	cmp	w10, w1
	b.ne	LBB0_70
; %bb.64:
	mov	w0, #0
Lloh74:
	adrp	x8, _DRM_MODE_CONNECTOR_DVID@GOTPAGE
Lloh75:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DVID@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_79
LBB0_65:
	ldr	w9, [x8, #4]
	mov	w10, #5762
	cmp	w9, w10
	b.ne	LBB0_78
; %bb.66:
	ldr	w8, [x8, #8]
	mov	w9, #9298
	cmp	w8, w9
	b.ne	LBB0_78
; %bb.67:
	ldr	w8, [x21]
	cbnz	w8, LBB0_78
; %bb.68:
Lloh77:
	adrp	x8, _ATOM_DEVICE_TV_SUPPORT@GOTPAGE
Lloh78:
	ldr	x8, [x8, _ATOM_DEVICE_TV_SUPPORT@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
Lloh80:
	adrp	x9, _ATOM_DEVICE_CV_SUPPORT@GOTPAGE
Lloh81:
	ldr	x9, [x9, _ATOM_DEVICE_CV_SUPPORT@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w1
	b.ne	LBB0_78
; %bb.69:
	ldr	x0, [x22, #8]
	mov	w1, #147
	bl	_radeon_lookup_i2c_gpio
	str	w0, [x21]
	ldr	x8, [x22]
	ldr	w9, [x8]
LBB0_70:
	mov	w0, #1
	mov	w10, #-38914
	add	w9, w9, w10
	cmp	w9, #4
	b.hi	LBB0_79
; %bb.71:
	lsl	w9, w0, w9
	mov	w10, #25
	tst	w9, w10
	b.eq	LBB0_79
; %bb.72:
	ldr	w9, [x8, #4]
	mov	w10, #5940
	cmp	w9, w10
	b.ne	LBB0_78
; %bb.73:
	ldr	w8, [x8, #8]
	mov	w9, #4541
	cmp	w8, w9
	b.ne	LBB0_78
; %bb.74:
	ldr	w8, [x19]
Lloh83:
	adrp	x9, _DRM_MODE_CONNECTOR_VGA@GOTPAGE
Lloh84:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_VGA@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_76
; %bb.75:
Lloh86:
	adrp	x8, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh87:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w8, #12547
	str	w8, [x20]
	b	LBB0_78
LBB0_76:
Lloh89:
	adrp	x9, _DRM_MODE_CONNECTOR_DVID@GOTPAGE
Lloh90:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_DVID@GOTPAGEOFF]
Lloh91:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_78
; %bb.77:
Lloh92:
	adrp	x8, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh93:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_78:
	mov	w0, #1
LBB0_79:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.comm	_ATOM_DEVICE_DFP3_SUPPORT,4,2   ; @ATOM_DEVICE_DFP3_SUPPORT
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ; @DRM_MODE_CONNECTOR_DVID
	.comm	_ATOM_DEVICE_DFP2_SUPPORT,4,2   ; @ATOM_DEVICE_DFP2_SUPPORT
	.comm	_DRM_MODE_CONNECTOR_DVII,4,2    ; @DRM_MODE_CONNECTOR_DVII
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ; @DRM_MODE_CONNECTOR_LVDS
	.comm	_ATOM_DEVICE_DFP1_SUPPORT,4,2   ; @ATOM_DEVICE_DFP1_SUPPORT
	.comm	_ATOM_DEVICE_CRT1_SUPPORT,4,2   ; @ATOM_DEVICE_CRT1_SUPPORT
	.comm	_ATOM_DEVICE_CRT2_SUPPORT,4,2   ; @ATOM_DEVICE_CRT2_SUPPORT
	.comm	_ATOM_DEVICE_TV1_SUPPORT,4,2    ; @ATOM_DEVICE_TV1_SUPPORT
	.comm	_DRM_MODE_CONNECTOR_9PinDIN,4,2 ; @DRM_MODE_CONNECTOR_9PinDIN
	.comm	_CONNECTOR_7PIN_DIN_ENUM_ID1,4,2 ; @CONNECTOR_7PIN_DIN_ENUM_ID1
	.comm	_ATOM_DEVICE_CRT_SUPPORT,4,2    ; @ATOM_DEVICE_CRT_SUPPORT
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ; @DRM_MODE_CONNECTOR_VGA
	.comm	_ATOM_DEVICE_TV_SUPPORT,4,2     ; @ATOM_DEVICE_TV_SUPPORT
	.comm	_ATOM_DEVICE_CV_SUPPORT,4,2     ; @ATOM_DEVICE_CV_SUPPORT
	.no_dead_strip	_radeon_atom_apply_quirks
.subsections_via_symbols
