	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_pstore_write
_efi_pstore_write:                      ## @efi_pstore_write
	.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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DUMP_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_LINUX_EFI_CRASH_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	48(%rbx), %rdi
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	callq	_generic_id
	movl	%eax, 56(%rbx)
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movl	8(%rbx), %ecx
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	cmpq	$1, 40(%rbx)
	adcl	$67, %r15d
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	pushq	%r15
	pushq	48(%rbx)
	callq	_snprintf
	addq	$16, %rsp
	movq	_DUMP_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_memcpy
LBB0_2:
	movq	_PSTORE_EFI_ATTRIBUTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_preemptible
	movl	32(%rbx), %r8d
	movq	24(%rbx), %rcx
	movl	(%rcx), %r9d
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_efivar_entry_set_safe
	movl	%eax, %r14d
	movq	16(%rbx), %rax
	movq	_KMSG_DUMP_OOPS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_efivar_run_worker
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DUMP_NAME_LEN,4,2              ## @DUMP_NAME_LEN
	.comm	_LINUX_EFI_CRASH_GUID,4,2       ## @LINUX_EFI_CRASH_GUID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dump-type%u-%u-%d-%lld-%c"

	.comm	_PSTORE_EFI_ATTRIBUTES,4,2      ## @PSTORE_EFI_ATTRIBUTES
	.comm	_KMSG_DUMP_OOPS,8,3             ## @KMSG_DUMP_OOPS
	.no_dead_strip	_efi_pstore_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_pstore_write
_efi_pstore_write:                      ; @efi_pstore_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x24, _DUMP_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DUMP_NAME_LEN@GOTPAGEOFF]
	ldr	w23, [x24]
	mov	x9, x23
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x12, x9, #0x1fffffff0
	sub	x22, x8, x12
	mov	sp, x22
	mov	x9, x23
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
Lloh9:
	adrp	x8, _LINUX_EFI_CRASH_GUID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LINUX_EFI_CRASH_GUID@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	ldr	x0, [x0, #48]
	ldp	w1, w2, [x19]
	bl	_generic_id
	str	w0, [x19, #56]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	ldp	w5, w3, [x19, #4]
	ldr	w4, [x19]
	ldp	x8, x6, [x19, #40]
	cmp	x8, #0
	mov	w8, #67
	cinc	w7, w8, eq
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	bl	_snprintf
	ldr	w2, [x24]
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x22
	bl	_memcpy
LBB0_2:
Lloh14:
	adrp	x8, _PSTORE_EFI_ATTRIBUTES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PSTORE_EFI_ATTRIBUTES@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	bl	_preemptible
	mov	x3, x0
	ldr	w4, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w5, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_efivar_entry_set_safe
	mov	x20, x0
	ldr	x8, [x19, #16]
Lloh17:
	adrp	x9, _KMSG_DUMP_OOPS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _KMSG_DUMP_OOPS@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	bl	_efivar_run_worker
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DUMP_NAME_LEN,4,2              ; @DUMP_NAME_LEN
	.comm	_LINUX_EFI_CRASH_GUID,4,2       ; @LINUX_EFI_CRASH_GUID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dump-type%u-%u-%d-%lld-%c"

	.comm	_PSTORE_EFI_ATTRIBUTES,4,2      ; @PSTORE_EFI_ATTRIBUTES
	.comm	_KMSG_DUMP_OOPS,8,3             ; @KMSG_DUMP_OOPS
	.no_dead_strip	_efi_pstore_write
.subsections_via_symbols
