	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc20621_detect_dimm
_pdc20621_detect_dimm:                  ## @pdc20621_detect_dimm
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	movq	_PDC_DIMM0_SPD_DEV_ADDRESS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_PDC_DIMM_SPD_SYSTEM_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	callq	_pdc20621_i2c_read
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movl	$100, %eax
	cmpl	$100, -20(%rbp)
	je	LBB0_4
## %bb.2:
	movl	(%r14), %esi
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$9, %edx
	callq	_pdc20621_i2c_read
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	cmpl	$118, -20(%rbp)
	movl	$133, %eax
	cmovgel	%ecx, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDC_DIMM0_SPD_DEV_ADDRESS,4,2  ## @PDC_DIMM0_SPD_DEV_ADDRESS
	.comm	_PDC_DIMM_SPD_SYSTEM_FREQ,4,2   ## @PDC_DIMM_SPD_SYSTEM_FREQ
	.no_dead_strip	_pdc20621_detect_dimm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc20621_detect_dimm
_pdc20621_detect_dimm:                  ; @pdc20621_detect_dimm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x20, _PDC_DIMM0_SPD_DEV_ADDRESS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PDC_DIMM0_SPD_DEV_ADDRESS@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _PDC_DIMM_SPD_SYSTEM_FREQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PDC_DIMM_SPD_SYSTEM_FREQ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_pdc20621_i2c_read
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #100
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #100
	b	LBB0_5
LBB0_3:
	ldr	w1, [x20]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #9
	bl	_pdc20621_i2c_read
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
	mov	w9, #133
	cmp	w8, #118
	csel	w0, w9, wzr, lt
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PDC_DIMM0_SPD_DEV_ADDRESS,4,2  ; @PDC_DIMM0_SPD_DEV_ADDRESS
	.comm	_PDC_DIMM_SPD_SYSTEM_FREQ,4,2   ; @PDC_DIMM_SPD_SYSTEM_FREQ
	.no_dead_strip	_pdc20621_detect_dimm
.subsections_via_symbols
