	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_dram_get_channels_info
_skl_dram_get_channels_info:            ## @skl_dram_get_channels_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -32(%rbp)
	movq	_SKL_MAD_DIMM_CH0_0_0_0_MCHBAR_MCMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_skl_dram_get_channel_info
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	incq	(%rbx)
LBB0_2:
	movq	_SKL_MAD_DIMM_CH1_0_0_0_MCHBAR_MCMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_skl_dram_get_channel_info
	movq	(%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	testq	%rcx, %rcx
	je	LBB0_5
LBB0_7:
	movl	-48(%rbp), %edi
	cmpl	$1, %edi
	je	LBB0_9
## %bb.8:
	movl	-32(%rbp), %esi
	cmpl	$1, %esi
	je	LBB0_9
## %bb.12:
	callq	_max
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	incq	%rcx
	movq	%rcx, (%rbx)
	testq	%rcx, %rcx
	jne	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
LBB0_6:
	callq	_DRM_INFO
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_9:
	movl	$1, 8(%rbx)
LBB0_10:
	movq	-40(%rbp), %rax
	xorl	%ecx, %ecx
	orq	-24(%rbp), %rax
	setne	%cl
	movl	%ecx, 12(%rbx)
	leaq	-48(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_intel_is_dram_symmetric
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_yesno
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SKL_MAD_DIMM_CH0_0_0_0_MCHBAR_MCMAIN,4,2 ## @SKL_MAD_DIMM_CH0_0_0_0_MCHBAR_MCMAIN
	.comm	_SKL_MAD_DIMM_CH1_0_0_0_MCHBAR_MCMAIN,4,2 ## @SKL_MAD_DIMM_CH1_0_0_0_MCHBAR_MCMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Number of memory channels is zero\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"couldn't get memory rank information\n"

L_.str.2:                               ## @.str.2
	.asciz	"Memory configuration is symmetric? %s\n"

	.no_dead_strip	_skl_dram_get_channels_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_channels_info
_skl_dram_get_channels_info:            ; @skl_dram_get_channels_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _SKL_MAD_DIMM_CH0_0_0_0_MCHBAR_MCMAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SKL_MAD_DIMM_CH0_0_0_0_MCHBAR_MCMAIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x3, x0
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #0
	bl	_skl_dram_get_channel_info
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_2:
Lloh3:
	adrp	x8, _SKL_MAD_DIMM_CH1_0_0_0_MCHBAR_MCMAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SKL_MAD_DIMM_CH1_0_0_0_MCHBAR_MCMAIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x3, x0
	mov	x1, sp
	mov	x0, x19
	mov	w2, #1
	bl	_skl_dram_get_channel_info
	ldr	x8, [x19]
	cbz	w0, LBB0_8
; %bb.3:
	cbz	x8, LBB0_9
LBB0_4:
	ldr	w0, [sp, #16]
	cmp	w0, #1
	b.eq	LBB0_11
; %bb.5:
	ldr	w1, [sp]
	cmp	w1, #1
	b.eq	LBB0_11
; %bb.6:
	bl	_max
	str	w0, [x19, #8]
	cbnz	w0, LBB0_12
; %bb.7:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	add	x8, x8, #1
	str	x8, [x19]
	cbnz	x8, LBB0_4
LBB0_9:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	bl	_DRM_INFO
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_11:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_12:
	ldr	x8, [sp, #24]
	ldr	x9, [sp, #8]
	orr	x8, x8, x9
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x19, #12]
	add	x0, sp, #16
	mov	x1, sp
	bl	_intel_is_dram_symmetric
	str	w0, [x19, #16]
	bl	_yesno
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SKL_MAD_DIMM_CH0_0_0_0_MCHBAR_MCMAIN,4,2 ; @SKL_MAD_DIMM_CH0_0_0_0_MCHBAR_MCMAIN
	.comm	_SKL_MAD_DIMM_CH1_0_0_0_MCHBAR_MCMAIN,4,2 ; @SKL_MAD_DIMM_CH1_0_0_0_MCHBAR_MCMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Number of memory channels is zero\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"couldn't get memory rank information\n"

l_.str.2:                               ; @.str.2
	.asciz	"Memory configuration is symmetric? %s\n"

	.no_dead_strip	_skl_dram_get_channels_info
.subsections_via_symbols
