	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_populate_mc_reg_table
_si_populate_mc_reg_table:              ## @si_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
	pushq	%rax
	.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, %r12
	movq	%rsi, %rdi
	callq	_ni_get_ps
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_si_get_pi
	movq	%rax, %rbx
	leaq	24(%rax), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_SI_SMC_SOFT_REGISTER_seq_index@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_si_write_smc_soft_register
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_si_populate_mc_reg_addresses
	movq	(%r13), %rsi
	movq	_SISLANDS_MCREGISTERTABLE_INITIAL_SLOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$2, %rdx
	addq	24(%rbx), %rdx
	movq	%r12, %rdi
	callq	_si_convert_mc_reg_table_entry_to_smc
	movq	16(%rbx), %rdi
	movq	_SISLANDS_MCREGISTERTABLE_ACPI_SLOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	24(%rbx), %rsi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	callq	_si_convert_mc_registers
	cmpq	$0, 40(%rbx)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rsi
	addq	$32, %rsi
	movq	_SISLANDS_MCREGISTERTABLE_ULV_SLOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movq	%r12, %rdi
	callq	_si_convert_mc_reg_table_entry_to_smc
	jmp	LBB0_4
LBB0_3:
	movq	16(%rbx), %rdi
	movq	_SISLANDS_MCREGISTERTABLE_ULV_SLOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	24(%rbx), %rsi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	callq	_si_convert_mc_registers
LBB0_4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_si_convert_mc_reg_table_to_smc
	movl	(%rbx), %r8d
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	$8, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_si_copy_bytes_to_smc           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SI_SMC_SOFT_REGISTER_seq_index,4,2 ## @SI_SMC_SOFT_REGISTER_seq_index
	.comm	_SISLANDS_MCREGISTERTABLE_INITIAL_SLOT,8,3 ## @SISLANDS_MCREGISTERTABLE_INITIAL_SLOT
	.comm	_SISLANDS_MCREGISTERTABLE_ACPI_SLOT,8,3 ## @SISLANDS_MCREGISTERTABLE_ACPI_SLOT
	.comm	_SISLANDS_MCREGISTERTABLE_ULV_SLOT,8,3 ## @SISLANDS_MCREGISTERTABLE_ULV_SLOT
	.no_dead_strip	_si_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 si_populate_mc_reg_table
_si_populate_mc_reg_table:              ; @si_populate_mc_reg_table
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ni_get_ps
	mov	x23, x0
	mov	x0, x19
	bl	_si_get_pi
	mov	x22, x0
	add	x21, x0, #24
	mov	x0, x21
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _SI_SMC_SOFT_REGISTER_seq_index@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SI_SMC_SOFT_REGISTER_seq_index@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_si_write_smc_soft_register
	mov	x0, x19
	mov	x1, x21
	bl	_si_populate_mc_reg_addresses
	ldr	x1, [x23]
	ldr	x8, [x22, #24]
Lloh3:
	adrp	x9, _SISLANDS_MCREGISTERTABLE_INITIAL_SLOT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SISLANDS_MCREGISTERTABLE_INITIAL_SLOT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x2, x8, x9, lsl #2
	mov	x0, x19
	bl	_si_convert_mc_reg_table_entry_to_smc
	ldp	x0, x8, [x22, #16]
Lloh6:
	adrp	x9, _SISLANDS_MCREGISTERTABLE_ACPI_SLOT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SISLANDS_MCREGISTERTABLE_ACPI_SLOT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	ldp	w3, w2, [x22, #8]
	bl	_si_convert_mc_registers
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x1, x22
	ldr	x8, [x1, #32]!
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _SISLANDS_MCREGISTERTABLE_ULV_SLOT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SISLANDS_MCREGISTERTABLE_ULV_SLOT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x2, x8, x9, lsl #2
	mov	x0, x19
	bl	_si_convert_mc_reg_table_entry_to_smc
	b	LBB0_4
LBB0_3:
	ldp	x0, x8, [x22, #16]
Lloh12:
	adrp	x9, _SISLANDS_MCREGISTERTABLE_ULV_SLOT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SISLANDS_MCREGISTERTABLE_ULV_SLOT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	ldp	w3, w2, [x22, #8]
	bl	_si_convert_mc_registers
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_si_convert_mc_reg_table_to_smc
	ldp	w4, w1, [x22]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #8
	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
	b	_si_copy_bytes_to_smc
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SI_SMC_SOFT_REGISTER_seq_index,4,2 ; @SI_SMC_SOFT_REGISTER_seq_index
	.comm	_SISLANDS_MCREGISTERTABLE_INITIAL_SLOT,8,3 ; @SISLANDS_MCREGISTERTABLE_INITIAL_SLOT
	.comm	_SISLANDS_MCREGISTERTABLE_ACPI_SLOT,8,3 ; @SISLANDS_MCREGISTERTABLE_ACPI_SLOT
	.comm	_SISLANDS_MCREGISTERTABLE_ULV_SLOT,8,3 ; @SISLANDS_MCREGISTERTABLE_ULV_SLOT
	.no_dead_strip	_si_populate_mc_reg_table
.subsections_via_symbols
