	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function radeon_legacy_get_ext_tmds_info_from_combios
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	160                             ## 0xa0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_radeon_legacy_get_ext_tmds_info_from_combios
	.p2align	4, 0x90
_radeon_legacy_get_ext_tmds_info_from_combios: ## @radeon_legacy_get_ext_tmds_info_from_combios
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rdi
	movq	(%rdi), %r14
	movq	$0, 8(%rsi)
	movq	_RADEON_IS_IGP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_DDC_MONID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_radeon_i2c_lookup
	movq	%rax, 8(%r15)
	movq	_DVO_SIL164@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
	movl	$56, (%r15)
	jmp	LBB0_8
LBB0_2:
	movq	_COMBIOS_EXT_TMDS_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_combios_get_table_offset
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_RBIOS8
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_DRM_DEBUG_KMS
	leaq	6(%rbx), %rdi
	callq	_RBIOS8
	sarl	%eax
	movl	%eax, (%r15)
	addq	$7, %rbx
	movq	%rbx, %rdi
	callq	_RBIOS8
	movq	_DDC_LCD@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,160]
	movaps	%xmm0, -48(%rbp)
	jmp	LBB0_7
LBB0_3:
	movq	8(%r15), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
LBB0_7:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_radeon_i2c_lookup
	movq	%rax, 8(%r15)
LBB0_8:
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_INFO
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_IS_IGP,4,2              ## @RADEON_IS_IGP
	.comm	_DDC_MONID,4,2                  ## @DDC_MONID
	.comm	_DVO_SIL164,4,2                 ## @DVO_SIL164
	.comm	_COMBIOS_EXT_TMDS_INFO_TABLE,4,2 ## @COMBIOS_EXT_TMDS_INFO_TABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"External TMDS Table revision: %d\n"

	.comm	_DDC_LCD,4,2                    ## @DDC_LCD
L_.str.1:                               ## @.str.1
	.asciz	"No valid Ext TMDS info found in BIOS\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function radeon_legacy_get_ext_tmds_info_from_combios
lCPI0_0:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	160                             ; 0xa0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_radeon_legacy_get_ext_tmds_info_from_combios
	.p2align	2
_radeon_legacy_get_ext_tmds_info_from_combios: ; @radeon_legacy_get_ext_tmds_info_from_combios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	ldr	x0, [x0]
	ldr	x20, [x0]
	str	xzr, [x1, #8]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _RADEON_IS_IGP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_IS_IGP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DDC_MONID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DDC_MONID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	stp	x0, x1, [sp]
	mov	x1, sp
	mov	x0, x20
	bl	_radeon_i2c_lookup
	str	x0, [x19, #8]
Lloh6:
	adrp	x8, _DVO_SIL164@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DVO_SIL164@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	w8, #56
	str	w8, [x19]
	cbnz	x0, LBB0_9
	b	LBB0_6
LBB0_2:
Lloh9:
	adrp	x8, _COMBIOS_EXT_TMDS_INFO_TABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COMBIOS_EXT_TMDS_INFO_TABLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_combios_get_table_offset
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	bl	_RBIOS8
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	add	x0, x21, #6
	bl	_RBIOS8
	asr	w8, w0, #1
	str	w8, [x19]
	add	x0, x21, #7
	bl	_RBIOS8
	mov	x1, x0
Lloh14:
	adrp	x8, _DDC_LCD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DDC_LCD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_7
; %bb.4:
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	b	LBB0_8
LBB0_5:
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_9
LBB0_6:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	stp	x0, x1, [sp]
LBB0_8:
	mov	x1, sp
	mov	x0, x20
	bl	_radeon_i2c_lookup
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_IS_IGP,4,2              ; @RADEON_IS_IGP
	.comm	_DDC_MONID,4,2                  ; @DDC_MONID
	.comm	_DVO_SIL164,4,2                 ; @DVO_SIL164
	.comm	_COMBIOS_EXT_TMDS_INFO_TABLE,4,2 ; @COMBIOS_EXT_TMDS_INFO_TABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"External TMDS Table revision: %d\n"

	.comm	_DDC_LCD,4,2                    ; @DDC_LCD
l_.str.1:                               ; @.str.1
	.asciz	"No valid Ext TMDS info found in BIOS\n"

.subsections_via_symbols
