	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_get_clock_info  ## -- Begin function radeon_combios_get_clock_info
	.p2align	4, 0x90
_radeon_combios_get_clock_info:         ## @radeon_combios_get_clock_info
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	movq	_COMBIOS_PLL_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_combios_get_table_offset
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	192(%r13), %r14
	leaq	136(%r13), %rbx
	movq	%rax, %rdi
	callq	_RBIOS8
	movl	%eax, %r15d
	leaq	14(%r12), %rdi
	callq	_RBIOS16
	movq	%rax, 224(%r13)
	leaq	16(%r12), %rdi
	callq	_RBIOS16
	movq	%rax, 216(%r13)
	leaq	18(%r12), %rdi
	callq	_RBIOS32
	movq	%rax, 208(%r13)
	leaq	22(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_RBIOS32
	movq	%rax, 200(%r13)
	movq	208(%r13), %rcx
	movq	%rcx, 240(%r13)
	movq	%rax, 232(%r13)
	cmpl	$10, %r15d
	jl	LBB0_4
## %bb.3:
	leaq	54(%r12), %rdi
	callq	_RBIOS32
	movl	%eax, (%r14)
	leaq	58(%r12), %rdi
	callq	_RBIOS32
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_4:
	movl	$40, (%r14)
	movl	$500, %eax                      ## imm = 0x1F4
LBB0_5:
	movl	%eax, 196(%r13)
	movq	48(%r14), %rax
	movq	%rax, 48(%rbx)
	movl	(%r14), %eax
	movq	4(%r14), %rcx
	movl	12(%r14), %edx
	movups	16(%r14), %xmm0
	movups	32(%r14), %xmm1
	movups	%xmm1, 32(%rbx)
	movups	%xmm0, 16(%rbx)
	movl	%eax, (%rbx)
	movq	%rcx, 4(%rbx)
	movl	%edx, 12(%rbx)
	leaq	26(%r12), %rdi
	callq	_RBIOS16
	movq	%rax, 112(%r13)
	leaq	28(%r12), %rdi
	callq	_RBIOS16
	movq	%rax, 104(%r13)
	leaq	30(%r12), %rdi
	callq	_RBIOS32
	movq	%rax, 96(%r13)
	leaq	34(%r12), %rdi
	callq	_RBIOS32
	movq	%rax, 88(%r13)
	cmpl	$11, %r15d
	jl	LBB0_7
## %bb.6:
	leaq	72(%r12), %rdi
	callq	_RBIOS32
	movl	%eax, 80(%r13)
	leaq	76(%r12), %rdi
	callq	_RBIOS32
	jmp	LBB0_8
LBB0_7:
	movl	$40, 80(%r13)
	movl	$500, %eax                      ## imm = 0x1F4
LBB0_8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 84(%r13)
	leaq	38(%r12), %rdi
	callq	_RBIOS16
	movq	%rax, 56(%r13)
	leaq	40(%r12), %rdi
	callq	_RBIOS16
	movq	%rax, 48(%r13)
	leaq	42(%r12), %rdi
	callq	_RBIOS32
	movq	%rax, 40(%r13)
	leaq	46(%r12), %rdi
	callq	_RBIOS32
	movq	%rax, 32(%r13)
	cmpl	$11, %r15d
	jl	LBB0_10
## %bb.9:
	leaq	90(%r12), %rdi
	callq	_RBIOS32
	movl	%eax, 24(%r13)
	leaq	94(%r12), %rdi
	callq	_RBIOS32
	jmp	LBB0_11
LBB0_10:
	movl	$40, 24(%r13)
	movl	$500, %eax                      ## imm = 0x1F4
LBB0_11:
	movl	%eax, 28(%r13)
	leaq	10(%r12), %rdi
	callq	_RBIOS16
	movq	%rax, %rbx
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_RBIOS16
	testq	%rbx, %rbx
	movl	$20000, %ecx                    ## imm = 0x4E20
	cmoveq	%rcx, %rbx
	testq	%rax, %rax
	cmoveq	%rcx, %rax
	movq	%rbx, 16(%r13)
	movq	%rax, 8(%r13)
	movq	%r14, %rdi
	callq	_RBIOS32
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	callq	_RBIOS32
	jmp	LBB0_14
LBB0_12:
	movl	$35000, %eax                    ## imm = 0x88B8
LBB0_14:
	movl	%eax, (%r13)
	movl	$1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMBIOS_PLL_INFO_TABLE,4,2     ## @COMBIOS_PLL_INFO_TABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_get_clock_info  ; -- Begin function radeon_combios_get_clock_info
	.p2align	2
_radeon_combios_get_clock_info:         ; @radeon_combios_get_clock_info
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _COMBIOS_PLL_INFO_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMBIOS_PLL_INFO_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_combios_get_table_offset
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	add	x23, x22, #192
	add	x24, x22, #136
	bl	_RBIOS8
	mov	x21, x0
	add	x0, x19, #14
	bl	_RBIOS16
	str	x0, [x22, #224]
	add	x0, x19, #16
	bl	_RBIOS16
	str	x0, [x22, #216]
	add	x0, x19, #18
	bl	_RBIOS32
	str	x0, [x22, #208]
	add	x20, x19, #22
	mov	x0, x20
	bl	_RBIOS32
	str	x0, [x22, #200]
	ldr	x8, [x22, #208]
	stp	x0, x8, [x22, #232]
	cmp	w21, #10
	b.lt	LBB0_3
; %bb.2:
	add	x0, x19, #54
	bl	_RBIOS32
	str	w0, [x23]
	add	x0, x19, #58
	bl	_RBIOS32
	b	LBB0_4
LBB0_3:
	mov	w8, #40
	str	w8, [x23]
	mov	w0, #500
LBB0_4:
	str	w0, [x22, #196]
	ldp	q0, q1, [x23]
	stp	q0, q1, [x24]
	ldr	q0, [x23, #32]
	str	q0, [x24, #32]
	ldr	x8, [x23, #48]
	str	x8, [x24, #48]
	add	x0, x19, #26
	bl	_RBIOS16
	str	x0, [x22, #112]
	add	x0, x19, #28
	bl	_RBIOS16
	str	x0, [x22, #104]
	add	x0, x19, #30
	bl	_RBIOS32
	str	x0, [x22, #96]
	add	x0, x19, #34
	bl	_RBIOS32
	str	x0, [x22, #88]
	cmp	w21, #11
	b.lt	LBB0_6
; %bb.5:
	add	x0, x19, #72
	bl	_RBIOS32
	str	w0, [x22, #80]
	add	x0, x19, #76
	bl	_RBIOS32
	b	LBB0_7
LBB0_6:
	mov	w8, #40
	str	w8, [x22, #80]
	mov	w0, #500
LBB0_7:
	str	w0, [x22, #84]
	add	x0, x19, #38
	bl	_RBIOS16
	str	x0, [x22, #56]
	add	x0, x19, #40
	bl	_RBIOS16
	str	x0, [x22, #48]
	add	x0, x19, #42
	bl	_RBIOS32
	str	x0, [x22, #40]
	add	x0, x19, #46
	bl	_RBIOS32
	str	x0, [x22, #32]
	cmp	w21, #11
	b.lt	LBB0_9
; %bb.8:
	add	x0, x19, #90
	bl	_RBIOS32
	str	w0, [x22, #24]
	add	x0, x19, #94
	bl	_RBIOS32
	b	LBB0_10
LBB0_9:
	mov	w8, #40
	str	w8, [x22, #24]
	mov	w0, #500
LBB0_10:
	str	w0, [x22, #28]
	add	x0, x19, #10
	bl	_RBIOS16
	mov	x21, x0
	add	x0, x19, #8
	bl	_RBIOS16
	mov	w8, #20000
	cmp	x21, #0
	csel	x9, x8, x21, eq
	cmp	x0, #0
	csel	x8, x8, x0, eq
	stp	x8, x9, [x22, #8]
	mov	x0, x20
	bl	_RBIOS32
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_RBIOS32
	b	LBB0_13
LBB0_12:
	mov	w0, #35000
LBB0_13:
	str	w0, [x22]
	mov	w0, #1
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COMBIOS_PLL_INFO_TABLE,4,2     ; @COMBIOS_PLL_INFO_TABLE
.subsections_via_symbols
