	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_stolen_size_chv
_intel_stolen_size_chv:                 ## @intel_stolen_size_chv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SNB_GMCH_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$2, %r8d
	callq	_pci_cfgregread
	movl	%eax, %ebx
	movq	_SNB_GMCH_GMS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_SNB_GMCH_GMS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	cmpl	$16, %ebx
	jg	LBB0_2
## %bb.1:
	movl	$32, %edi
	callq	_MiB
	imull	%ebx, %eax
	jmp	LBB0_6
LBB0_2:
	cmpl	$22, %ebx
	ja	LBB0_4
## %bb.3:
	addl	$-17, %ebx
	movl	$4, %edi
	callq	_MiB
	movl	%eax, %r14d
	imull	%ebx, %r14d
	movl	$8, %edi
	jmp	LBB0_5
LBB0_4:
	addl	$-23, %ebx
	movl	$4, %edi
	callq	_MiB
	movl	%eax, %r14d
	imull	%ebx, %r14d
	movl	$36, %edi
LBB0_5:
	callq	_MiB
	addl	%r14d, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNB_GMCH_CTRL,4,2              ## @SNB_GMCH_CTRL
	.comm	_SNB_GMCH_GMS_SHIFT,4,2         ## @SNB_GMCH_GMS_SHIFT
	.comm	_SNB_GMCH_GMS_MASK,4,2          ## @SNB_GMCH_GMS_MASK
	.no_dead_strip	_intel_stolen_size_chv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_stolen_size_chv
_intel_stolen_size_chv:                 ; @intel_stolen_size_chv
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _SNB_GMCH_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNB_GMCH_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w4, #2
	bl	_pci_cfgregread
Lloh3:
	adrp	x8, _SNB_GMCH_GMS_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNB_GMCH_GMS_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh6:
	adrp	x9, _SNB_GMCH_GMS_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SNB_GMCH_GMS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w19, w8, w9
	cmp	w19, #16
	b.gt	LBB0_2
; %bb.1:
	mov	w0, #32
	bl	_MiB
	mul	w0, w0, w19
	b	LBB0_6
LBB0_2:
	cmp	w19, #22
	b.hi	LBB0_4
; %bb.3:
	sub	w20, w19, #17
	mov	w0, #4
	bl	_MiB
	mov	x19, x0
	mov	w0, #8
	b	LBB0_5
LBB0_4:
	sub	w20, w19, #23
	mov	w0, #4
	bl	_MiB
	mov	x19, x0
	mov	w0, #36
LBB0_5:
	bl	_MiB
	madd	w0, w19, w20, w0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNB_GMCH_CTRL,4,2              ; @SNB_GMCH_CTRL
	.comm	_SNB_GMCH_GMS_SHIFT,4,2         ; @SNB_GMCH_GMS_SHIFT
	.comm	_SNB_GMCH_GMS_MASK,4,2          ; @SNB_GMCH_GMS_MASK
	.no_dead_strip	_intel_stolen_size_chv
.subsections_via_symbols
