	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5100_init_interleaving
_i5100_init_interleaving:               ## @i5100_init_interleaving
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r13
	movq	40(%r13), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)
	movq	32(%r13), %rax
	movq	%rax, -56(%rbp)
	movq	_I5100_TOLM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %r12
	movq	%r12, %rdx
	callq	_pci_read_config_word
	movq	-72(%rbp), %rdi
	callq	_i5100_tolm_tolm
	shll	$28, %eax
	movl	%eax, (%r13)
	movq	_I5100_MIR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_pci_read_config_word
	movq	-72(%rbp), %rdi
	callq	_i5100_mir_limit
	shll	$28, %eax
	movq	24(%r13), %rcx
	movl	%eax, (%rcx)
	movq	-72(%rbp), %rdi
	callq	_i5100_mir_way1
	movq	24(%r13), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	-72(%rbp), %rdi
	callq	_i5100_mir_way0
	movq	24(%r13), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	_I5100_MIR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_pci_read_config_word
	movq	-72(%rbp), %rdi
	callq	_i5100_mir_limit
	shll	$28, %eax
	movq	24(%r13), %rcx
	movl	%eax, 16(%rcx)
	movq	-72(%rbp), %rdi
	callq	_i5100_mir_way1
	movq	24(%r13), %rcx
	movq	24(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	-72(%rbp), %rdi
	callq	_i5100_mir_way0
	movq	24(%r13), %rcx
	movq	24(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	_I5100_AMIR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_pci_read_config_word
	movq	-72(%rbp), %rax
	movq	16(%r13), %rcx
	movq	%rax, (%rcx)
	movq	_I5100_AMIR_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_pci_read_config_word
	movq	-72(%rbp), %rax
	movq	16(%r13), %rcx
	movq	%rax, 8(%rcx)
	movq	_I5100_CHANNELS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.1:
	xorl	%r12d, %r12d
	movq	_I5100_MAX_RANKS_PER_DIMM@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-104(%rbp), %r15                ## 8-byte Reload
	incq	%r15
	cmpq	$5, %r15
	je	LBB0_7
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	leaq	(,%r15,4), %rsi
	movq	_I5100_DMIR@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-76(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-76(%rbp), %edi
	callq	_i5100_dmir_limit
	shll	$28, %eax
	movq	8(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	shlq	$4, %r15
	movl	%eax, (%rcx,%r15)
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-76(%rbp), %edi
	movl	%ebx, %esi
	callq	_i5100_dmir_rank
	movq	8(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	8(%rcx,%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	_I5100_CHANNELS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp,%r12,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_9:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_i5100_init_mtr
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I5100_TOLM,4,2                 ## @I5100_TOLM
	.comm	_I5100_MIR0,4,2                 ## @I5100_MIR0
	.comm	_I5100_MIR1,4,2                 ## @I5100_MIR1
	.comm	_I5100_AMIR_0,4,2               ## @I5100_AMIR_0
	.comm	_I5100_AMIR_1,4,2               ## @I5100_AMIR_1
	.comm	_I5100_CHANNELS,4,2             ## @I5100_CHANNELS
	.comm	_I5100_DMIR,8,3                 ## @I5100_DMIR
	.comm	_I5100_MAX_RANKS_PER_DIMM,4,2   ## @I5100_MAX_RANKS_PER_DIMM
	.no_dead_strip	_i5100_init_interleaving
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5100_init_interleaving
_i5100_init_interleaving:               ; @i5100_init_interleaving
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x22, [x1]
	ldp	x8, x20, [x22, #32]
	stp	x20, x8, [sp, #24]
Lloh3:
	adrp	x8, _I5100_TOLM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I5100_TOLM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_pci_read_config_word
	ldr	x0, [sp, #16]
	bl	_i5100_tolm_tolm
	lsl	w8, w0, #28
	str	w8, [x22]
Lloh6:
	adrp	x8, _I5100_MIR0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I5100_MIR0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x21
	bl	_pci_read_config_word
	ldr	x0, [sp, #16]
	bl	_i5100_mir_limit
	lsl	w8, w0, #28
	ldr	x9, [x22, #24]
	str	w8, [x9]
	ldr	x0, [sp, #16]
	bl	_i5100_mir_way1
	ldr	x8, [x22, #24]
	ldr	x8, [x8, #8]
	str	x0, [x8, #8]
	ldr	x0, [sp, #16]
	bl	_i5100_mir_way0
	ldr	x8, [x22, #24]
	ldr	x8, [x8, #8]
	str	x0, [x8]
Lloh9:
	adrp	x8, _I5100_MIR1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I5100_MIR1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x21
	bl	_pci_read_config_word
	ldr	x0, [sp, #16]
	bl	_i5100_mir_limit
	lsl	w8, w0, #28
	ldr	x9, [x22, #24]
	str	w8, [x9, #16]
	ldr	x0, [sp, #16]
	bl	_i5100_mir_way1
	ldr	x8, [x22, #24]
	ldr	x8, [x8, #24]
	str	x0, [x8, #8]
	ldr	x0, [sp, #16]
	bl	_i5100_mir_way0
	ldr	x8, [x22, #24]
	ldr	x8, [x8, #24]
	str	x0, [x8]
Lloh12:
	adrp	x8, _I5100_AMIR_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I5100_AMIR_0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x21
	bl	_pci_read_config_word
	ldr	x8, [sp, #16]
	ldr	x9, [x22, #16]
	str	x8, [x9]
Lloh15:
	adrp	x8, _I5100_AMIR_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I5100_AMIR_1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x21
	bl	_pci_read_config_word
	ldr	x8, [sp, #16]
	ldr	x9, [x22, #16]
	str	x8, [x9, #8]
Lloh18:
	adrp	x23, _I5100_CHANNELS@GOTPAGE
Lloh19:
	ldr	x23, [x23, _I5100_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x24, #0
Lloh20:
	adrp	x25, _I5100_DMIR@GOTPAGE
Lloh21:
	ldr	x25, [x25, _I5100_DMIR@GOTPAGEOFF]
Lloh22:
	adrp	x26, _I5100_MAX_RANKS_PER_DIMM@GOTPAGE
Lloh23:
	ldr	x26, [x26, _I5100_MAX_RANKS_PER_DIMM@GOTPAGEOFF]
	add	x27, sp, #24
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
	mov	x28, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x28, x28, #1
	cmp	x28, #5
	b.eq	LBB0_7
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
	ldr	x8, [x25]
	add	x1, x8, x28, lsl #2
	add	x2, sp, #12
	mov	x0, x20
	bl	_pci_read_config_dword
	ldr	w0, [sp, #12]
	bl	_i5100_dmir_limit
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x24, lsl #3]
	lsl	w9, w0, #28
	lsl	x10, x28, #4
	str	w9, [x8, x10]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x21, #0
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [sp, #12]
	mov	x1, x21
	bl	_i5100_dmir_rank
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x24, lsl #3]
	add	x8, x8, x28, lsl #4
	ldr	x8, [x8, #8]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x26]
	cmp	x21, x8
	b.lt	LBB0_6
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x27, x24, lsl #3]
	b	LBB0_2
LBB0_9:
	mov	x0, x19
	bl	_i5100_init_mtr
	ldr	x8, [sp, #40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_I5100_TOLM,4,2                 ; @I5100_TOLM
	.comm	_I5100_MIR0,4,2                 ; @I5100_MIR0
	.comm	_I5100_MIR1,4,2                 ; @I5100_MIR1
	.comm	_I5100_AMIR_0,4,2               ; @I5100_AMIR_0
	.comm	_I5100_AMIR_1,4,2               ; @I5100_AMIR_1
	.comm	_I5100_CHANNELS,4,2             ; @I5100_CHANNELS
	.comm	_I5100_DMIR,8,3                 ; @I5100_DMIR
	.comm	_I5100_MAX_RANKS_PER_DIMM,4,2   ; @I5100_MAX_RANKS_PER_DIMM
	.no_dead_strip	_i5100_init_interleaving
.subsections_via_symbols
