	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_legacy_get_tmds_info_from_combios ## -- Begin function radeon_legacy_get_tmds_info_from_combios
	.p2align	4, 0x90
_radeon_legacy_get_tmds_info_from_combios: ## @radeon_legacy_get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rdi
	movq	_COMBIOS_DFP_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_combios_get_table_offset
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_RBIOS8
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	$1, %ebx
	cmpl	$4, %r12d
	je	LBB0_8
## %bb.2:
	cmpl	$3, %r12d
	jne	LBB0_13
## %bb.3:
	leaq	5(%r13), %rdi
	callq	_RBIOS8
	cmpl	$3, %eax
	movl	$3, %r15d
	cmovll	%eax, %r15d
	testl	%r15d, %r15d
	js	LBB0_13
## %bb.4:
	incl	%r15d
	addq	$16, %r13
	leaq	L_.str.1(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-8(%r13), %rdi
	callq	_RBIOS32
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx)
	movq	%r13, %rdi
	callq	_RBIOS16
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	(%rcx,%rbx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	addq	$10, %r13
	addq	$16, %rbx
	decq	%r15
	jne	LBB0_5
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_INFO
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_8:
	leaq	5(%r13), %rdi
	callq	_RBIOS8
	cmpl	$3, %eax
	movl	$3, %ecx
	cmovll	%eax, %ecx
	testl	%ecx, %ecx
	js	LBB0_12
## %bb.9:
	incl	%ecx
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	movl	%r12d, %r14d
	leaq	(%rbx,%r14), %rdi
	addq	$8, %rdi
	callq	_RBIOS32
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%r15)
	leaq	(%rbx,%r14), %rdi
	addq	$16, %rdi
	movq	%r13, %r14
	callq	_RBIOS16
	movq	(%r13), %rcx
	movq	%rax, 8(%rcx,%r15)
	xorl	%edx, %edx
	testq	%r15, %r15
	sete	%dl
	leal	(%r12,%rdx,4), %r12d
	addl	$6, %r12d
	movq	(%rcx,%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$16, %r15
	decq	%rcx
	jne	LBB0_10
LBB0_12:
	movl	$1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMBIOS_DFP_INFO_TABLE,4,2     ## @COMBIOS_DFP_INFO_TABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DFP table revision: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"TMDS PLL From COMBIOS %u %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"No TMDS info found in BIOS\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_legacy_get_tmds_info_from_combios ; -- Begin function radeon_legacy_get_tmds_info_from_combios
	.p2align	2
_radeon_legacy_get_tmds_info_from_combios: ; @radeon_legacy_get_tmds_info_from_combios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _COMBIOS_DFP_INFO_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMBIOS_DFP_INFO_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_combios_get_table_offset
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	bl	_RBIOS8
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_KMS
	cmp	w21, #4
	b.eq	LBB0_7
; %bb.2:
	cmp	w21, #3
	b.ne	LBB0_10
; %bb.3:
	add	x0, x20, #5
	bl	_RBIOS8
	mov	w8, #3
	cmp	w0, #3
	csel	w8, w0, w8, lt
	tbnz	w8, #31, LBB0_10
; %bb.4:
	mov	x22, #0
	add	w23, w8, #1
	add	x20, x20, #16
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x20, #8
	bl	_RBIOS32
	ldr	x8, [x19]
	str	x0, [x8, x22]
	mov	x0, x20
	bl	_RBIOS16
	mov	x1, x0
	ldr	x8, [x19]
	add	x8, x8, x22
	str	x0, [x8, #8]
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DRM_DEBUG_KMS
	add	x20, x20, #10
	add	x22, x22, #16
	subs	x23, x23, #1
	b.ne	LBB0_5
	b	LBB0_10
LBB0_6:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	add	x0, x20, #5
	bl	_RBIOS8
	mov	w8, #3
	cmp	w0, #3
	csel	w8, w0, w8, lt
	tbnz	w8, #31, LBB0_10
; %bb.8:
	mov	x22, #0
	mov	w23, #0
	add	w24, w8, #1
	mov	w25, #6
	mov	w26, #10
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x27, x20, w23, uxtw
	add	x0, x27, #8
	bl	_RBIOS32
	ldr	x8, [x19]
	str	x0, [x8, x22]
	add	x0, x27, #16
	bl	_RBIOS16
	mov	x1, x0
	ldr	x8, [x19]
	add	x8, x8, x22
	str	x0, [x8, #8]
	cmp	x22, #0
	csel	w9, w26, w25, eq
	add	w23, w9, w23
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DRM_DEBUG_KMS
	add	x22, x22, #16
	subs	x24, x24, #1
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_COMBIOS_DFP_INFO_TABLE,4,2     ; @COMBIOS_DFP_INFO_TABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DFP table revision: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"TMDS PLL From COMBIOS %u %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"No TMDS info found in BIOS\n"

.subsections_via_symbols
