	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cper_dimm_err_location
_cper_dimm_err_location:                ## @cper_dimm_err_location
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	_CPER_MEM_VALID_MODULE_HANDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_7
## %bb.2:
	movq	%rsi, %r14
	movq	_CPER_REC_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	decq	%r15
	movl	4(%rbx), %edi
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_dmi_memdev_name
	movq	-40(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	movq	-32(%rbp), %r8
	testq	%r8, %r8
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_6
LBB0_5:
	movl	4(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_6:
	movb	$0, (%r14,%rax)
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPER_MEM_VALID_MODULE_HANDLE,4,2 ## @CPER_MEM_VALID_MODULE_HANDLE
	.comm	_CPER_REC_LEN,8,3               ## @CPER_REC_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DIMM location: %s %s "

L_.str.1:                               ## @.str.1
	.asciz	"DIMM location: not present. DMI handle: 0x%.4x "

	.no_dead_strip	_cper_dimm_err_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cper_dimm_err_location
_cper_dimm_err_location:                ; @cper_dimm_err_location
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	stp	xzr, xzr, [sp, #16]
	cbz	x1, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CPER_MEM_VALID_MODULE_HANDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CPER_MEM_VALID_MODULE_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x19, x1
Lloh3:
	adrp	x8, _CPER_REC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPER_REC_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x20, x8, #1
	ldr	w0, [x21, #4]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_dmi_memdev_name
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x9, [sp, #16]
	cbz	x9, LBB0_6
; %bb.4:
	stp	x8, x9, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_snprintf
	strb	wzr, [x19, x0]
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CPER_MEM_VALID_MODULE_HANDLE,4,2 ; @CPER_MEM_VALID_MODULE_HANDLE
	.comm	_CPER_REC_LEN,8,3               ; @CPER_REC_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DIMM location: %s %s "

l_.str.1:                               ; @.str.1
	.asciz	"DIMM location: not present. DMI handle: 0x%.4x "

	.no_dead_strip	_cper_dimm_err_location
.subsections_via_symbols
