	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_unix_path_to_device_path ## -- Begin function efivar_unix_path_to_device_path
	.p2align	4, 0x90
_efivar_unix_path_to_device_path:       ## @efivar_unix_path_to_device_path
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-40(%rbp), %rdi
	callq	_geom_gettree
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_19
LBB0_2:
	movq	_EDOOFUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_19
LBB0_5:
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	%r14, %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movb	$47, (%rax)
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rax
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$92, %cl
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testb	%cl, %cl
	jne	LBB0_13
## %bb.9:
	cmpb	$47, (%r14)
	jne	LBB0_14
## %bb.10:
	cmpb	$47, 1(%r14)
	jne	LBB0_14
## %bb.11:
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_efipart_to_dp
	jmp	LBB0_17
LBB0_14:
	movq	%r14, %rdi
	movl	$58, %esi
	callq	_strchr
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	callq	_dev_path_to_dp
	jmp	LBB0_17
LBB0_16:
	callq	_path_to_dp
LBB0_17:
	movl	%eax, %r12d
LBB0_18:
	leaq	-40(%rbp), %rdi
	callq	_geom_deletetree
	movq	%r14, %rdi
	callq	_free
LBB0_19:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EDOOFUS,4,2                    ## @EDOOFUS
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_unix_path_to_device_path ; -- Begin function efivar_unix_path_to_device_path
	.p2align	2
_efivar_unix_path_to_device_path:       ; @efivar_unix_path_to_device_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	add	x0, sp, #8
	bl	_geom_gettree
	cbz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_4:
Lloh6:
	adrp	x8, _EDOOFUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDOOFUS@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_5:
	mov	x0, x19
	bl	_strdup
	mov	x19, x0
	cbz	x0, LBB0_18
; %bb.6:
	mov	w8, #47
	mov	x9, x19
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w8, [x9]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	cmp	w10, #92
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	w10, LBB0_8
; %bb.11:
	ldrb	w8, [x19]
	cmp	w8, #47
	b.ne	LBB0_14
; %bb.12:
	ldrb	w8, [x19, #1]
	cmp	w8, #47
	b.ne	LBB0_14
; %bb.13:
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x20
	bl	_efipart_to_dp
	b	LBB0_17
LBB0_14:
	mov	x0, x19
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.15:
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x20
	bl	_dev_path_to_dp
	b	LBB0_17
LBB0_16:
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x20
	bl	_path_to_dp
LBB0_17:
	mov	x21, x0
LBB0_18:
	add	x0, sp, #8
	bl	_geom_deletetree
	mov	x0, x19
	bl	_free
LBB0_19:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EDOOFUS,4,2                    ; @EDOOFUS
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
