	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efivar_create_sysfs_entry
_efivar_create_sysfs_entry:             ## @efivar_create_sysfs_entry
	.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
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movq	%r12, %rdi
	callq	_ucs2_utf8size
	movq	%rax, %r15
	movq	_EFI_VARIABLE_GUID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%r15,%rax), %ebx
	addl	$2, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ucs2_as_utf8
	movb	$45, (%r13,%r15)
	leaq	8(%r14), %rdi
	leaq	(%r15,%r13), %rsi
	incq	%rsi
	callq	_efi_guid_to_str
	movq	_efivars_kset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_efivar_ktype@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%r13, %r8
	callq	_kobject_init_and_add
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_kfree
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.3:
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kobject_uevent
	movq	_efivar_sysfs_list@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_efivar_entry_add
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_efivar_unregister
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_VARIABLE_GUID_LEN,8,3      ## @EFI_VARIABLE_GUID_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_efivars_kset,4,2               ## @efivars_kset
	.comm	_efivar_ktype,4,2               ## @efivar_ktype
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_KOBJ_ADD,4,2                   ## @KOBJ_ADD
	.comm	_efivar_sysfs_list,4,2          ## @efivar_sysfs_list
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_efivar_create_sysfs_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efivar_create_sysfs_entry
_efivar_create_sysfs_entry:             ; @efivar_create_sysfs_entry
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x21, [x0, #16]
	mov	x0, x21
	bl	_ucs2_utf8size
	mov	x22, x0
Lloh0:
	adrp	x8, _EFI_VARIABLE_GUID_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFI_VARIABLE_GUID_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w22, w8
	add	w23, w8, #2
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x1, x21
	mov	x2, x23
	bl	_ucs2_as_utf8
	add	x1, x20, x22
	mov	w8, #45
	strb	w8, [x1], #1
	add	x0, x19, #8
	bl	_efi_guid_to_str
Lloh6:
	adrp	x8, _efivars_kset@GOTPAGE
Lloh7:
	ldr	x8, [x8, _efivars_kset@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh9:
	adrp	x1, _efivar_ktype@GOTPAGE
Lloh10:
	ldr	x1, [x1, _efivar_ktype@GOTPAGEOFF]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x4, x20
	bl	_kobject_init_and_add
	mov	x21, x0
	mov	x0, x20
	bl	_kfree
	cbnz	w21, LBB0_6
; %bb.2:
Lloh13:
	adrp	x8, _KOBJ_ADD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KOBJ_ADD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kobject_uevent
Lloh16:
	adrp	x1, _efivar_sysfs_list@GOTPAGE
Lloh17:
	ldr	x1, [x1, _efivar_sysfs_list@GOTPAGEOFF]
	mov	x0, x19
	bl	_efivar_entry_add
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_efivar_unregister
Lloh18:
	adrp	x8, _EINTR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_VARIABLE_GUID_LEN,8,3      ; @EFI_VARIABLE_GUID_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_efivars_kset,4,2               ; @efivars_kset
	.comm	_efivar_ktype,4,2               ; @efivar_ktype
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_KOBJ_ADD,4,2                   ; @KOBJ_ADD
	.comm	_efivar_sysfs_list,4,2          ; @efivar_sysfs_list
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_efivar_create_sysfs_entry
.subsections_via_symbols
