	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_entry_set_get_size      ## -- Begin function efivar_entry_set_get_size
	.p2align	4, 0x90
_efivar_entry_set_get_size:             ## @efivar_entry_set_get_size
	.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	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movl	$0, (%r8)
	movl	(%rdi), %edi
	movq	(%rdx), %rcx
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_efivar_validate
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_down_interruptible
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	___efivars@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.8:
	movq	(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_ucs2_strsize
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_check_var_size
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_13
## %bb.9:
	movq	(%r14), %rcx
LBB0_10:
	movq	___efivars@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%rdx, %r13
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %r8
	movq	%rax, %r12
	callq	*(%rax)
	cmpq	(%r13), %rax
	jne	LBB0_14
## %bb.11:
	movl	$1, (%r15)
	movq	$0, (%r14)
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	*8(%r12)
	movq	%rax, %r14
	movq	_EFI_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_19
## %bb.12:
	movq	%rbx, %rdi
	callq	_efivar_entry_list_del_unlock
	jmp	LBB0_20
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_13:
	movq	_EFI_UNSUPPORTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.17:
	movq	(%r14), %rcx
	cmpq	$65537, %rcx                    ## imm = 0x10001
	jb	LBB0_10
## %bb.18:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_14:
	movq	%rax, %rdi
	callq	_efi_status_to_err
	movl	%eax, %ebx
LBB0_15:
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_up
	jmp	LBB0_16
LBB0_19:
	movq	_efivars_lock@GOTPCREL(%rip), %rdi
	callq	_up
LBB0_20:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_16
## %bb.21:
	movq	_EFI_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_16
## %bb.22:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efi_status_to_err              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_efivars_lock,4,2               ## @efivars_lock
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	___efivars,8,3                  ## @__efivars
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_EFI_UNSUPPORTED,8,3            ## @EFI_UNSUPPORTED
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EFI_NOT_FOUND,8,3              ## @EFI_NOT_FOUND
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ## @EFI_BUFFER_TOO_SMALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_entry_set_get_size      ; -- Begin function efivar_entry_set_get_size
	.p2align	2
_efivar_entry_set_get_size:             ; @efivar_entry_set_get_size
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x24, [x0, #8]
	str	wzr, [x4]
	ldr	w0, [x0]
	ldr	x3, [x2]
	mov	x1, x24
	mov	x2, x22
	bl	_efivar_validate
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_down_interruptible
	cbz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _EINTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh6:
	adrp	x25, ___efivars@GOTPAGE
Lloh7:
	ldr	x25, [x25, ___efivars@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_12
; %bb.7:
	ldr	x26, [x20]
	mov	x0, x24
	mov	w1, #1024
	bl	_ucs2_strsize
	add	x1, x0, x26
	mov	x0, x23
	bl	_check_var_size
Lloh8:
	adrp	x26, _EFI_SUCCESS@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.8:
	ldr	x3, [x20]
LBB0_9:
	ldr	x8, [x25]
	ldr	x25, [x8]
	ldr	x8, [x25]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	mov	x4, x22
	blr	x8
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.10:
	mov	w8, #1
	str	w8, [x21]
	str	xzr, [x20]
	ldr	x8, [x25, #8]
	ldr	x0, [x19, #8]
	mov	x1, x19
	mov	x2, #0
	mov	x3, x20
	mov	x4, #0
	blr	x8
	mov	x20, x0
Lloh10:
	adrp	x8, _EFI_NOT_FOUND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFI_NOT_FOUND@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.11:
	mov	x0, x19
	bl	_efivar_entry_list_del_unlock
	b	LBB0_20
LBB0_12:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_18
LBB0_14:
Lloh15:
	adrp	x8, _EFI_UNSUPPORTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EFI_UNSUPPORTED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.15:
	ldr	x3, [x20]
	cmp	x3, #16, lsl #12                ; =65536
	b.ls	LBB0_9
; %bb.16:
Lloh18:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
	bl	_efi_status_to_err
	mov	x19, x0
LBB0_18:
Lloh20:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_up
	b	LBB0_5
LBB0_19:
Lloh22:
	adrp	x0, _efivars_lock@GOTPAGE
Lloh23:
	ldr	x0, [x0, _efivars_lock@GOTPAGEOFF]
	bl	_up
LBB0_20:
Lloh24:
	adrp	x8, _EFI_BUFFER_TOO_SMALL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EFI_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x20, #0
	ccmp	x20, x8, #4, ne
	b.ne	LBB0_22
; %bb.21:
	mov	w19, #0
	b	LBB0_5
LBB0_22:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_efi_status_to_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_efivars_lock,4,2               ; @efivars_lock
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	___efivars,8,3                  ; @__efivars
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_EFI_UNSUPPORTED,8,3            ; @EFI_UNSUPPORTED
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EFI_NOT_FOUND,8,3              ; @EFI_NOT_FOUND
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ; @EFI_BUFFER_TOO_SMALL
.subsections_via_symbols
