	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efivar_update_sysfs_entries
_efivar_update_sysfs_entries:           ## @efivar_update_sysfs_entries
	.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	$1024, -48(%rbp)                ## imm = 0x400
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1024, %edi                     ## imm = 0x400
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	___efivars@GOTPCREL(%rip), %r14
	leaq	-48(%rbp), %r15
	leaq	-52(%rbp), %r12
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %r13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r14, %rdi
	callq	_spin_lock_irq
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$1024, -48(%rbp)                ## imm = 0x400
	movq	8(%r14), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	*(%rax)
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_variable_is_present
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_var_name_strnsize
	movq	%rax, -48(%rbp)
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_efivar_create_sysfs_entry
	movq	-48(%rbp), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_7
LBB0_8:
	movq	___efivars@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___efivars,16,3                 ## @__efivars
	.comm	_EFI_NOT_FOUND,8,3              ## @EFI_NOT_FOUND
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"efivars: Memory allocation failed.\n"

	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.no_dead_strip	_efivar_update_sysfs_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efivar_update_sysfs_entries
_efivar_update_sysfs_entries:           ; @efivar_update_sysfs_entries
	.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
	mov	w8, #1024
	str	x8, [sp]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #1024
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x20, ___efivars@GOTPAGE
Lloh3:
	ldr	x20, [x20, ___efivars@GOTPAGEOFF]
	mov	w22, #1024
Lloh4:
	adrp	x23, _EFI_SUCCESS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EFI_SUCCESS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x0, x20
	bl	_spin_lock_irq
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x22, [sp]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, sp
	add	x2, sp, #12
	mov	x1, x19
	blr	x8
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x1, sp, #12
	mov	x0, x19
	bl	_variable_is_present
	cbnz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	x1, [sp]
	mov	x0, x19
	bl	_var_name_strnsize
	mov	x1, x0
	str	x0, [sp]
	add	x3, sp, #12
	mov	x0, x20
	mov	x2, x19
	bl	_efivar_create_sysfs_entry
	ldr	x0, [sp]
	ldr	w1, [x21]
	bl	_kzalloc
	mov	x19, x0
	cbnz	x0, LBB0_2
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x0, ___efivars@GOTPAGE
Lloh9:
	ldr	x0, [x0, ___efivars@GOTPAGEOFF]
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_kfree
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	___efivars,16,3                 ; @__efivars
	.comm	_EFI_NOT_FOUND,8,3              ; @EFI_NOT_FOUND
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"efivars: Memory allocation failed.\n"

	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.no_dead_strip	_efivar_update_sysfs_entries
.subsections_via_symbols
