	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efivar_attr_read
_efivar_attr_read:                      ## @efivar_attr_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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_get_var_data
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movl	(%rbx), %ecx
	movq	%r14, %rax
	testb	$1, %cl
	jne	LBB0_7
## %bb.8:
	testb	$2, %cl
	jne	LBB0_9
LBB0_10:
	testb	$4, %cl
	je	LBB0_12
LBB0_11:
	movups	L_.str.2+13(%rip), %xmm0
	movups	%xmm0, 13(%rax)
	movups	L_.str.2(%rip), %xmm0
	movups	%xmm0, (%rax)
	addq	$28, %rax
LBB0_12:
	subl	%r14d, %eax
	jmp	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movups	L_.str+11(%rip), %xmm0
	movups	%xmm0, 11(%r14)
	movups	L_.str(%rip), %xmm0
	movups	%xmm0, (%r14)
	leaq	26(%r14), %rax
	movl	(%rbx), %ecx
	testb	$2, %cl
	je	LBB0_10
LBB0_9:
	movups	L_.str.1+16(%rip), %xmm0
	movups	%xmm0, 16(%rax)
	movups	L_.str.1(%rip), %xmm0
	movups	%xmm0, (%rax)
	movb	$0, 32(%rax)
	addq	$32, %rax
	movl	(%rbx), %ecx
	testb	$4, %cl
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EFI_VARIABLE_NON_VOLATILE\n"

L_.str.1:                               ## @.str.1
	.asciz	"EFI_VARIABLE_BOOTSERVICE_ACCESS\n"

L_.str.2:                               ## @.str.2
	.asciz	"EFI_VARIABLE_RUNTIME_ACCESS\n"

	.no_dead_strip	_efivar_attr_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efivar_attr_read
_efivar_attr_read:                      ; @efivar_attr_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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_8
; %bb.2:
	add	x20, x0, #4
	ldr	w0, [x0]
	mov	x1, x20
	bl	_get_var_data
Lloh0:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.3:
	ldr	w9, [x20]
	mov	x8, x19
	tbnz	w9, #0, LBB0_12
; %bb.4:
	tbnz	w9, #1, LBB0_13
LBB0_5:
	tbz	w9, #2, LBB0_7
LBB0_6:
Lloh3:
	adrp	x9, l_.str.2@PAGE
Lloh4:
	add	x9, x9, l_.str.2@PAGEOFF
	ldr	q0, [x9]
	ldur	q1, [x9, #13]
	stur	q1, [x8, #13]
	str	q0, [x8], #28
LBB0_7:
	sub	w0, w8, w19
	b	LBB0_11
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
	ldr	q0, [x8]
	ldur	q1, [x8, #11]
	stur	q1, [x19, #11]
	str	q0, [x19]
	add	x8, x19, #26
	ldr	w9, [x20]
	tbz	w9, #1, LBB0_5
LBB0_13:
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
	ldp	q0, q1, [x9]
	stp	q0, q1, [x8]
	strb	wzr, [x8, #32]!
	ldr	w9, [x20]
	tbnz	w9, #2, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EFI_VARIABLE_NON_VOLATILE\n"

l_.str.1:                               ; @.str.1
	.asciz	"EFI_VARIABLE_BOOTSERVICE_ACCESS\n"

l_.str.2:                               ; @.str.2
	.asciz	"EFI_VARIABLE_RUNTIME_ACCESS\n"

	.no_dead_strip	_efivar_attr_read
.subsections_via_symbols
