	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_devpath_to_name
_efi_devpath_to_name:                   ## @efi_devpath_to_name
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	callq	_efi_translate_devpath
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-24(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rax, %rdi
	callq	_utf8_to_ucs2
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_free
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	-24(%rbp), %rax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	$0, -32(%rbp)
	movq	_BS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EfiLoaderData@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	*(%rax)
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	-32(%rbp), %rdi
	movq	-24(%rbp), %rsi
	movq	-40(%rbp), %rdx
	callq	_memcpy
LBB0_6:
	movq	-24(%rbp), %rdi
	callq	_free
	movq	-32(%rbp), %rax
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BS,8,3                         ## @BS
	.comm	_EfiLoaderData,4,2              ## @EfiLoaderData
	.no_dead_strip	_efi_devpath_to_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_devpath_to_name
_efi_devpath_to_name:                   ; @efi_devpath_to_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	str	xzr, [sp, #24]
	bl	_efi_translate_devpath
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_utf8_to_ucs2
	mov	x20, x0
	mov	x0, x19
	bl	_free
	cbz	w20, LBB0_3
; %bb.2:
	ldr	x0, [sp, #24]
	b	LBB0_6
LBB0_3:
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _BS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EfiLoaderData@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EfiLoaderData@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	ldr	x1, [sp, #16]
	add	x2, sp, #8
	blr	x8
	bl	_EFI_ERROR
	cbnz	x0, LBB0_5
; %bb.4:
	ldp	x0, x2, [sp, #8]
	ldr	x1, [sp, #24]
	bl	_memcpy
LBB0_5:
	ldr	x0, [sp, #24]
	bl	_free
	ldr	x0, [sp, #8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BS,8,3                         ; @BS
	.comm	_EfiLoaderData,4,2              ; @EfiLoaderData
	.no_dead_strip	_efi_devpath_to_name
.subsections_via_symbols
