	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ni_do_program_memory_timing_parameters
_ni_do_program_memory_timing_parameters: ## @ni_do_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_rv770_get_pi
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ni_get_pi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ni_get_ps
	movl	$0, -48(%rbp)
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movq	%rax, %rcx
	movl	%r13d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %rbx
	xorl	%r13d, %r13d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ni_populate_memory_timing_parameters
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SMC_NIslands_MCArbDramTimingRegisters@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, %rbx
	leal	(%rax,%r13), %r14d
	shll	$2, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax), %r14d
	callq	_offsetof
	addl	%eax, %r14d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	%r14d, %esi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_rv770_copy_bytes_to_smc
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rax
	addq	$4, %r15
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMC_NIslands_MCArbDramTimingRegisters,4,2 ## @SMC_NIslands_MCArbDramTimingRegisters
	.comm	_data,4,2                       ## @data
	.no_dead_strip	_ni_do_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 ni_do_program_memory_timing_parameters
_ni_do_program_memory_timing_parameters: ; @ni_do_program_memory_timing_parameters
	.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	x23, x2
	mov	x22, x1
	mov	x19, x0
	bl	_rv770_get_pi
	mov	x20, x0
	mov	x0, x19
	bl	_ni_get_pi
	mov	x21, x0
	mov	x0, x22
	bl	_ni_get_ps
	str	wzr, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, x0
	mov	x24, #0
	mov	x25, #0
Lloh0:
	adrp	x26, _SMC_NIslands_MCArbDramTimingRegisters@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SMC_NIslands_MCArbDramTimingRegisters@GOTPAGEOFF]
Lloh2:
	adrp	x27, _data@GOTPAGE
Lloh3:
	ldr	x27, [x27, _data@GOTPAGEOFF]
	mov	w23, w23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x1, x8, x24
	add	x2, sp, #8
	mov	x0, x19
	bl	_ni_populate_memory_timing_parameters
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w28, [x21]
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_offsetof
	add	w8, w23, w25
	add	w8, w28, w8, lsl #2
	add	w1, w8, w0
	ldr	w4, [x20]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #4
	bl	_rv770_copy_bytes_to_smc
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_2
LBB0_5:
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SMC_NIslands_MCArbDramTimingRegisters,4,2 ; @SMC_NIslands_MCArbDramTimingRegisters
	.comm	_data,4,2                       ; @data
	.no_dead_strip	_ni_do_program_memory_timing_parameters
.subsections_via_symbols
