	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_pstore_read
_efi_pstore_read:                       ## @efi_pstore_read
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_EFIVARS_DATA_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_efivar_entry_iter_begin
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINTR@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jg	LBB0_7
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_efi_pstore_sysfs_entry_iter
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_efivar_entry_iter_end
	testl	%ebx, %ebx
	jg	LBB0_7
LBB0_6:
	movq	(%r14), %rdi
	callq	_kfree
	movq	$0, (%r14)
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFIVARS_DATA_SIZE_MAX,4,2      ## @EFIVARS_DATA_SIZE_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_efi_pstore_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_pstore_read
_efi_pstore_read:                       ; @efi_pstore_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _EFIVARS_DATA_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFIVARS_DATA_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_efivar_entry_iter_begin
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _EINTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	cmp	w20, #0
	b.gt	LBB0_6
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_efi_pstore_sysfs_entry_iter
	mov	x20, x0
	bl	_efivar_entry_iter_end
	cmp	w20, #0
	b.gt	LBB0_6
LBB0_5:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EFIVARS_DATA_SIZE_MAX,4,2      ; @EFIVARS_DATA_SIZE_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_efi_pstore_read
.subsections_via_symbols
