	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_apply_legacy_quirks
_radeon_apply_legacy_quirks:            ## @radeon_apply_legacy_quirks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	(%rax), %edi
	cmpl	$23392, %edi                    ## imm = 0x5B60
	je	LBB0_5
## %bb.1:
	cmpl	$20830, %edi                    ## imm = 0x515E
	jne	LBB0_9
## %bb.2:
	cmpl	$4116, 4(%rax)                  ## imm = 0x1014
	jne	LBB0_9
## %bb.3:
	movl	(%rdx), %eax
	movq	_CONNECTOR_CRT_LEGACY@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_9
## %bb.4:
	movq	(%rcx), %rcx
	movq	_RADEON_GPIO_CRT2_DDC@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
LBB0_10:
	popq	%rbp
	retq
LBB0_5:
	cmpl	$6063, 4(%rax)                  ## imm = 0x17AF
	jne	LBB0_9
## %bb.6:
	cmpl	$2, %esi
	jne	LBB0_9
## %bb.7:
	cmpl	$8222, 8(%rax)                  ## imm = 0x201E
	jne	LBB0_9
## %bb.8:
	movl	(%rdx), %ecx
	movq	_CONNECTOR_DVI_I_LEGACY@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_10
LBB0_9:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONNECTOR_CRT_LEGACY,4,2       ## @CONNECTOR_CRT_LEGACY
	.comm	_RADEON_GPIO_CRT2_DDC,8,3       ## @RADEON_GPIO_CRT2_DDC
	.comm	_CONNECTOR_DVI_I_LEGACY,4,2     ## @CONNECTOR_DVI_I_LEGACY
	.no_dead_strip	_radeon_apply_legacy_quirks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_apply_legacy_quirks
_radeon_apply_legacy_quirks:            ; @radeon_apply_legacy_quirks
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w9, [x8]
	mov	w10, #23392
	cmp	w9, w10
	b.eq	LBB0_6
; %bb.1:
	mov	w10, #20830
	cmp	w9, w10
	b.ne	LBB0_11
; %bb.2:
	ldr	w8, [x8, #4]
	mov	w9, #4116
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.3:
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _CONNECTOR_CRT_LEGACY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CONNECTOR_CRT_LEGACY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.4:
	ldr	x8, [x3]
Lloh3:
	adrp	x9, _RADEON_GPIO_CRT2_DDC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RADEON_GPIO_CRT2_DDC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	mov	w0, #0
	ret
LBB0_6:
	ldr	w9, [x8, #4]
	mov	w10, #6063
	cmp	w9, w10
	b.ne	LBB0_11
; %bb.7:
	cmp	w1, #2
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x8, #8]
	mov	w9, #8222
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x2]
Lloh6:
	adrp	x9, _CONNECTOR_DVI_I_LEGACY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CONNECTOR_DVI_I_LEGACY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	ret
LBB0_11:
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CONNECTOR_CRT_LEGACY,4,2       ; @CONNECTOR_CRT_LEGACY
	.comm	_RADEON_GPIO_CRT2_DDC,8,3       ; @RADEON_GPIO_CRT2_DDC
	.comm	_CONNECTOR_DVI_I_LEGACY,4,2     ; @CONNECTOR_DVI_I_LEGACY
	.no_dead_strip	_radeon_apply_legacy_quirks
.subsections_via_symbols
