	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ni_populate_mc_reg_table
_ni_populate_mc_reg_table:              ## @ni_populate_mc_reg_table
	.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, %rbx
	callq	_rv770_get_pi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_evergreen_get_pi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ni_get_pi
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_ni_get_ps
	movq	%rax, %r12
	leaq	16(%r15), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_NI_SMC_SOFT_REGISTER_seq_index@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rv770_write_smc_soft_register
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ni_populate_mc_reg_addresses
	movq	(%r12), %rsi
	movq	16(%r15), %rdx
	movq	%rbx, %rdi
	callq	_ni_convert_mc_reg_table_entry_to_smc
	movq	8(%r15), %rdi
	movq	16(%r15), %rsi
	addq	$4, %rsi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	callq	_ni_convert_mc_registers
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_ni_convert_mc_reg_table_to_smc
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movl	$8, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rv770_copy_bytes_to_smc        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_SMC_SOFT_REGISTER_seq_index,4,2 ## @NI_SMC_SOFT_REGISTER_seq_index
	.no_dead_strip	_ni_populate_mc_reg_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ni_populate_mc_reg_table
_ni_populate_mc_reg_table:              ; @ni_populate_mc_reg_table
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	bl	_rv770_get_pi
	mov	x21, x0
	mov	x0, x19
	bl	_evergreen_get_pi
	mov	x22, x0
	mov	x0, x19
	bl	_ni_get_pi
	mov	x23, x0
	mov	x0, x20
	bl	_ni_get_ps
	mov	x24, x0
	add	x25, x23, #16
	mov	x0, x25
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _NI_SMC_SOFT_REGISTER_seq_index@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NI_SMC_SOFT_REGISTER_seq_index@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_rv770_write_smc_soft_register
	mov	x0, x19
	mov	x1, x25
	bl	_ni_populate_mc_reg_addresses
	ldr	x1, [x24]
	ldr	x2, [x23, #16]
	mov	x0, x19
	bl	_ni_convert_mc_reg_table_entry_to_smc
	ldp	x0, x8, [x23, #8]
	add	x1, x8, #4
	ldp	w3, w2, [x23]
	bl	_ni_convert_mc_registers
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	bl	_ni_convert_mc_reg_table_to_smc
	ldr	w1, [x22]
	ldr	w4, [x21]
	mov	x0, x19
	mov	x2, x25
	mov	w3, #8
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rv770_copy_bytes_to_smc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_SMC_SOFT_REGISTER_seq_index,4,2 ; @NI_SMC_SOFT_REGISTER_seq_index
	.no_dead_strip	_ni_populate_mc_reg_table
.subsections_via_symbols
