	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function polaris10_program_memory_timing_parameters
_polaris10_program_memory_timing_parameters: ## @polaris10_program_memory_timing_parameters
	.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, %r14
	movq	(%rdi), %r15
	movq	8(%rdi), %r12
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	(%r12), %rcx
	xorl	%r13d, %r13d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rcx,%r13,4), %esi
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	callq	_polaris10_populate_memory_timing_parameters
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_atomctrl_set_ac_timing_ai
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	movq	(%r12), %rcx
	cmpq	%rcx, %rbx
	jb	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%rax, %r13
	jb	LBB0_2
LBB0_10:
	movl	(%r15), %esi
	movq	_SMC_RAM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_smu7_copy_bytes_to_smc
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMC_RAM_END,4,2                ## @SMC_RAM_END
	.no_dead_strip	_polaris10_program_memory_timing_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function polaris10_program_memory_timing_parameters
_polaris10_program_memory_timing_parameters: ; @polaris10_program_memory_timing_parameters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldp	x21, x22, [x0]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x23, #0
	ldr	x9, [x22]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, x8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #24]
	ldr	w1, [x8, x23, lsl #2]
	ldr	x8, [x22, #8]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_polaris10_populate_memory_timing_parameters
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	mov	x2, x20
	bl	_atomctrl_set_ac_timing_ai
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x20, x20, #1
	ldr	x9, [x22]
	cmp	x20, x9
	b.lo	LBB0_6
	b	LBB0_2
LBB0_9:
	ldr	w1, [x21]
Lloh0:
	adrp	x8, _SMC_RAM_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMC_RAM_END@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #4
	bl	_smu7_copy_bytes_to_smc
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMC_RAM_END,4,2                ; @SMC_RAM_END
	.no_dead_strip	_polaris10_program_memory_timing_parameters
.subsections_via_symbols
