	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apei_read_mce                  ## -- Begin function apei_read_mce
	.p2align	4, 0x90
_apei_read_mce:                         ## @apei_read_mce
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-44(%rbp), %rdi
	callq	_erst_get_record_id_begin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	callq	_erst_get_record_id_next
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_12:
	xorl	%eax, %eax
	callq	_erst_get_record_id_end
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_APEI_ERST_INVALID_RECORD_ID@GOTPCREL(%rip), %r14
	movq	_ENOENT@GOTPCREL(%rip), %r12
	leaq	-44(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_erst_get_record_id_next
	testl	%eax, %eax
	jne	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpq	(%r14), %rdi
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-52(%rbp), %rsi
	movl	$8, %edx
	callq	_erst_read
	movl	%eax, %ebx
	movl	(%r12), %eax
	addl	%ebx, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$8, %ebx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %edi
	movq	_CPER_CREATOR_MCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_uuid_le_cmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.11:
	leaq	-56(%rbp), %rsi
	movl	$4, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_12
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_APEI_ERST_INVALID_RECORD_ID,8,3 ## @APEI_ERST_INVALID_RECORD_ID
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_CPER_CREATOR_MCE,4,2           ## @CPER_CREATOR_MCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apei_read_mce                  ; -- Begin function apei_read_mce
	.p2align	2
_apei_read_mce:                         ; @apei_read_mce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #4
	bl	_erst_get_record_id_begin
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.1:
	add	x0, sp, #4
	mov	x1, x20
	bl	_erst_get_record_id_next
	mov	x22, x0
	cbz	w0, LBB0_4
LBB0_2:
	bl	_erst_get_record_id_end
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	add	x8, sp, #8
	orr	x21, x8, #0x4
Lloh0:
	adrp	x23, _APEI_ERST_INVALID_RECORD_ID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _APEI_ERST_INVALID_RECORD_ID@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ENOENT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ENOENT@GOTPAGEOFF]
Lloh4:
	adrp	x25, _CPER_CREATOR_MCE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CPER_CREATOR_MCE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #4
	mov	x1, x20
	bl	_erst_get_record_id_next
	cbnz	w0, LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x21
	mov	w2, #8
	bl	_erst_read
	ldr	w8, [x24]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	tbnz	w0, #31, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #8
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #12]
	ldr	w1, [x25]
	bl	_uuid_le_cmp
	cbnz	x0, LBB0_5
; %bb.11:
	mov	w22, #4
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	b	LBB0_2
LBB0_12:
	mov	w22, #0
	b	LBB0_2
LBB0_13:
	mov	x22, x0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_APEI_ERST_INVALID_RECORD_ID,8,3 ; @APEI_ERST_INVALID_RECORD_ID
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_CPER_CREATOR_MCE,4,2           ; @CPER_CREATOR_MCE
.subsections_via_symbols
