	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_dram_get_channel_info
_skl_dram_get_channel_info:             ## @skl_dram_get_channel_info
	.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
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	24(%rsi), %r15
	movzwl	%bx, %r8d
	movq	%r15, %rsi
	movl	$76, %ecx
	callq	_skl_dram_get_dimm_info
	leaq	8(%r13), %rax
	sarl	$16, %ebx
	movq	%r14, %rdi
	movq	%rax, %r14
	movq	%rax, %rsi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	movl	$83, %ecx
	movl	%ebx, %r8d
	callq	_skl_dram_get_dimm_info
	cmpq	$0, 24(%r13)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%r14)
	je	LBB0_12
LBB0_2:
	movl	32(%r13), %eax
	cmpl	$2, %eax
	je	LBB0_4
## %bb.3:
	movl	16(%r13), %ecx
	cmpl	$2, %ecx
	je	LBB0_4
## %bb.9:
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.10:
	cmpl	$1, %ecx
	jne	LBB0_13
LBB0_4:
	movl	$2, (%r13)
LBB0_5:
	movq	%r15, %rdi
	callq	_skl_is_16gb_dimm
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_skl_is_16gb_dimm
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_7:
	movl	%edi, 4(%r13)
	movl	(%r13), %ebx
	callq	_yesno
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_13:
	movl	$1, (%r13)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CH%u not populated\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"CH%u ranks: %u, 16Gb DIMMs: %s\n"

	.no_dead_strip	_skl_dram_get_channel_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_dram_get_channel_info
_skl_dram_get_channel_info:             ; @skl_dram_get_channel_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x24, x0
	add	x21, x1, #24
	and	w4, w3, #0xffff
	mov	x1, x21
	mov	w3, #76
	bl	_skl_dram_get_dimm_info
	add	x22, x20, #8
	asr	w4, w23, #16
	mov	x0, x24
	mov	x1, x22
	mov	x2, x19
	mov	w3, #83
	bl	_skl_dram_get_dimm_info
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_12
LBB0_2:
	ldr	w8, [x20, #32]
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.3:
	ldr	w9, [x20, #16]
	cmp	w9, #2
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.5:
	cmp	w9, #1
	b.ne	LBB0_13
LBB0_6:
	mov	w8, #2
LBB0_7:
	str	w8, [x20]
	mov	x0, x21
	bl	_skl_is_16gb_dimm
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	x0, x22
	bl	_skl_is_16gb_dimm
	cmp	x0, #0
	cset	w0, ne
LBB0_10:
	str	w0, [x20, #4]
	ldr	w20, [x20]
	bl	_yesno
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #80
	ret
LBB0_12:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_13:
	mov	w8, #1
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CH%u not populated\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"CH%u ranks: %u, 16Gb DIMMs: %s\n"

	.no_dead_strip	_skl_dram_get_channel_info
.subsections_via_symbols
