	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv6xx_generate_steps
_rv6xx_generate_steps:                  ## @rv6xx_generate_steps
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %r12
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_rv6xx_convert_clock_to_stepping
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rv6xx_convert_clock_to_stepping
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_rv6xx_output_stepping
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %rax
	movq	-64(%rbp), %rdx
	xorl	%esi, %esi
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	cmpq	%rdx, %rcx
	setge	%cl
	cmpq	-56(%rbp), %rax
	jle	LBB0_2
## %bb.1:
	movq	%rax, -56(%rbp)
LBB0_2:
	movb	%cl, %sil
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	incq	%r15
	leaq	-64(%rbp), %r13
	leaq	-80(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_rv6xx_can_step_post_div
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_rv6xx_next_post_div_step
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_R600_VCOSTEPPCT_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_rv6xx_next_vco_step
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -96(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%r12, %rdi
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_rv6xx_reached_stepping_target
	testq	%rax, %rax
	jne	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_rv6xx_output_stepping
	movups	-96(%rbp), %xmm0
	movaps	%xmm0, -64(%rbp)
	incq	%r15
	leaq	-64(%rbp), %r13
	jmp	LBB0_3
LBB0_7:
	xorl	%r14d, %r14d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -112(%rbp)                ## 8-byte Folded Reload
	setl	%r14b
	movq	_R600_ENDINGVCOSTEPPCT_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_rv6xx_next_vco_step
	movq	%rax, -136(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, -128(%rbp)
	leaq	-136(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	callq	_rv6xx_reached_stepping_target
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	1(%r15), %r14
	leaq	-136(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_rv6xx_output_stepping
	movq	%r14, %r15
LBB0_9:
	movq	-88(%rbp), %rax
	cmpq	-72(%rbp), %rax
	je	LBB0_12
## %bb.10:
	movq	-80(%rbp), %rcx
	cmpq	%rcx, -96(%rbp)
	je	LBB0_12
## %bb.11:
	movq	%rcx, -152(%rbp)
	movq	%rax, -144(%rbp)
	leaq	1(%r15), %r14
	leaq	-152(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_rv6xx_output_stepping
	movq	%r14, %r15
LBB0_12:
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_rv6xx_output_stepping
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%r15, (%rax)
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_VCOSTEPPCT_DFLT,4,2       ## @R600_VCOSTEPPCT_DFLT
	.comm	_R600_ENDINGVCOSTEPPCT_DFLT,4,2 ## @R600_ENDINGVCOSTEPPCT_DFLT
	.no_dead_strip	_rv6xx_generate_steps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv6xx_generate_steps
_rv6xx_generate_steps:                  ; @rv6xx_generate_steps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x0
	add	x2, sp, #64
	bl	_rv6xx_convert_clock_to_stepping
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x22
	bl	_rv6xx_convert_clock_to_stepping
	add	x2, sp, #64
	mov	x0, x20
	mov	x1, x21
	bl	_rv6xx_output_stepping
	ldp	x23, x8, [sp, #48]
	ldp	x24, x9, [sp, #64]
	cmp	x23, x24
	cset	w22, ge
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	str	x8, [sp, #72]
LBB0_2:
	add	x21, x21, #1
Lloh0:
	adrp	x25, _R600_VCOSTEPPCT_DFLT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _R600_VCOSTEPPCT_DFLT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #64
	add	x2, sp, #48
	mov	x0, x20
	bl	_rv6xx_can_step_post_div
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #64
	add	x2, sp, #48
	mov	x0, x20
	bl	_rv6xx_next_post_div_step
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x25]
	add	x1, sp, #64
	mov	x0, x20
	mov	x2, x22
	bl	_rv6xx_next_vco_step
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	x0, x1, [sp, #32]
	add	x1, sp, #32
	add	x2, sp, #48
	mov	x0, x20
	mov	x3, x22
	bl	_rv6xx_reached_stepping_target
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x2, sp, #32
	mov	x0, x20
	mov	x1, x21
	bl	_rv6xx_output_stepping
	ldr	q0, [sp, #32]
	str	q0, [sp, #64]
	add	x21, x21, #1
	b	LBB0_3
LBB0_8:
	cmp	x23, x24
	cset	w22, lt
Lloh2:
	adrp	x8, _R600_ENDINGVCOSTEPPCT_DFLT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R600_ENDINGVCOSTEPPCT_DFLT@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x1, sp, #48
	mov	x0, x20
	mov	x2, x22
	bl	_rv6xx_next_vco_step
	ldr	x8, [sp, #40]
	stp	x0, x8, [sp, #16]
	add	x1, sp, #16
	add	x2, sp, #64
	mov	x0, x20
	mov	x3, x22
	bl	_rv6xx_reached_stepping_target
	cbnz	x0, LBB0_10
; %bb.9:
	add	x22, x21, #1
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x21
	bl	_rv6xx_output_stepping
	mov	x21, x22
LBB0_10:
	ldr	x8, [sp, #40]
	ldr	x9, [sp, #56]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.11:
	ldr	x10, [sp, #32]
	ldr	x9, [sp, #48]
	cmp	x10, x9
	b.eq	LBB0_13
; %bb.12:
	stp	x9, x8, [sp]
	add	x22, x21, #1
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	bl	_rv6xx_output_stepping
	mov	x21, x22
LBB0_13:
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x21
	bl	_rv6xx_output_stepping
	str	x21, [x19]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_VCOSTEPPCT_DFLT,4,2       ; @R600_VCOSTEPPCT_DFLT
	.comm	_R600_ENDINGVCOSTEPPCT_DFLT,4,2 ; @R600_ENDINGVCOSTEPPCT_DFLT
	.no_dead_strip	_rv6xx_generate_steps
.subsections_via_symbols
