	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apl_get_dimm_config
_apl_get_dimm_config:                   ## @apl_get_dimm_config
	.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
	movq	_APL_NUM_CHANNELS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_20
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_chan_mask@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_edac_dbg
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jge	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%r13), %ebx
	movl	%r15d, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r14), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_EDAC_DIMM_PTR
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_drp0@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_dimms@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rax
	shlq	$5, %rax
	leaq	(%rbx,%rax), %r13
	leaq	(%rbx,%rax), %r12
	addq	$8, %r12
	movl	$16, %r14d
	xorl	%ebx, %ebx
	movq	_dimms@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	callq	_ARRAY_SIZE
	movq	_dimms@GOTPCREL(%rip), %rcx
	cltq
	addq	$40, %r14
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx), %rdi
	movq	-16(%rdi,%r14), %rax
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	-8(%rdi,%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	(%rdi,%r14), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_APL_NUM_CHANNELS@GOTPCREL(%rip), %r12
	movq	_chan_mask@GOTPCREL(%rip), %r13
	jmp	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movq	_dimms@GOTPCREL(%rip), %rcx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rdi
	movq	%rcx, %r14
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_edac_dbg
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%ebx, (%rax,%r15,4)
	movq	%r15, %r12
	shlq	$5, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax,%r12), %r13d
	addl	24(%rax,%r12), %r13d
	shll	$3, %r13d
	movq	(%r14), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,4), %rdx
	movb	24(%rax,%rdx,8), %cl
	movb	32(%rax,%rdx,8), %al
	shlq	%cl, %r13
	movl	%eax, %ecx
	shlq	%cl, %r13
	sarl	$17, %r13d
	xorl	%edi, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_edac_dbg
	movl	%r13d, %edi
	callq	_MiB_TO_PAGES
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 20(%rcx)
	movl	$32, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax,%r12)
	movq	_DEV_X16@GOTPCREL(%rip), %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_DEV_X8@GOTPCREL(%rip), %rax
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	_MEM_DDR3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	_EDAC_SECDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movl	4(%rcx), %edi
	movl	%r15d, %ecx
	shrl	%ecx
	movl	%r15d, %r8d
	andl	$1, %r8d
	movl	$4, %esi
	leaq	L_.str.3(%rip), %rdx
	callq	_snprintf
	movq	_APL_NUM_CHANNELS@GOTPCREL(%rip), %r12
	movq	_chan_mask@GOTPCREL(%rip), %r13
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APL_NUM_CHANNELS,4,2           ## @APL_NUM_CHANNELS
	.comm	_chan_mask,4,2                  ## @chan_mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No allocated DIMM for channel %d\n"

	.comm	_drp0,8,3                       ## @drp0
	.comm	_dimms,8,3                      ## @dimms
L_.str.1:                               ## @.str.1
	.asciz	"Channel %d: unrecognized DIMM\n"

L_.str.2:                               ## @.str.2
	.asciz	"Channel %d: %lld MByte DIMM\n"

	.comm	_DEV_X8,4,2                     ## @DEV_X8
	.comm	_DEV_X16,4,2                    ## @DEV_X16
	.comm	_MEM_DDR3,4,2                   ## @MEM_DDR3
	.comm	_EDAC_SECDED,4,2                ## @EDAC_SECDED
L_.str.3:                               ## @.str.3
	.asciz	"Slice#%d_Chan#%d"

	.no_dead_strip	_apl_get_dimm_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apl_get_dimm_config
_apl_get_dimm_config:                   ; @apl_get_dimm_config
	.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
Lloh0:
	adrp	x23, _APL_NUM_CHANNELS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _APL_NUM_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	ldr	x8, [x0, #16]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh2:
	adrp	x27, _chan_mask@GOTPAGE
Lloh3:
	ldr	x27, [x27, _chan_mask@GOTPAGEOFF]
Lloh4:
	adrp	x24, _dimms@GOTPAGE
Lloh5:
	ldr	x24, [x24, _dimms@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x20
	bl	_edac_dbg
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x23]
	cmp	x20, x8
	b.ge	LBB0_18
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w21, [x27]
	mov	x0, x20
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w1, w0, [x19, #4]
	ldr	w2, [x19]
	mov	x3, x20
	mov	w4, #0
	mov	w5, #0
	bl	_EDAC_DIMM_PTR
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
Lloh8:
	adrp	x8, _drp0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drp0@GOTPAGEOFF]
Lloh10:
	ldr	x26, [x8]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, #0
	mov	x21, #0
	add	x28, x26, x20, lsl #5
	add	x22, x28, #8
	add	x27, x28, #16
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #40
	cmp	x21, w0, sxtw
	b.ge	LBB0_13
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x24]
	ldr	x8, [x0, x23]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x8, x0, x23
	ldr	x9, [x8, #8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x8, #16]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh11:
	adrp	x23, _APL_NUM_CHANNELS@GOTPAGE
Lloh12:
	ldr	x23, [x23, _APL_NUM_CHANNELS@GOTPAGEOFF]
Lloh13:
	adrp	x27, _chan_mask@GOTPAGE
Lloh14:
	ldr	x27, [x27, _chan_mask@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #0
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	str	w21, [x8, x20, lsl #2]
	add	x22, x26, x20, lsl #5
	ldp	w8, w9, [x22, #24]
	add	w8, w9, w8
	lsl	w8, w8, #3
	ldr	x9, [x24]
	mov	w10, #40
	umaddl	x9, w21, w10, x9
	ldp	x10, x9, [x9, #24]
	lsl	x8, x8, x10
	lsl	x8, x8, x9
	asr	w26, w8, #17
	str	x26, [sp]
	mov	w0, #0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_edac_dbg
	mov	x0, x26
	bl	_MiB_TO_PAGES
	str	w0, [x25, #20]
	mov	w8, #32
	str	w8, [x25]
	ldr	x8, [x22, #16]
	cmp	x8, #0
Lloh19:
	adrp	x8, _DEV_X8@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DEV_X8@GOTPAGEOFF]
Lloh21:
	adrp	x9, _DEV_X16@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DEV_X16@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x25, #16]
Lloh23:
	adrp	x8, _MEM_DDR3@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MEM_DDR3@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _EDAC_SECDED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EDAC_SECDED@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x25, #8]
	ldr	w0, [x25, #4]
	lsr	w3, w20, #1
	and	w4, w20, #0x1
	mov	w1, #4
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_snprintf
	b	LBB0_4
LBB0_18:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_APL_NUM_CHANNELS,4,2           ; @APL_NUM_CHANNELS
	.comm	_chan_mask,4,2                  ; @chan_mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No allocated DIMM for channel %d\n"

	.comm	_drp0,8,3                       ; @drp0
	.comm	_dimms,8,3                      ; @dimms
l_.str.1:                               ; @.str.1
	.asciz	"Channel %d: unrecognized DIMM\n"

l_.str.2:                               ; @.str.2
	.asciz	"Channel %d: %lld MByte DIMM\n"

	.comm	_DEV_X8,4,2                     ; @DEV_X8
	.comm	_DEV_X16,4,2                    ; @DEV_X16
	.comm	_MEM_DDR3,4,2                   ; @MEM_DDR3
	.comm	_EDAC_SECDED,4,2                ; @EDAC_SECDED
l_.str.3:                               ; @.str.3
	.asciz	"Slice#%d_Chan#%d"

	.no_dead_strip	_apl_get_dimm_config
.subsections_via_symbols
