	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_entry_set_safe          ## -- Begin function efivar_entry_set_safe
	.p2align	4, 0x90
_efivar_entry_set_safe:                 ## @efivar_entry_set_safe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)
	movq	___efivars@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%rax), %rbx
	cmpl	$0, 16(%rbx)
	je	LBB0_4
## %bb.5:
	movq	%r9, %r14
	movq	%r8, %r15
	movl	%edx, %r12d
	movq	%rdi, %r13
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.9:
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_down_interruptible
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_EINTR@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.15:
	movq	%r13, %rdi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movq	%r14, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efivar_entry_set_nonblocking   ## TAILCALL
LBB0_7:
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_down_trylock
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_11:
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_ucs2_strsize
	leaq	(%rax,%r15), %rsi
	movl	%r12d, %edi
	callq	_check_var_size
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.13:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	*(%rbx)
	movq	%rax, %rbx
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_up
	movq	%rbx, %rdi
	callq	_efi_status_to_err
	jmp	LBB0_14
LBB0_12:
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_up
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___efivars,8,3                  ## @__efivars
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_efivars_lock,4,2               ## @efivars_lock
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_ENOSPC,4,2                     ## @ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_entry_set_safe          ; -- Begin function efivar_entry_set_safe
	.p2align	2
_efivar_entry_set_safe:                 ; @efivar_entry_set_safe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	w1, [sp, #12]
Lloh0:
	adrp	x8, ___efivars@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___efivars@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x23, [x8]
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x2
	mov	x22, x0
	cbz	w3, LBB0_7
; %bb.3:
Lloh3:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_down_interruptible
	cbz	x0, LBB0_11
; %bb.4:
Lloh5:
	adrp	x8, _EINTR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
Lloh9:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_efivar_entry_set_nonblocking
LBB0_9:
Lloh11:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_down_trylock
	cbz	x0, LBB0_11
; %bb.10:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	x0, x22
	mov	w1, #1024
	bl	_ucs2_strsize
	add	x1, x0, x20
	mov	x0, x21
	bl	_check_var_size
Lloh15:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x23]
	add	x1, sp, #12
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	blr	x8
	mov	x19, x0
Lloh18:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_up
	mov	x0, x19
	bl	_efi_status_to_err
	b	LBB0_15
LBB0_13:
Lloh20:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_up
Lloh22:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	___efivars,8,3                  ; @__efivars
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_efivars_lock,4,2               ; @efivars_lock
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_ENOSPC,4,2                     ; @ENOSPC
.subsections_via_symbols
