	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_memory_type
_get_memory_type:                       ## @get_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
	subq	$16, %rsp
	movq	%rdi, %rax
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-4(%rbp), %edi
	movl	$11, %esi
	movl	$11, %edx
	callq	_GET_BITFIELD
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_MEM_DDR3@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_MEM_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_MEM_RDDR3@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM_RDDR3,4,2                  ## @MEM_RDDR3
	.comm	_MEM_DDR3,4,2                   ## @MEM_DDR3
	.comm	_MEM_UNKNOWN,4,2                ## @MEM_UNKNOWN
	.no_dead_strip	_get_memory_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_memory_type
_get_memory_type:                       ; @get_memory_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x8, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_pci_read_config_dword
	ldur	w0, [x29, #-4]
	mov	w1, #11
	mov	w2, #11
	bl	_GET_BITFIELD
Lloh0:
	adrp	x8, _MEM_RDDR3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEM_RDDR3@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MEM_DDR3@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MEM_DDR3@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _MEM_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MEM_UNKNOWN@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM_RDDR3,4,2                  ; @MEM_RDDR3
	.comm	_MEM_DDR3,4,2                   ; @MEM_DDR3
	.comm	_MEM_UNKNOWN,4,2                ; @MEM_UNKNOWN
	.no_dead_strip	_get_memory_type
.subsections_via_symbols
