	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apei_write_mce                 ## -- Begin function apei_write_mce
	.p2align	4, 0x90
_apei_write_mce:                        ## @apei_write_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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	-128(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$104, %edx
	callq	_memset
	movq	-80(%rbp), %rdi
	movq	_CPER_SIG_RECORD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_CPER_SIG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_CPER_RECORD_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	_CPER_SIG_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movabsq	$446676598785, %rax             ## imm = 0x6800000001
	movq	%rax, -128(%rbp)
	movq	_CPER_SEV_FATAL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, -96(%rbp)
	movq	$0, -104(%rbp)
	movq	_CPER_CREATOR_MCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	_CPER_NOTIFY_MCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	xorl	%eax, %eax
	callq	_cper_next_record_id
	movl	%eax, -116(%rbp)
	movq	_CPER_HW_ERROR_FLAGS_PREVERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	leaq	-72(%rbp), %rdi
	movabsq	$17179869240, %rax              ## imm = 0x400000038
	movq	%rax, -64(%rbp)
	movq	_CPER_SEC_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_CPER_SEC_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_CPER_SECTION_TYPE_MCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_erst_write
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPER_SIG_RECORD,8,3            ## @CPER_SIG_RECORD
	.comm	_CPER_SIG_SIZE,4,2              ## @CPER_SIG_SIZE
	.comm	_CPER_RECORD_REV,4,2            ## @CPER_RECORD_REV
	.comm	_CPER_SIG_END,4,2               ## @CPER_SIG_END
	.comm	_CPER_SEV_FATAL,8,3             ## @CPER_SEV_FATAL
	.comm	_CPER_CREATOR_MCE,4,2           ## @CPER_CREATOR_MCE
	.comm	_CPER_NOTIFY_MCE,4,2            ## @CPER_NOTIFY_MCE
	.comm	_CPER_HW_ERROR_FLAGS_PREVERR,4,2 ## @CPER_HW_ERROR_FLAGS_PREVERR
	.comm	_CPER_SEC_REV,4,2               ## @CPER_SEC_REV
	.comm	_CPER_SEC_PRIMARY,4,2           ## @CPER_SEC_PRIMARY
	.comm	_CPER_SECTION_TYPE_MCE,4,2      ## @CPER_SECTION_TYPE_MCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function apei_write_mce
lCPI0_0:
	.long	56                              ; 0x38
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_apei_write_mce
	.p2align	2
_apei_write_mce:                        ; @apei_write_mce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x0
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #104
	bl	_memset
	ldr	x0, [sp, #56]
Lloh0:
	adrp	x8, _CPER_SIG_RECORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPER_SIG_RECORD@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
Lloh3:
	adrp	x8, _CPER_SIG_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPER_SIG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
Lloh6:
	adrp	x8, _CPER_RECORD_REV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CPER_RECORD_REV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _CPER_SIG_END@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CPER_SIG_END@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #48]
	mov	x8, #1
	movk	x8, #104, lsl #32
Lloh12:
	adrp	x21, _CPER_SEV_FATAL@GOTPAGE
Lloh13:
	ldr	x21, [x21, _CPER_SEV_FATAL@GOTPAGEOFF]
	str	x8, [sp, #8]
	ldr	x8, [x21]
	stp	xzr, x8, [sp, #32]
Lloh14:
	adrp	x8, _CPER_CREATOR_MCE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CPER_CREATOR_MCE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _CPER_NOTIFY_MCE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CPER_NOTIFY_MCE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	bl	_cper_next_record_id
Lloh20:
	adrp	x8, _CPER_HW_ERROR_FLAGS_PREVERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CPER_HW_ERROR_FLAGS_PREVERR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #16]
	add	x0, x20, #56
Lloh23:
	adrp	x8, lCPI0_0@PAGE
Lloh24:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #72]
Lloh25:
	adrp	x8, _CPER_SEC_REV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CPER_SEC_REV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #104]
	str	xzr, [sp, #96]
Lloh28:
	adrp	x8, _CPER_SEC_PRIMARY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CPER_SEC_PRIMARY@GOTPAGEOFF]
Lloh30:
	adrp	x9, _CPER_SECTION_TYPE_MCE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CPER_SECTION_TYPE_MCE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #88]
	ldr	x8, [x21]
	str	x8, [sp, #80]
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	add	x0, sp, #8
	bl	_erst_write
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdrp	Lloh23, Lloh25
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CPER_SIG_RECORD,8,3            ; @CPER_SIG_RECORD
	.comm	_CPER_SIG_SIZE,4,2              ; @CPER_SIG_SIZE
	.comm	_CPER_RECORD_REV,4,2            ; @CPER_RECORD_REV
	.comm	_CPER_SIG_END,4,2               ; @CPER_SIG_END
	.comm	_CPER_SEV_FATAL,8,3             ; @CPER_SEV_FATAL
	.comm	_CPER_CREATOR_MCE,4,2           ; @CPER_CREATOR_MCE
	.comm	_CPER_NOTIFY_MCE,4,2            ; @CPER_NOTIFY_MCE
	.comm	_CPER_HW_ERROR_FLAGS_PREVERR,4,2 ; @CPER_HW_ERROR_FLAGS_PREVERR
	.comm	_CPER_SEC_REV,4,2               ; @CPER_SEC_REV
	.comm	_CPER_SEC_PRIMARY,4,2           ; @CPER_SEC_PRIMARY
	.comm	_CPER_SECTION_TYPE_MCE,4,2      ; @CPER_SECTION_TYPE_MCE
.subsections_via_symbols
