	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_initialize_mc_reg_table ## -- Begin function atomctrl_initialize_mc_reg_table
	.p2align	4, 0x90
_atomctrl_initialize_mc_reg_table:      ## @atomctrl_initialize_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	(%rdi), %ebx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VRAM_Info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	leaq	-28(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-32(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_smu_atom_get_data_table
	cmpq	%r15, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpl	$1, 12(%rax)
	jg	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	$-1, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	cltq
	leaq	(%rbx,%rax,8), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_atomctrl_set_mc_reg_address_table
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_atomctrl_retrieve_ac_timing
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_VRAM_Info,4,2                  ## @VRAM_Info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid VramInfo table."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_initialize_mc_reg_table ; -- Begin function atomctrl_initialize_mc_reg_table
	.p2align	2
_atomctrl_initialize_mc_reg_table:      ; @atomctrl_initialize_mc_reg_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _VRAM_Info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VRAM_Info@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	add	x2, sp, #4
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x21
	bl	_smu_atom_get_data_table
	ldr	x8, [x0]
	cmp	x8, x20
	b.le	LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #12]
	cmp	w8, #1
	b.gt	LBB0_4
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w0, #-1
LBB0_3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
	add	x21, x21, w0, sxtw #3
	mov	x0, x21
	mov	x1, x19
	bl	_atomctrl_set_mc_reg_address_table
	cbnz	w0, LBB0_3
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_atomctrl_retrieve_ac_timing
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_VRAM_Info,4,2                  ; @VRAM_Info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid VramInfo table."

.subsections_via_symbols
