	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_entry_set               ## -- Begin function efivar_entry_set
	.p2align	4, 0x90
_efivar_entry_set:                      ## @efivar_entry_set
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	8(%rdi), %r14
	movl	(%rdi), %r15d
	movl	%r15d, -60(%rbp)
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_down_interruptible
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_EINTR@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	___efivars@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	movq	%rbx, %rdx
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_efivar_entry_find
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_up
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_up
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1024, %esi                     ## imm = 0x400
	callq	_ucs2_strsize
	leaq	(%rax,%r12), %rsi
	movl	%r13d, %edi
	callq	_check_var_size
	movq	%rax, %rbx
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_12
## %bb.11:
	movq	_EFI_UNSUPPORTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_13
LBB0_12:
	leaq	-60(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r12, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	movq	%rax, %rbx
LBB0_13:
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_up
	movq	%rbx, %rdi
	callq	_efi_status_to_err
	movl	%eax, %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_efivars_lock,4,2               ## @efivars_lock
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	___efivars,8,3                  ## @__efivars
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_EFI_UNSUPPORTED,8,3            ## @EFI_UNSUPPORTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_entry_set               ; -- Begin function efivar_entry_set
	.p2align	2
_efivar_entry_set:                      ; @efivar_entry_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0, #8]
	ldr	w24, [x0]
	str	w24, [sp, #12]
Lloh0:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_down_interruptible
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _EINTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
Lloh4:
	adrp	x8, ___efivars@GOTPAGE
Lloh5:
	ldr	x8, [x8, ___efivars@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x25, [x8]
	cbz	x23, LBB0_9
; %bb.6:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	w3, #0
	bl	_efivar_entry_find
	cbz	x0, LBB0_9
; %bb.7:
Lloh7:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_up
Lloh9:
	adrp	x8, _EEXIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
Lloh11:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_up
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
	mov	x0, x22
	mov	w1, #1024
	bl	_ucs2_strsize
	add	x1, x0, x20
	mov	x0, x21
	bl	_check_var_size
	mov	x23, x0
Lloh15:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _EFI_UNSUPPORTED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EFI_UNSUPPORTED@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x25]
	add	x1, sp, #12
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	blr	x8
	mov	x23, x0
LBB0_11:
Lloh21:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh22:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_up
	mov	x0, x23
	bl	_efi_status_to_err
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_efivars_lock,4,2               ; @efivars_lock
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	___efivars,8,3                  ; @__efivars
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_EFI_UNSUPPORTED,8,3            ; @EFI_UNSUPPORTED
.subsections_via_symbols
