	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd64_determine_memory_type
_amd64_determine_memory_type:           ## @amd64_determine_memory_type
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_boot_cpu_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$21, %eax
	jl	LBB0_2
## %bb.1:
	movl	(%rdi), %ebx
	movl	$16, %edi
	callq	_BIT
	andl	%ebx, %eax
	movq	_MEM_RDDR3@GOTPCREL(%rip), %rdx
	movq	_MEM_DDR3@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	cmpl	$16, %eax
	je	LBB0_4
## %bb.3:
	movq	8(%rdi), %rax
	movq	_K8_REV_F@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.5:
	movl	(%rdi), %ebx
	movl	$18, %edi
	callq	_BIT
	andl	%ebx, %eax
	movq	_MEM_RDDR@GOTPCREL(%rip), %rdx
	movq	_MEM_DDR@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_DDR3_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	16(%rdi), %ebx
	movl	(%rdi), %r15d
	movl	$16, %edi
	callq	_BIT
	andl	%r15d, %eax
	testl	%ebx, %ebx
	movq	_MEM_DDR3@GOTPCREL(%rip), %rcx
	cmoveq	_MEM_DDR2@GOTPCREL(%rip), %rcx
	movq	_MEM_RDDR3@GOTPCREL(%rip), %rdx
	cmoveq	_MEM_RDDR2@GOTPCREL(%rip), %rdx
LBB0_6:
	testl	%eax, %eax
	cmoveq	%rdx, %rcx
	movl	(%rcx), %ebx
	movq	_edac_mem_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_amd64_info
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_boot_cpu_data,4,2              ## @boot_cpu_data
	.comm	_MEM_DDR3,4,2                   ## @MEM_DDR3
	.comm	_MEM_RDDR3,4,2                  ## @MEM_RDDR3
	.comm	_K8_REV_F,8,3                   ## @K8_REV_F
	.comm	_DDR3_MODE,4,2                  ## @DDR3_MODE
	.comm	_MEM_DDR2,4,2                   ## @MEM_DDR2
	.comm	_MEM_RDDR2,4,2                  ## @MEM_RDDR2
	.comm	_MEM_DDR,4,2                    ## @MEM_DDR
	.comm	_MEM_RDDR,4,2                   ## @MEM_RDDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CS%d: %s\n"

	.comm	_edac_mem_types,8,3             ## @edac_mem_types
	.no_dead_strip	_amd64_determine_memory_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd64_determine_memory_type
_amd64_determine_memory_type:           ; @amd64_determine_memory_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _boot_cpu_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _boot_cpu_data@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #21
	b.lt	LBB0_2
; %bb.1:
	ldr	w20, [x0]
	mov	w0, #16
	bl	_BIT
	and	w8, w0, w20
Lloh3:
	adrp	x10, _MEM_RDDR3@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MEM_RDDR3@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MEM_DDR3@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MEM_DDR3@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	cmp	w8, #16
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x0, #8]
Lloh7:
	adrp	x9, _K8_REV_F@GOTPAGE
Lloh8:
	ldr	x9, [x9, _K8_REV_F@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	ldr	w20, [x0]
	mov	w0, #18
	bl	_BIT
	and	w8, w0, w20
Lloh10:
	adrp	x10, _MEM_RDDR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MEM_RDDR@GOTPAGEOFF]
Lloh12:
	adrp	x9, _MEM_DDR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MEM_DDR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	w20, [x0, #16]
Lloh14:
	adrp	x8, _DDR3_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DDR3_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	ldr	w22, [x0]
	mov	w0, #16
	bl	_BIT
	and	w8, w0, w22
Lloh17:
	adrp	x9, _MEM_DDR3@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MEM_DDR3@GOTPAGEOFF]
Lloh19:
	adrp	x10, _MEM_DDR2@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MEM_DDR2@GOTPAGEOFF]
	tst	w21, w20
	csel	x9, x10, x9, eq
Lloh21:
	adrp	x10, _MEM_RDDR3@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MEM_RDDR3@GOTPAGEOFF]
Lloh23:
	adrp	x11, _MEM_RDDR2@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MEM_RDDR2@GOTPAGEOFF]
	csel	x10, x11, x10, eq
LBB0_6:
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w20, [x8]
Lloh25:
	adrp	x8, _edac_mem_types@GOTPAGE
Lloh26:
	ldr	x8, [x8, _edac_mem_types@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	w2, [x8, x20, lsl #2]
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_amd64_info
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_boot_cpu_data,4,2              ; @boot_cpu_data
	.comm	_MEM_DDR3,4,2                   ; @MEM_DDR3
	.comm	_MEM_RDDR3,4,2                  ; @MEM_RDDR3
	.comm	_K8_REV_F,8,3                   ; @K8_REV_F
	.comm	_DDR3_MODE,4,2                  ; @DDR3_MODE
	.comm	_MEM_DDR2,4,2                   ; @MEM_DDR2
	.comm	_MEM_RDDR2,4,2                  ; @MEM_RDDR2
	.comm	_MEM_DDR,4,2                    ; @MEM_DDR
	.comm	_MEM_RDDR,4,2                   ; @MEM_RDDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CS%d: %s\n"

	.comm	_edac_mem_types,8,3             ; @edac_mem_types
	.no_dead_strip	_amd64_determine_memory_type
.subsections_via_symbols
