	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efivar_delete
_efivar_delete:                         ## @efivar_delete
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%rcx, %r14
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_in_compat_syscall
	testq	%rax, %rax
	cmpq	$16, %rbx
	jne	LBB0_5
## %bb.2:
	movl	(%r14), %r15d
	movq	8(%r14), %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_efivar_entry_iter_begin
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_efivar_sysfs_list@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %ecx
	callq	_efivar_entry_find
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	callq	___efivar_entry_delete
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.14:
	negl	%ebx
	xorl	%eax, %eax
	callq	_efivar_entry_iter_end
	jmp	LBB0_8
LBB0_15:
	movl	(%r14), %r15d
	xorl	%eax, %eax
	callq	_efivar_entry_iter_end
	movl	$16, %ebx
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.16:
	movq	%r14, %rdi
	callq	_efivar_unregister
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_efivar_sysfs_list,4,2          ## @efivar_sysfs_list
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_efivar_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efivar_delete
_efivar_delete:                         ; @efivar_delete
	.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	x20, x5
	mov	x19, x3
Lloh0:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_5
; %bb.1:
	bl	_in_compat_syscall
	cmp	x20, #16
; %bb.2:
	b.ne	LBB0_6
; %bb.3:
	ldr	w20, [x19]
	ldr	x19, [x19, #8]
	bl	_efivar_entry_iter_begin
	cbz	x0, LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _EINTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _EACCES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh9:
	adrp	x2, _efivar_sysfs_list@GOTPAGE
Lloh10:
	ldr	x2, [x2, _efivar_sysfs_list@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_efivar_entry_find
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	___efivar_entry_delete
	cbz	x0, LBB0_14
; %bb.11:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
LBB0_12:
	neg	w19, w8
	bl	_efivar_entry_iter_end
	b	LBB0_8
LBB0_13:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
LBB0_14:
	ldr	w20, [x19]
	bl	_efivar_entry_iter_end
	cbnz	w20, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_efivar_unregister
LBB0_16:
	mov	w19, #16
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_efivar_sysfs_list,4,2          ; @efivar_sysfs_list
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_efivar_delete
.subsections_via_symbols
